Collect money
Payment links
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
You create the link
Your server calls
POST /payment-linksand gets back aurl.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.
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.
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
{
"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 | nullnullmeans 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.
statusstringopen,paid,expiredorcancelled. 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.
nullonce the link can no longer be paid.
Statuses
| Status | Meaning | Can it be paid? |
|---|---|---|
open | Waiting to be paid. A reusable link stays open after each payment. | Yes |
paid | A one-time link that has received its payment. | No |
expired | Its expiry date has passed without a payment. | No |
cancelled | You cancelled it. Every copy already sent stopped working at that moment. | No |
Endpoints
Create a link
/payment-linksPermission 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
}'{
"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
/payment-linksPermission paylinks.read
Newest first.
Query
statusstringOptional- Only links with this status:
open,paid,expiredorcancelled. 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"{
"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
/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.nullonce 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"{
"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
/payment-links/{id}/sendPermission 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"
}'{
"data": {
"sent": 1,
"email": false,
"sms": true
}
}Cancel a link
/payment-links/{id}/cancelPermission 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
/payment-links/limitsPermission 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.
{
"data": {
"verified": true,
"maxMinor": 50000000,
"perDay": 100,
"minMinor": 1000
}
}Knowing a link was paid
Do not trust the browser
- Best: the webhook. Listen for payment.succeeded where
subjectTypeispayment_link. It arrives within moments of the confirmation. - Also fine: read the link.
GET /payment-links/{id}and look atstatusandpayments. Use this to recover if your server was down when a webhook was sent.
Errors
| Code | Status | Meaning |
|---|---|---|
LINK_TITLE | 422 | The title is empty or shorter than 3 characters once unsafe characters are removed. |
LINK_AMOUNT | 422 | The amount is below the minimum or above your limit. The message gives both figures. |
LINK_PHONE | 422 | That is not a Kenyan mobile number. |
LINK_LIMIT | 422 | You have created, or sent, as many links as your limit allows in 24 hours. |
LINK_PAID | 422 | The link has been paid, so it cannot be cancelled. |
LINK_NOT_OPEN | 422 | The link can no longer be paid, so it was not sent. |
LINK_NO_ADDRESS | 422 | Sending needs an email address or a phone number. |
WALLET_FROZEN | 422 | Your wallet is frozen. Contact RadiPay support. |
NOT_FOUND | 404 | No 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.