2.12 Errors
API error's are returned with the following schema.
{
"code": "The error code",
"message": "The error message"
}| Code | Status Code | Description |
|---|---|---|
| PaymentValidationError | 400 | On Submit Payment. There is an issue with the request payload. Details of the error will be available in the message field. |
| PaymentExpired | 400 | On Approve or Deny. The payment request has expired. |
| PaymentInvalidState | 400 | The payment is in an invalid state for the requested operation. |
| AuthenticationError | 401 | There was an authentication error with the given apiKey and signature combination. Details of the error will be available in the message field. |
| PaymentNotFound | 404 | The payment with the given id does not exist. |
| CollectionNotFoundError | 404 | The collection with the given id does not exist. |
| InvalidPhoneNumberFormat | 400 | Phone number in recipient / sender / source info not in international format (+234XXXXXXXXXX) |
| ResolveAccountError | 400 | There was an error resolving account number, no match for the provided bank account number on selected bank. |
| PermissionError | 403 | The Api Key doesn't have required permission to access the resource / endpoint. |
| InternalServerError | 500 | An unknown error occurred. Support should be contacted for investigation. |
Updated 9 months ago
