Collect money
Shop, tickets and vouchers
The shop is your price list at one public address. A client opens it, picks an item, pays, and is shown what they bought on the same page. Your API key manages the items and reads what was sold; the buying itself happens on the page.
What an item can hand over
| Kind | The buyer gets | Use it for |
|---|---|---|
standard | A receipt. | Goods and services you hand over yourself. |
ticket | A ticket number for each unit, such as TK-7K2M-9QXD, made by RadiPay. | Events and anything checked at a door. |
voucher | One code for each unit, taken from a pool of codes you loaded. A code is given out once. | Airtime, licences, gift codes, internet vouchers you generate yourself. |
hotspot | An internet login for each unit, which your own MikroTik router creates within seconds. | Selling Wi-Fi time. Set up under Shop in the app. |
Nothing is handed over until the payment is confirmed, and the price is always the item's price times the quantity. Nothing the buyer's browser sends can change it.
From a price list to a sale
Add your items
POST /shop/itemsfor each thing you sell. New items start switched off.Load codes, for voucher items
POST /shop/items/{id}/codeswith the codes, one per line.Switch items on and open the shop
PUT /shop/items/{id}withactive: true, thenPUT /shop/profilewithshopOpen: true.Share the address
GET /shop/profilereturnsurl. Put it on WhatsApp, a poster, a QR code or your Wi-Fi login page.Hear about each sale
A payment.succeeded webhook arrives with
subjectTypeshop_orderand the order's id insubjectId.GET /shop/orderslists what was sold with the codes given.
Endpoints
Read the shop
/shop/profilePermission shop.read
{
"data": {
"type": "internet",
"shopOpen": true,
"url": "https://pay.example.co.ke/s/DW9MHoqFTDufDi8cep1bEQ.q0bX2n5J8wVtYc3L",
"types": [
{
"value": "general",
"label": "…",
"hint": "…"
}
]
}
}type is what the business does (general, events, internet, services or retail) and types lists the choices with their descriptions.
Open or close the shop
/shop/profilePermission shop.manage
Body
shopOpenbooleanOptional- true opens the shop. A closed shop answers visitors as if the address did not exist.
typestringOptional- What the business does. Choosing one for the first time on an empty price list adds starter items, switched off, for you to price.
curl -X PUT https://prod.pay.radingtechnologies.co.ke/shop/profile \
-H "Authorization: Bearer $RADIPAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"shopOpen": true
}'List items
/shop/itemsPermission shop.read
The whole price list in display order. It is not paged; a price list holds at most 100 items.
{
"data": [
{
"id": "3c9a7e10-5b2d-4f8a-9c11-7d4e2a6b8f03",
"name": "1 Day",
"description": "Unlimited internet for 24 hours",
"priceMinor": 5000,
"currency": "KES",
"kind": "voucher",
"stock": null,
"sold": 412,
"active": true,
"codesLeft": 88,
"available": 88,
"routerProfile": null,
"uptime": null
}
]
}An item
priceMinor, currencyinteger, string- The price of one unit. The currency is your wallet’s.
kindstringstandard,ticket,voucherorhotspot.stockinteger | null- How many may be sold in total. null means no limit.
soldinteger- How many have been sold.
activeboolean- Whether it is shown in the shop.
codesLeftinteger | null- Unused voucher codes. null unless the kind is voucher.
availableinteger | null- How many can be bought right now: what is left of the stock, and for vouchers no more than the codes left. null means no limit.
routerProfile, uptimestring | null- Hotspot items only: the user profile on your router and the time limit, as the router writes it (1h, 1d, 30d).
Add an item
/shop/itemsPermission shop.manage
Body
namestringRequired- 2 to 60 characters.
priceMinorintegerRequired- The price of one unit in minor units, at least 1000 (KES 10.00).
kindstringRequiredstandard,ticket,voucherorhotspot.descriptionstringOptional- Up to 200 characters.
stockinteger | nullOptional- How many may be sold in total, up to 1,000,000. Default:
null (no limit). activebooleanOptional- Show it in the shop. Default:
false. routerProfilestringOptional- Required for hotspot items: the hotspot user profile on your router, for example default.
uptimestringOptional- Required for hotspot items: the time limit as the router writes it, for example 1h, 1d or 30d.
curl -X POST https://prod.pay.radingtechnologies.co.ke/shop/items \
-H "Authorization: Bearer $RADIPAY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: item-1-day-voucher" \
-d '{
"name": "1 Day",
"description": "Unlimited internet for 24 hours",
"priceMinor": 5000,
"kind": "voucher",
"active": false
}'{
"data": {
"id": "3c9a7e10-5b2d-4f8a-9c11-7d4e2a6b8f03",
"name": "1 Day",
"description": "Unlimited internet for 24 hours",
"priceMinor": 5000,
"currency": "KES",
"kind": "voucher",
"stock": null,
"sold": 0,
"active": false,
"codesLeft": 0,
"available": 0,
"routerProfile": null,
"uptime": null
}
}Change an item
/shop/items/{id}Permission shop.manage
Send the whole item
active, stock and description: a field you leave out goes back to its default, so leaving out active switches the item off.The body is the same as for adding an item. The kind of an item that has been sold cannot change; add a new item instead.
curl -X PUT https://prod.pay.radingtechnologies.co.ke/shop/items/3c9a7e10-5b2d-4f8a-9c11-7d4e2a6b8f03 \
-H "Authorization: Bearer $RADIPAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "1 Day",
"description": "Unlimited internet for 24 hours",
"priceMinor": 5000,
"kind": "voucher",
"active": true
}'Load voucher codes
/shop/items/{id}/codesPermission shop.manageUp to 10 a minute
Body
codesstringRequired- The codes in one string, separated by new lines, spaces, commas or semicolons. Up to 5,000 at a time. A code is 3 to 64 characters: letters, digits and . @ : + - _
Codes the item already has are skipped, so loading the same file twice is harmless. Anything that is not a valid code is left out.
curl -X POST https://prod.pay.radingtechnologies.co.ke/shop/items/3c9a7e10-5b2d-4f8a-9c11-7d4e2a6b8f03/codes \
-H "Authorization: Bearer $RADIPAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"codes": "WIFI-8H2K-Q4MX\nWIFI-2P9D-T7RA\nWIFI-5N3C-L8YV"
}'{
"data": {
"loaded": 3,
"skipped": 0,
"codesLeft": 91
}
}List orders
/shop/ordersPermission shop.read
Newest first.
Query
statusstringOptionalpaidorpending(started but not paid). Default:paid.page, pageSizeintegerOptional- See Lists and paging.
curl https://prod.pay.radingtechnologies.co.ke/shop/orders?page=1&pageSize=50 \
-H "Authorization: Bearer $RADIPAY_API_KEY"{
"data": [
{
"id": "e2b4c6d8-1a3f-4b5c-8d7e-9f0a1b2c3d4e",
"reference": "SOK7M2XQ4P",
"itemName": "1 Day",
"quantity": 1,
"amountMinor": 5000,
"currency": "KES",
"buyerPhone": "254712345678",
"buyerName": null,
"status": "paid",
"codes": [
"WIFI-8H2K-Q4MX"
],
"routerState": "none",
"createdAt": "2026-12-03T09:14:20.000Z",
"paidAt": "2026-12-03T09:15:02.000Z"
}
],
"meta": {
"page": 1,
"pageSize": 50,
"total": 1,
"pages": 1
}
}An order
referencestring- Starts with
SO. The buyer sees it on their receipt. itemNamestring- The item’s name when it was bought.
quantity, amountMinor, currencyinteger, integer, string- How many, and the total paid.
buyerPhone, buyerNamestring | null- What the buyer gave.
statusstringpending,fulfilling(paid, being handed over; lasts moments) orpaid.codesstring[]- The ticket numbers, voucher codes or logins that were handed over.
routerStatestring- Hotspot orders:
waitinguntil your router has created the login, thendone. Otherwisenone. createdAt, paidAtdatetime- When it was started and when it was paid.
Keeping vouchers in stock
If a buyer pays for more vouchers than the pool holds, they are given the codes that are left and your team is told in the app; nothing is refunded by itself. Avoid it by watching codesLeft: read GET /shop/items on a schedule, or after each shop_order webhook, and load more codes when it runs low. An item with no codes left shows as sold out.
Errors
| Code | Status | Meaning |
|---|---|---|
ITEM_NAME | 422 | The item needs a name. |
ITEM_PRICE | 422 | The price is below KES 10.00 or above your limit. |
ITEM_STOCK | 422 | Stock must be a whole number, or null for no limit. |
ITEM_PROFILE | 422 | A hotspot item needs the name of a user profile on your router. |
ITEM_UPTIME | 422 | A hotspot item needs a time limit such as 1h, 1d or 30d. |
ITEM_LIMIT | 422 | A price list holds up to 100 items. |
ITEM_KIND_FIXED | 422 | The item has been sold, so its kind cannot change. |
ITEM_NOT_VOUCHER | 422 | Only voucher items have codes to load. |
CODES_EMPTY | 422 | No valid codes were found in what you sent. |
CODES_TOO_MANY | 422 | More than 5,000 codes in one request. |
SHOP_EMPTY | 422 | Switch on at least one item before opening the shop. |
NOT_FOUND | 404 | No item with that id in your organisation. |