Take payments
Paypoint lookup
Show the payer their balance before they pay: they type a reference on your app's paypoint, TukuPay asks your server, and shows your one small JSON answer.
For any app: a school's admission number and fee balance, a church's member or pledge number, a landlord's unit and rent due. It works on the paypoints your app made (POST /v1/paypoints). TukuPay only displays your answer, as plain text, and fills in the amount due; it keeps it at most 30 seconds and never acts on it. The payment is then made as usual and reaches your webhook with the reference in data.account_reference.
Set up
- On the app's page (Developers → your app → Paypoint lookup), set the lookup URL: public
httpson a host name (no IP addresses, no local or private networks), port 443 or 8443, at most 500 characters. - Set what the payer types, e.g.
Admission number(2 to 40 characters), and switch lookup on. It is off until you do. - Type a reference in Test lookup: TukuPay sends one signed request (with
"test": true) and shows your answer as payers will see it, or exactly what is wrong with it.
The request TukuPay sends
A POST to your lookup URL with Content-Type: application/json, User-Agent: TukuPay-Lookup/1 and Tuku-Signature: t=<unix>,v1=<hex>, signed exactly as webhooks are (HMAC-SHA256 with your webhook signing secret of <t>.<raw body>; Tuku-Signature-Previous too for 24 hours after you replace the secret). Check it with the same code as webhooks and refuse a t more than 5 minutes old.
{
"type": "paypoint.lookup",
"id": "lk_9f2cXk1q…",
"livemode": true,
"paypoint": { "id": "6f1c…-paypoint-public-id", "code": "PP7X2K9A", "name": "Form 2 fees" },
"reference": "ADM-1043",
"requested_at": "2026-11-23T18:00:00Z"
}reference is what the payer typed, trimmed, at most 64 characters. paypoint.id is the same id webhooks carry as paypoint_id. livemode is false while the app is in the sandbox.
The one answer
Answer HTTP 200 with one JSON object, also when nothing is found:
{
"found": true,
"title": "Jane W. · Form 2 East",
"lines": [
{ "label": "Fee balance", "value": "KES 12,500" },
{ "label": "Due", "value": "30 Nov 2026" }
],
"amount_due": "12500.00",
"message": "Pay any amount; it is applied to the oldest invoice first."
}| Field | Rule |
|---|---|
found | Required: true or false ({ "found": false, "message": "No learner with that admission number." }) |
title | Optional, at most 80 characters. Mask private names ("Jane W."): the payer may not be the person |
lines | Optional, at most 8, each { "label" ≤ 40, "value" ≤ 120 }, strings only |
amount_due | Optional decimal string ≥ 0 with at most 2 decimals ("12500.00"): filled in; the payer may change it |
message | Optional, at most 200 characters |
Other fields are ignored and control characters are removed. Text is shown as plain text: no HTML, no links.
A non-200 answer, a redirect (TukuPay follows none), bad JSON, a wrong shape, more than 16 KB or no answer within 4 seconds: the payer sees "We couldn't check that right now. You can still pay." and can still pay. Test lookup lists what was wrong.
Limits
- Per payer address: 10 lookups a minute on one paypoint. Per paypoint: 600 an hour. Past them TukuPay answers the payer
429 lookup_busywithout calling you. - The same paypoint and reference within 30 seconds is answered from a short cache: your server is not called again.