Error Codes
Here is a comprehensive breakdown of all client and server-side errors that can occur during usage of the Airtime API.
Error Code
Description
COUNTRY_NOT_SUPPORTED
The specified country in the request is currently disabled or not supported.
OPERATOR_UNAVAILABLE_OR_
CURRENTLY INACTIVE
The specified operator is currently disabled or inactive on the platform.
COULD_NOT_AUTO_DETECT_OPERATOR
INVALID_AMOUNT_FOR_OPERATOR
The specified top-up amount is not valid for the given operator in the request.
TOKEN_EXPIRED
Access tokens have a finite lifetime which is indicated whenever they are issued.
To track an access token's lifetime, you can either:
Keep track of the
expires_in
value in the response gotten when a request is made for an access token. The value is expressed in seconds.Handle the HTTP
401 Unauthorized
status code and theTOKEN_EXPIRED
error code in the error response message. The API endpoint issues this status code when it detects an expired token.
INSUFFICIENT_BALANCE
The user's account balance is not sufficient enough to carry out their intended request.
MAX_DAILY_TRANSACTION_AMOUNT_
REACHED
MAX_DAILY_TRANSACTION_COUNT_
REACHED
ACCOUNT_NOT_FOUND
INVALID_AMOUNT
The amount requested by the user is incorrect — either a wrong data type or an invalid amount specification (for operators with fixed ranges).
INVALID_RECIPIENT_PHONE
The specified recipientPhone
parameter in the request is not valid for the specified country.
INVALID_SENDER_PHONE
The specified senderPhone
parameter in the request is not valid for the specified country.
INVALID_PHONE_NUMBER
The specified phone number is not valid.
PHONE_RECENTLY_RECHARGED
A second recharge was attempted on a mobile number before the default waiting time of two minutes could elapse.
INACTIVE_ACCOUNT
TOPUP_TRANSACTION_FAILED
TRANSACTION_CANNOT_BE_PROCESSED_AT_THE_MOMENT
OPERATOR_NOT_IN_SERVICE
The specified operator in the request is currently disabled, inactive, or not in service on the platform.
Last updated
Was this helpful?