Collect money

Payment links

Create a link, send it to your client, and be told when it is paid.

A payment link is an address your client opens to pay you. They choose M-Pesa, card or bank, pay without signing in to anything, and the money lands in your wallet. You say what it is for and, usually, how much.

How a link is paid

  1. You create the link

    Your server calls POST /payment-links and gets back a url.

  2. Your client opens it

    Send the address any way you like: WhatsApp, SMS, email, a QR code on a counter, a button on your site. RadiPay can send it for you.

  3. They pay

    The page shows your business name, what the payment is for and the amount, then takes the payment. Nothing your client does on that page can change the amount you set.

  4. The money is confirmed

    Only when the bank or Safaricom confirms it. The link becomes paid, your wallet is credited, and your server receives a payment.succeeded webhook.

The payment link

A payment link
{
  "id": "0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11",
  "reference": "PLABCD2345",
  "title": "Website design, first instalment",
  "note": null,
  "amountMinor": 1500000,
  "currency": "KES",
  "customerName": "Amina Wanjiru",
  "customerPhone": "254712345678",
  "customerEmail": null,
  "reusable": false,
  "status": "open",
  "expiresAt": "2026-12-10T09:15:00.000Z",
  "paidCount": 0,
  "collectedMinor": 0,
  "lastPaidAt": null,
  "createdAt": "2026-12-03T09:15:00.000Z",
  "url": "https://pay.example.co.ke/p/DW9MHoqFTDufDi8cep1bEQ.q0bX2n5J8wVtYc3LrZ7m"
}
iduuid
Use this in paths.
referencestring
Starts with PL. Short enough to read over the phone; it appears on the payer's receipt and on your statement.
titlestring
What the payment is for. The payer sees it.
notestring | null
More detail for the payer.
amountMinorinteger | null
null means the payer enters the amount.
currencystring
The currency of your wallet.
customerName, customerPhone, customerEmailstring | null
Who you expect to pay, if you said. The phone number is returned in 254… form.
reusableboolean
Whether it can be paid more than once.
statusstring
open, paid, expired or cancelled. See the table below.
expiresAtdatetime | null
When it stops working, if you set an expiry.
paidCountinteger
How many confirmed payments it has received.
collectedMinorinteger
The total of those payments.
lastPaidAtdatetime | null
When it was last paid.
createdAtdatetime
When it was created.
urlstring | null
The address to send to your client. null once the link can no longer be paid.

Statuses

StatusMeaningCan it be paid?
openWaiting to be paid. A reusable link stays open after each payment.Yes
paidA one-time link that has received its payment.No
expiredIts expiry date has passed without a payment.No
cancelledYou cancelled it. Every copy already sent stopped working at that moment.No

Endpoints

Create a link

POST/payment-links

Permission paylinks.createUp to 20 a minute

Body

titlestringRequired
What the payment is for, 3 to 80 characters. The payer sees it.
amountMinorintegerOptional
The amount in minor units. Leave it out to let the payer enter the amount (a donation, a top-up).
notestringOptional
More detail for the payer, up to 300 characters.
customerNamestringOptional
Who is paying, up to 80 characters. Shown in your list of links.
customerPhonestringOptional
A Kenyan mobile number. It is offered to the payer as the number for the M-Pesa prompt.
customerEmailstringOptional
An email address for the payer.
reusablebooleanOptional
true lets the link be paid many times (a standing price, a collection). false closes it after one payment. Default: false.
expiresInDaysintegerOptional
Stops working after this many days, 1 to 365. Leave it out for no expiry.
curl -X POST https://prod.pay.radingtechnologies.co.ke/payment-links \
  -H "Authorization: Bearer $RADIPAY_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1182-link" \
  -d '{
    "title": "Website design, first instalment",
    "amountMinor": 1500000,
    "customerName": "Amina Wanjiru",
    "customerPhone": "0712345678",
    "expiresInDays": 7
  }'
201 answer
{
  "data": {
    "id": "0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11",
    "reference": "PLABCD2345",
    "title": "Website design, first instalment",
    "note": null,
    "amountMinor": 1500000,
    "currency": "KES",
    "customerName": "Amina Wanjiru",
    "customerPhone": "254712345678",
    "customerEmail": null,
    "reusable": false,
    "status": "open",
    "expiresAt": "2026-12-10T09:15:00.000Z",
    "paidCount": 0,
    "collectedMinor": 0,
    "lastPaidAt": null,
    "createdAt": "2026-12-03T09:15:00.000Z",
    "url": "https://pay.example.co.ke/p/DW9MHoqFTDufDi8cep1bEQ.q0bX2n5J8wVtYc3LrZ7m"
  }
}

List links

GET/payment-links

Permission paylinks.read

Newest first.

Query

statusstringOptional
Only links with this status: open, paid, expired or cancelled.
qstringOptional
Find by title, reference or client name, up to 80 characters.
page, pageSizeintegerOptional
See Lists and paging.
curl https://prod.pay.radingtechnologies.co.ke/payment-links?status=open&q=wanjiru \
  -H "Authorization: Bearer $RADIPAY_API_KEY"
200 answer
{
  "data": [
    {
      "id": "0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11",
      "reference": "PLABCD2345",
      "title": "Website design, first instalment",
      "note": null,
      "amountMinor": 1500000,
      "currency": "KES",
      "customerName": "Amina Wanjiru",
      "customerPhone": "254712345678",
      "customerEmail": null,
      "reusable": false,
      "status": "open",
      "expiresAt": "2026-12-10T09:15:00.000Z",
      "paidCount": 0,
      "collectedMinor": 0,
      "lastPaidAt": null,
      "createdAt": "2026-12-03T09:15:00.000Z",
      "url": "https://pay.example.co.ke/p/DW9MHoqFTDufDi8cep1bEQ.q0bX2n5J8wVtYc3LrZ7m"
    }
  ],
  "meta": {
    "page": 1,
    "pageSize": 25,
    "total": 1,
    "pages": 1
  }
}

Get one link

GET/payment-links/{id}

Permission paylinks.read

The link, plus the confirmed payments it has received and a QR code of its address.

Added to the link

qrstring | null
A PNG of the address as a QR code, as a data: URL you can put straight into an image tag. null once the link can no longer be paid.
paymentsarray
Up to 50 confirmed payments, newest first.
iduuid
The payment.
referencestring
The payment reference, as printed on the receipt.
amountMinor, currencyinteger, string
What was paid.
payerNamestring | null
The name the payer gave.
paidAtdatetime
When the payment was confirmed.
curl https://prod.pay.radingtechnologies.co.ke/payment-links/0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11 \
  -H "Authorization: Bearer $RADIPAY_API_KEY"
200 answer
{
  "data": {
    "id": "0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11",
    "reference": "PLABCD2345",
    "title": "Website design, first instalment",
    "note": null,
    "amountMinor": 1500000,
    "currency": "KES",
    "customerName": "Amina Wanjiru",
    "customerPhone": "254712345678",
    "customerEmail": null,
    "reusable": false,
    "status": "paid",
    "expiresAt": "2026-12-10T09:15:00.000Z",
    "paidCount": 1,
    "collectedMinor": 1500000,
    "lastPaidAt": "2026-12-03T10:02:41.000Z",
    "createdAt": "2026-12-03T09:15:00.000Z",
    "url": null,
    "qr": null,
    "payments": [
      {
        "id": "9c2b7e10-…",
        "reference": "RT-261203-4F9A1C2B",
        "amountMinor": 1500000,
        "currency": "KES",
        "payerName": "Amina Wanjiru",
        "paidAt": "2026-12-03T10:02:41.000Z"
      }
    ]
  }
}

Send a link to your client

POST/payment-links/{id}/send

Permission paylinks.createUp to 10 a minute

RadiPay emails or texts the link in your business's name. Give an email address, a phone number, or both.

Body

emailstringOptional
Where to email it.
phonestringOptional
A Kenyan mobile number to text it to.
curl -X POST https://prod.pay.radingtechnologies.co.ke/payment-links/0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11/send \
  -H "Authorization: Bearer $RADIPAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "0712345678"
  }'
200 answer
{
  "data": {
    "sent": 1,
    "email": false,
    "sms": true
  }
}

Cancel a link

POST/payment-links/{id}/cancel

Permission paylinks.manage

Every copy of the address stops working at once, wherever it was sent. Money already paid through the link stays where it is. Cancelling a link that is already cancelled succeeds and changes nothing.

curl -X POST https://prod.pay.radingtechnologies.co.ke/payment-links/0d6f4c1e-8a57-4c3b-9f0e-2f1c7a9d5b11/cancel \
  -H "Authorization: Bearer $RADIPAY_API_KEY"

Read your limits

GET/payment-links/limits

Permission paylinks.read

The smallest and largest amount a link can be for, and how many links you can create in 24 hours. The limits rise once RadiPay has verified your business.

200 answer
{
  "data": {
    "verified": true,
    "maxMinor": 50000000,
    "perDay": 100,
    "minMinor": 1000
  }
}

Do not trust the browser

A client landing back on your site, or sending you a screenshot, is not proof of payment. Only two things are: the webhook, or reading the link from your server.
  • Best: the webhook. Listen for payment.succeeded where subjectType is payment_link. It arrives within moments of the confirmation.
  • Also fine: read the link. GET /payment-links/{id} and look at status and payments. Use this to recover if your server was down when a webhook was sent.

Errors

CodeStatusMeaning
LINK_TITLE422The title is empty or shorter than 3 characters once unsafe characters are removed.
LINK_AMOUNT422The amount is below the minimum or above your limit. The message gives both figures.
LINK_PHONE422That is not a Kenyan mobile number.
LINK_LIMIT422You have created, or sent, as many links as your limit allows in 24 hours.
LINK_PAID422The link has been paid, so it cannot be cancelled.
LINK_NOT_OPEN422The link can no longer be paid, so it was not sent.
LINK_NO_ADDRESS422Sending needs an email address or a phone number.
WALLET_FROZEN422Your wallet is frozen. Contact RadiPay support.
NOT_FOUND404No link with that id in your organisation.

Good to know

  • The address is a secret. Anyone who has it can pay it. It reveals nothing about the amount or your client, and cancelling makes it useless.
  • One order, one link. Create the link with an Idempotency-Key built from your order number so a retry never makes a second link.
  • M-Pesa prompts are limited to 3 per phone number and 20 per link in ten minutes, so a link cannot be used to pester anyone.
  • Text is cleaned. Titles, notes and names are reduced to one line and stripped of markup before a stranger sees them.

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