Errors

Overview

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.

{
  "success": false,
  "message": "External reference already in use.",
  "errorCode": "DUPLICATE_EXTERNAL_REFERENCE"
}

Common Errors

HTTP StatusError CodeDescription
403 ForbiddenUSER_NOT_ONBOARDEDAccount has not completed the required onboarding process.
409 ConflictDUPLICATE_EXTERNAL_REFERENCEThe externalReference has already been used — must be unique.
422 Unprocessable EntityINSUFFICIENT_FUNDSWallet balance is too low to complete the debit transaction.
503 Service UnavailableFX_RATE_UNAVAILABLETemporarily unable to retrieve a currency conversion rate. Safe to retry.
500 Internal Server ErrorINTERNAL_SERVER_ERRORUnexpected error on our end. Report if it persists.

Payout Specific Errors

HTTP StatusError CodeDescription
403 ForbiddenCURRENCY_NOT_ENABLEDCurrency not enabled for payouts on this account.
404 Not FoundPAYOUT_PROVIDER_NOT_FOUNDNo payment provider found for the specified currency and destination.
422 Unprocessable EntityDEBIT_CURRENCY_NOT_SUPPORTEDThe combination of debitCurrency and currency is not allowed.
422 Unprocessable EntityMOMO_CODE_REQUIREDpayoutMethod.code (operator code) is required for MoMo payouts in this region.

Collections Specific Errors

HTTP StatusError CodeDescription
403 ForbiddenCURRENCY_NOT_ENABLEDCurrency not enabled for collections on this account.
422 Unprocessable EntityUNSUPPORTED_CURRENCYCurrency is not supported for collections.
422 Unprocessable EntityMOMO_CODE_REQUIREDCharge method does not support the selected currency.
422 Unprocessable EntityWALLET_CURRENCY_NOT_SUPPORTEDCross-currency deposit combination not supported.
400 Bad RequestMOMO_OPERATOR_ID_REQUIREDSelected provider requires a momoOperatorId.
404 Not FoundPROVIDER_NOT_FOUNDNo collection provider matches the currency/method/operator/country/amount.
404 Not FoundCOUNTRY_CODE_NOT_FOUNDPhone number prefix doesn't match a supported XOF country.