Skip to contentSkip to Content
API ReferenceQR decode

QR decode

Read a merchant QR code and get the till number, merchant name and currency to pay.

POST/business/decode-qr

Body

qrStringstringrequired

The QR code data.

countrystringoptional

Two-letter hint, e.g. UG. Required in practice for MTN MoMo Pay.

countryCodestringoptional

Alias for country. Send one or the other.

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
1Decode the QR. Strip leading zeros from tillNumber (01888880 becomes 888880).
2Verify the till: POST /business/verify-payment with type: "till".
3Pay: POST /business/payout/payment. Static QR (isStatic: true): you supply the amount.

Supported QR codes

CountryQR codes
KenyaM-Pesa, EMV (Lipa na M-Pesa)
TanzaniaM-Pesa, Tigo, Airtel, TIPS / TANQR
UgandaMTN MoMo Pay, send country: "UG"
South AfricaEMV

Errors

StatusMessage
422unsupported or malformed QR payload. Invalid, incomplete or missing QR
400invalid payload. Malformed JSON
401missing 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.

Try it

Scan with your phone camera, copy the decoded string, and POST it to /business/decode-qr.

Ugali Point Safaricom · Lipa na M-Pesa · Kenya merchant QR code
Ugali PointSafaricom · Lipa na M-Pesa · Kenya
Flag of Kenya
Ugali Point TIPS · TANQR · Tanzania merchant QR code
Ugali PointTIPS · TANQR · Tanzania
Flag of Tanzania
Kampala Spices MTN MoMo Pay · Till 800001 · Uganda merchant QR code
Kampala SpicesMTN MoMo Pay · Till 800001 · Uganda
Flag of Uganda