Skip to contentSkip to Content
GuidesAPI conventions

API conventions

Rules every endpoint follows. Each API Reference page assumes them.

Requests and responses

  • HTTPS only. Send Content-Type: application/json on every request with a body.
  • Authenticate with Authorization: Bearer YOUR_ACCESS_TOKEN. Tokens from POST /business/auth last 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.

ProductFieldReused value
PayoutsbusinessReference (required)409 duplicate reference
Collectionsreference (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" }
StatusWhenRetry?
400Invalid payload or field validationNo. Fix the request
401Invalid credentials, missing or expired tokenOnce, with a new token
403Collections not enabled for your businessNo. Contact Waka
404Transaction not found, or FX rate not configuredNo
409Duplicate referenceNo. Check the status instead
412Insufficient available balanceAfter topping up
422Account not active, malformed QR, or SERVICE_DISRUPTED (rail temporarily down)No
429, 5xxRate limit hit (429), or a server or provider problemYes. After Retry-After for 429, with backoff for 5xx

Error messages

StatusMessageFix
400apiKey and apiSecret requiredSend both credentials
400invalid payloadFix the JSON and send Content-Type: application/json
400from and to are requiredSend both currencies to the FX rate endpoint
400countryCode is requiredSend countryCode
400countryCode must be one of: KE, TZ, UG, ZAUse a supported country code
400type must be "paybill" or "till"Set type to till or paybill
400lipaNumber is requiredSend the Till or Paybill number
400receiverPhone is requiredSend the phone number for a mobile money payout
400receiverLipaNumber is requiredSend the Till or Paybill number for a payment
400empty mobile numberSend phoneNumber
400phoneNumber must use the correct international prefix for the given countryCodeUse the country’s prefix, e.g. +254 for KE
400purposeOfTransfer must be one of: [...]Use an allowed value, see Payouts
400sourceOfFunds must be one of: [...]Use an allowed value, see Payouts
400callbackUrl must be a valid absolute URLSend a full https:// URL
401invalid credentialsCheck the key and secret
401missing value in request headerAdd Authorization: Bearer YOUR_ACCESS_TOKEN
401token is malformedGet a new access token
403collections not enabled for this businessAsk Waka to enable collections
404rate USD_TZS not configuredThe pair has no rate. Contact support
404transaction not foundCheck the reference
409duplicate referenceUse a new reference, or look up the existing one
412insufficient available balanceTop up or lower the amount
422account not activeIn the sandbox, use the test numbers
422unsupported or malformed QR payloadSend a valid QR string
422SERVICE_DISRUPTEDThe rail is down. Check Service status

Try errors in the sandbox

ScenarioHow
Invalid credentialsCall /business/auth with a wrong secret
Duplicate referenceSend the same payout twice with one businessReference
Account not activeVerify or pay a number that isn’t a sandbox test number
FX rate missingPay a Tanzania number (no USD to TZS rate in the sandbox)
Insufficient balanceAdd "forceStatus": "insufficient_balance" to a payout
Failed payoutAdd "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.

EndpointParameters
GET /business/transactionsfrom, to (required, ISO 8601), status (optional). Missing from or to returns an empty list, not an error
GET /business/collectionslimit (optional number), e.g. ?limit=20

Dates, currency and amounts

TopicRule
Dates and timesISO 8601 in UTC with Z: 2026-04-12T12:09:50Z. Convert local time (e.g. EAT, UTC+3) before filtering
CurrencyISO 4217 codes. Collections: KES, TZS, UGX. Payouts receive in KES, TZS, UGX, ZAR, RWF. FX is quoted from USD
AmountsJSON 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

VersionValueMeaning
API versionv1The contract your integration calls
Docs version2.0.1A 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.