Collect money

Shop, tickets and vouchers

A price list at one address that hands the buyer a ticket number or voucher code once they have paid.

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

KindThe buyer getsUse it for
standardA receipt.Goods and services you hand over yourself.
ticketA ticket number for each unit, such as TK-7K2M-9QXD, made by RadiPay.Events and anything checked at a door.
voucherOne 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.
hotspotAn 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

  1. Add your items

    POST /shop/items for each thing you sell. New items start switched off.

  2. Load codes, for voucher items

    POST /shop/items/{id}/codes with the codes, one per line.

  3. Switch items on and open the shop

    PUT /shop/items/{id} with active: true, then PUT /shop/profile with shopOpen: true.

  4. Share the address

    GET /shop/profile returns url. Put it on WhatsApp, a poster, a QR code or your Wi-Fi login page.

  5. Hear about each sale

    A payment.succeeded webhook arrives with subjectType shop_order and the order's id in subjectId. GET /shop/orders lists what was sold with the codes given.

Endpoints

Read the shop

GET/shop/profile

Permission shop.read

200 answer
{
  "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

PUT/shop/profile

Permission 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

GET/shop/items

Permission shop.read

The whole price list in display order. It is not paged; a price list holds at most 100 items.

200 answer
{
  "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.
kindstring
standard, ticket, voucher or hotspot.
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

POST/shop/items

Permission shop.manage

Body

namestringRequired
2 to 60 characters.
priceMinorintegerRequired
The price of one unit in minor units, at least 1000 (KES 10.00).
kindstringRequired
standard, ticket, voucher or hotspot.
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
  }'
201 answer
{
  "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

PUT/shop/items/{id}

Permission shop.manage

Send the whole item

This replaces the item. Send every field you want to keep, including 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

POST/shop/items/{id}/codes

Permission 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"
  }'
200 answer
{
  "data": {
    "loaded": 3,
    "skipped": 0,
    "codesLeft": 91
  }
}

List orders

GET/shop/orders

Permission shop.read

Newest first.

Query

statusstringOptional
paid or pending (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"
200 answer
{
  "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.
statusstring
pending, fulfilling (paid, being handed over; lasts moments) or paid.
codesstring[]
The ticket numbers, voucher codes or logins that were handed over.
routerStatestring
Hotspot orders: waiting until your router has created the login, then done. Otherwise none.
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

CodeStatusMeaning
ITEM_NAME422The item needs a name.
ITEM_PRICE422The price is below KES 10.00 or above your limit.
ITEM_STOCK422Stock must be a whole number, or null for no limit.
ITEM_PROFILE422A hotspot item needs the name of a user profile on your router.
ITEM_UPTIME422A hotspot item needs a time limit such as 1h, 1d or 30d.
ITEM_LIMIT422A price list holds up to 100 items.
ITEM_KIND_FIXED422The item has been sold, so its kind cannot change.
ITEM_NOT_VOUCHER422Only voucher items have codes to load.
CODES_EMPTY422No valid codes were found in what you sent.
CODES_TOO_MANY422More than 5,000 codes in one request.
SHOP_EMPTY422Switch on at least one item before opening the shop.
NOT_FOUND404No item with that id in your organisation.

© 2026 Rading Technologies Limited. RadiPay never asks for your M-Pesa PIN, by email, SMS or through the API. Terms · Privacy