Error Codes & Statuses
Standard response envelope, HTTP status codes, and transaction states.
Standard Error Envelope
HTTP & Error Codes
| Status | Code | Meaning |
|---|---|---|
| 400 | VALIDATION_ERROR | Missing Idempotency-Key, unexpected field, invalid phone, or invalid amountKobo |
| 401 | AUTHENTICATION_ERROR | Missing, expired, or revoked API key |
| 402 | INSUFFICIENT_FUNDS | Business main wallet balance cannot cover the purchase |
| 403 | FORBIDDEN | Host/key mismatch (e.g. test key on live host) or unverified KYC on live key |
| 409 | IDEMPOTENCY_CONFLICT | Key in flight or reused with different parameters |
| 429 | RATE_LIMIT_EXCEEDED | Request quota exceeded; back off before retrying |
| 502 | PROVIDER_VEND_FAILED | Upstream vending failed; any debited wallet amount is automatically refunded |
