API conventions
Rules every endpoint follows. Each API Reference page assumes them.
Requests and responses
- HTTPS only. Send
Content-Type: application/jsonon every request with a body. - Authenticate with
Authorization: Bearer YOUR_ACCESS_TOKEN. Tokens fromPOST /business/authlast 3600 seconds. - Successful responses return the resource itself (for example a collection or transaction object), not a wrapper.
- Field names are camelCase:
businessReference,createdAt.
Idempotency and references
Your reference is the idempotency key. Use a new, unique value for every transaction.
| Product | Field | Reused value |
|---|---|---|
| Payouts | businessReference (required) | 409 duplicate reference |
| Collections | reference (optional) | 409 duplicate reference |
If a request times out, check its status by reference before sending anything new. A retry with the same reference can never create a second transaction. It returns 409.
Errors
Errors return an HTTP status and a JSON body with an error message. A missing Authorization header returns message instead. Branch on the HTTP status, then the message.
{
"code": 0,
"error": "duplicate reference"
}{
"message": "missing value in request header"
}| Status | When | Retry? |
|---|---|---|
| 400 | Invalid payload or field validation | No. Fix the request |
| 401 | Invalid credentials, missing or expired token | Once, with a new token |
| 403 | Collections not enabled for your business | No. Contact Waka |
| 404 | Transaction not found, or FX rate not configured | No |
| 409 | Duplicate reference | No. Check the status instead |
| 412 | Insufficient available balance | After topping up |
| 422 | Account not active, malformed QR, or SERVICE_DISRUPTED (rail temporarily down) | No |
| 429, 5xx | Rate limit hit (429), or a server or provider problem | Yes. After Retry-After for 429, with backoff for 5xx |
Error messages
| Status | Message | Fix |
|---|---|---|
| 400 | apiKey and apiSecret required | Send both credentials |
| 400 | invalid payload | Fix the JSON and send Content-Type: application/json |
| 400 | from and to are required | Send both currencies to the FX rate endpoint |
| 400 | countryCode is required | Send countryCode |
| 400 | countryCode must be one of: KE, TZ, UG, ZA | Use a supported country code |
| 400 | type must be "paybill" or "till" | Set type to till or paybill |
| 400 | lipaNumber is required | Send the Till or Paybill number |
| 400 | receiverPhone is required | Send the phone number for a mobile money payout |
| 400 | receiverLipaNumber is required | Send the Till or Paybill number for a payment |
| 400 | empty mobile number | Send phoneNumber |
| 400 | phoneNumber must use the correct international prefix for the given countryCode | Use the country’s prefix, e.g. +254 for KE |
| 400 | purposeOfTransfer must be one of: [...] | Use an allowed value, see Payouts |
| 400 | sourceOfFunds must be one of: [...] | Use an allowed value, see Payouts |
| 400 | callbackUrl must be a valid absolute URL | Send a full https:// URL |
| 401 | invalid credentials | Check the key and secret |
| 401 | missing value in request header | Add Authorization: Bearer YOUR_ACCESS_TOKEN |
| 401 | token is malformed | Get a new access token |
| 403 | collections not enabled for this business | Ask Waka to enable collections |
| 404 | rate USD_TZS not configured | The pair has no rate. Contact support |
| 404 | transaction not found | Check the reference |
| 409 | duplicate reference | Use a new reference, or look up the existing one |
| 412 | insufficient available balance | Top up or lower the amount |
| 422 | account not active | In the sandbox, use the test numbers |
| 422 | unsupported or malformed QR payload | Send a valid QR string |
| 422 | SERVICE_DISRUPTED | The rail is down. Check Service status |
Try errors in the sandbox
| Scenario | How |
|---|---|
| Invalid credentials | Call /business/auth with a wrong secret |
| Duplicate reference | Send the same payout twice with one businessReference |
| Account not active | Verify or pay a number that isn’t a sandbox test number |
| FX rate missing | Pay a Tanzania number (no USD to TZS rate in the sandbox) |
| Insufficient balance | Add "forceStatus": "insufficient_balance" to a payout |
| Failed payout | Add "forceStatus": "termination_failure" to a payout |
Rate limits
1,000 requests per minute per API key or token (per IP for /business/auth). Over the limit you get 429 Too Many Requests with Retry-After: 60 and X-RateLimit-Limit: 1000. Wait that long before retrying.
HTTP/1.1 429 Too Many Requests
Retry-After: 60
X-RateLimit-Limit: 1000
{"error": "...", "message": "rate limit exceeded"}Pagination and filtering
List endpoints return an items array. There is no page cursor. Narrow results with filters.
| Endpoint | Parameters |
|---|---|
GET /business/transactions | from, to (required, ISO 8601), status (optional). Missing from or to returns an empty list, not an error |
GET /business/collections | limit (optional number), e.g. ?limit=20 |
Dates, currency and amounts
| Topic | Rule |
|---|---|
| Dates and times | ISO 8601 in UTC with Z: 2026-04-12T12:09:50Z. Convert local time (e.g. EAT, UTC+3) before filtering |
| Currency | ISO 4217 codes. Collections: KES, TZS, UGX. Payouts receive in KES, TZS, UGX, ZAR, RWF. FX is quoted from USD |
| Amounts | JSON numbers in major units (5000 = TZS 5,000). A payout amount is in the receiver currency. Converted senderAmount can carry many decimals (0.7751937984496124), so store it as a decimal, not a float |
Versioning
| Version | Value | Meaning |
|---|---|---|
| API version | v1 | The contract your integration calls |
| Docs version | 2.0.1 | A release of this documentation. Docs updates don’t change the API |
Build tolerant clients: ignore response fields you don’t recognize, and treat unknown status values as not final.