QR decode
Read a merchant QR code and get the till number, merchant name and currency to pay.
POST
/business/decode-qrBody
qrStringstringrequiredThe QR code data.
countrystringoptionalTwo-letter hint, e.g. UG. Required in practice for MTN MoMo Pay.
countryCodestringoptionalAlias for country. Send one or the other.
Tanzania
cURL: Tanzania TIPS QR
curl -X POST "https://api.test.wakapay.io/business/decode-qr" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"qrString": "00020101021126420014tz.go.bot.tips0110000000000102066000005204000053038345802TZ5911UGALI POINT6013DAR ES SALAAM610511000630414DA"
}'200OK
{
"amount": null,
"channel": "TIPS",
"countryCode": "TZ",
"currency": "TZS",
"isStatic": true,
"merchantCity": "DAR ES SALAAM",
"merchantName": "UGALI POINT",
"tillNumber": "600000"
}Decode, verify, pay
| # | Step |
|---|---|
| 1 | Decode the QR. Strip leading zeros from tillNumber (01888880 becomes 888880). |
| 2 | Verify the till: POST /business/verify-payment with type: "till". |
| 3 | Pay: POST /business/payout/payment. Static QR (isStatic: true): you supply the amount. |
Supported QR codes
| Country | QR codes |
|---|---|
| Kenya | M-Pesa, EMV (Lipa na M-Pesa) |
| Tanzania | M-Pesa, Tigo, Airtel, TIPS / TANQR |
| Uganda | MTN MoMo Pay, send country: "UG" |
| South Africa | EMV |
Errors
| Status | Message |
|---|---|
| 422 | unsupported or malformed QR payload. Invalid, incomplete or missing QR |
| 400 | invalid payload. Malformed JSON |
| 401 | missing value in request header |
Try it
Scan with your phone camera, copy the decoded string, and POST it to /business/decode-qr in the sandbox.
Scan with your phone camera, copy the decoded string, and POST it to /business/decode-qr.

Ugali PointSafaricom · Lipa na M-Pesa · Kenya

Ugali PointTIPS · TANQR · Tanzania
Kampala SpicesMTN MoMo Pay · Till 800001 · Uganda