Aller au contenu principal

Error Codes

All API errors follow a consistent format:

{
"error": {
"code": "insufficient_funds",
"message": "The customer's mobile money account has insufficient funds.",
"type": "payment_error",
"param": null
}
}

HTTP Status Codes

CodeMeaning
200Success
201Created
400Bad request — invalid parameters
401Unauthorized — invalid or missing API key
403Forbidden — insufficient scopes
404Not found
409Conflict — idempotency conflict
429Too many requests — rate limit exceeded
500Internal server error

Payment Errors

CodeDescription
insufficient_fundsCustomer doesn't have enough balance
payment_timeoutCustomer didn't confirm in time
provider_unavailablePayment provider is temporarily unavailable
invalid_phonePhone number format is invalid
invalid_operatorUnsupported mobile money operator
card_declinedCard was declined
expired_cardCard has expired
incorrect_cvcCVC code is incorrect
processing_errorGeneric processing error

Validation Errors

CodeDescription
invalid_amountAmount is below minimum or above maximum
invalid_currencyCurrency is not supported
missing_required_fieldA required field is missing
invalid_parameterA parameter has an invalid value

Authentication Errors

CodeDescription
invalid_api_keyAPI key is invalid or revoked
expired_api_keyAPI key has expired
insufficient_scopesAPI key doesn't have the required scopes
ip_not_allowedRequest IP is not in the key's whitelist