HTTP Response Codes
| HTTP Code | Meaning | Description |
|---|---|---|
| 200, 201 | OK / Created | The request was successful, and the operation was completed as expected. |
| 400 | Bad Request | The request was invalid, usually due to missing or incorrect parameters. |
| 401 | Unauthorized | No valid API key or Bearer token was provided, or the key is invalid. |
| 403 | Forbidden | The API key does not have permission or merchant KYC verification is required. |
| 404 | Not Found | The requested resource could not be found, possibly due to an incorrect URL or ID. |
| 409 | Conflict | The request conflicts with an existing record, such as a duplicate reference. |
| 422 | Unprocessable Entity | Validation error — check required fields and data formats. |
| 429 | Too Many Requests | Too many requests were sent in a short period. Please implement exponential backoff. |
| 500, 502, 503, 504 | Server Errors | Internal server errors. Rare, but if persistent please contact support. |
Troubleshooting Tips
- 400 & 422 Errors: Double-check request parameters to ensure all required fields are included and formatted properly.
- 401 & 403 Errors: Confirm your secret key and api-key are correctly passed in the headers.
- 429 Errors: Implement an exponential backoff retry strategy with jitter.
- 5xx Errors: These indicate upstream gateway issues; please retry or contact support.
Standard Error Response Format
json
{
"status": false,
"code": "invalid_reference",
"message": "customer_ref must be at least 3 characters"
}