The Cashless API uses standard HTTP status codes to indicate success or failure. For client-side (4xx) and server-side (5xx) errors, the response body contains a JSON object with a specific errorCode and descriptive message.
JSON
{
"success": false,
"message": "External reference already in use.",
"errorCode": "DUPLICATE_EXTERNAL_REFERENCE"
}
HTTP Status Error Code Description 403 Forbidden USER_NOT_ONBOARDEDAccount has not completed the required onboarding process. 409 Conflict DUPLICATE_EXTERNAL_REFERENCEThe externalReference has already been used — must be unique. 422 Unprocessable Entity INSUFFICIENT_FUNDSWallet balance is too low to complete the debit transaction. 503 Service Unavailable FX_RATE_UNAVAILABLETemporarily unable to retrieve a currency conversion rate. Safe to retry. 500 Internal Server Error INTERNAL_SERVER_ERRORUnexpected error on our end. Report if it persists.
HTTP Status Error Code Description 403 Forbidden CURRENCY_NOT_ENABLEDCurrency not enabled for payouts on this account. 404 Not Found PAYOUT_PROVIDER_NOT_FOUNDNo payment provider found for the specified currency and destination. 422 Unprocessable Entity DEBIT_CURRENCY_NOT_SUPPORTEDThe combination of debitCurrency and currency is not allowed. 422 Unprocessable Entity MOMO_CODE_REQUIREDpayoutMethod.code (operator code) is required for MoMo payouts in this region.
HTTP Status Error Code Description 403 Forbidden CURRENCY_NOT_ENABLEDCurrency not enabled for collections on this account. 422 Unprocessable Entity UNSUPPORTED_CURRENCYCurrency is not supported for collections. 422 Unprocessable Entity MOMO_CODE_REQUIREDCharge method does not support the selected currency. 422 Unprocessable Entity WALLET_CURRENCY_NOT_SUPPORTEDCross-currency deposit combination not supported. 400 Bad Request MOMO_OPERATOR_ID_REQUIREDSelected provider requires a momoOperatorId. 404 Not Found PROVIDER_NOT_FOUNDNo collection provider matches the currency/method/operator/country/amount. 404 Not Found COUNTRY_CODE_NOT_FOUNDPhone number prefix doesn't match a supported XOF country.