Till & Paybill
Pay a merchant Till (Lipa number) or a Paybill account from your payout wallet.
POST
/business/payout/paymentTill or Paybill
| Type | How it works |
|---|---|
| Till | No account reference. The money goes straight to the till number. |
| Paybill | Needs receiverAccount, the account reference the merchant uses to match your payment. |
Fields for this payout
typestringrequiredtill or paybill.
receiverLipaNumberstringrequiredThe Till or Paybill number. From a QR code, use the decoded tillNumber.
receiverAccountstringoptionalRequired for Paybill. Leave it out for a Till.
forceStatusstringoptionalSandbox only. termination_failure, termination_success or insufficient_balance.
Kenya
cURL: Kenya Till
curl -X POST "https://api.test.wakapay.io/business/payout/payment" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "till",
"senderCurrency": "USD",
"receiverCurrency": "KES",
"amount": 100.0,
"senderFirstName": "Alice",
"senderLastName": "Smith",
"senderDob": "1985-03-15",
"senderIdType": "passport",
"senderIdNumber": "AB1234567",
"senderNationality": "TZ",
"senderTelephoneNo": "+255712345678",
"receiverFirstName": "John",
"receiverLastName": "Doe",
"receiverLipaNumber": "888880",
"relationship": "Family",
"payoutCountry": "KE",
"purposeOfTransfer": "family_support",
"sourceOfFunds": "salary",
"businessReference": "TEST-PAYMENT-KE-TILL-001"
}'201Created
{
"businessReference": "TEST-PAYMENT-KE-TILL-001",
"receiverAmount": 100,
"receiverCurrency": "KES",
"senderAmount": 0.7751937984496124,
"senderCurrency": "USD",
"status": "termination_pending",
"totalDebited": 0.7906976744186047,
"wakapayReference": "3454311f-364b-11f1-8c14-0242ac120008",
"fxRate": 129
}cURL: Kenya Paybill
curl -X POST "https://api.test.wakapay.io/business/payout/payment" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "paybill",
"senderCurrency": "USD",
"receiverCurrency": "KES",
"amount": 100.0,
"senderFirstName": "Alice",
"senderLastName": "Smith",
"senderDob": "1985-03-15",
"senderIdType": "passport",
"senderIdNumber": "AB1234567",
"senderNationality": "TZ",
"senderTelephoneNo": "+255712345678",
"receiverFirstName": "John",
"receiverLastName": "Doe",
"receiverLipaNumber": "123456",
"receiverAccount": "ABC123",
"relationship": "Family",
"payoutCountry": "KE",
"purposeOfTransfer": "family_support",
"sourceOfFunds": "salary",
"businessReference": "TEST-PAYMENT-KE-PAYBILL-001"
}'A Paybill payout returns the same response shape as a Till payout.
Every other field is the same as a mobile money payout: sender details, receiver names, relationship, payoutCountry, purposeOfTransfer, sourceOfFunds, businessReference and the optional callbackUrl. There is no receiverPhone.
Recommended flow
| # | Step |
|---|---|
| 1 | Verify the number with POST /business/verify-payment and show the displayName to your user |
| 2 | Create the payout with a unique businessReference |
| 3 | Get the final status by webhook, or GET /business/transactions/{businessReference} |
Uganda tills
Uganda pays merchant tills through MTN MoMo Pay. Paybill is not supported there.
| Rule | Detail |
|---|---|
| type | Must be till |
| receiverCurrency | Must be UGX |
| payoutCountry | Must be UG |
| Minimum amount | 500 UGX |
| Receiver names | Optional. If you leave them out, WakaPay checks the till and fills in the merchant name. |
Sandbox numbers
| Country | Type | Number | Result |
|---|---|---|---|
| Kenya | Till | 888880 | Payout succeeds |
| Kenya | Paybill | 123456, ref ABC123 | Payout succeeds |
| Tanzania | Till | 600000 | Verifies, no FX rate |
| Tanzania | Paybill | 700000, ref ABC123 | Verifies, no FX rate |
| Uganda | Till | 800001 | Kampala Spices |
Errors
| Status | Message |
|---|---|
| 400 | receiverLipaNumber is required, or another missing or invalid field |
| 404 | rate USD_TZS not configured |
| 409 | duplicate reference |
| 412 | insufficient available balance |
| 422 | account not active, or SERVICE_DISRUPTED when the rail is down. See Service status |