Skip to main content

Response Codes

Chipdeals Mobile Money Payments API uses conventional HTTP response codes to indicate the success or failure of requests.

We discuss some common errors and their causes below.es.

Bad request

Status Header Code: 400
The server cannot process the request due to an error in the request. For example, an error in the data passed to the request or a non-existent request URL.

Unauthorized Request

Status Header Code: 401
Invalid authentication credentials. The API key used in the request is invalid.

Request prohibited

Status Header Code: 403
Your request contains valid data and has been understood by the server. But the requested action is not possible. This may be because you do not have the necessary permissions for the request you are making.

It can also be an action that cannot be performed. For example, making a money transfer with a balance less than the amount you are trying to send.

Requested resource not found

Status Header Code: 404
The requested resource could not be found. For example a transaction with a non-existent reference.

Server error

Status Header Code: 500
A generic error message. This error occurs when an unexpected condition has been encountered on our server and no more specific message is appropriate.


Transaction Status Codes

When you initiate a payment, or try to check the status of a payment, we return an object to you containing the details of the payment. The statusMessageCode property present in the body of the response makes it possible to accurately determine the current status of a payment

Code State Meaning
200successTransaction Completed Successfully
201pendingValidation of current transaction information
202processingTransaction being processed
203pendingValid payment information
204pendingAwaiting validation of payment by the user
400errorInvalid transaction information
401errorIncomplete transaction information
402errorInvalid payment receipt number
403errorInvalid beneficiary number
404errorPayment not approved by payer
406errorNumber not linked to a mobile money account
407errorValidation of payment already pending on this account
408errorA transaction of the same amount on this account is already in progress.
409errorThe beneficiary has reached the maximum receivable amount authorized per month on this account.
410errorThe amount you entered in the request is less than the required minimum
411errorThe amount you entered in the request is greater than the maximum allowed
413errorThe maximum allowed failed payments has been reached. Execute the transaction again after 24 hours
414errorThis credit card does not have 3DS authentication activated.
460errorThis account does not have enough funds to make the payment.
461errorAn error occurred during payment
462errorWe do not yet support transactions with this Mobile Money operator.
462errorWe do not yet support transactions for this country.
5XXerrorAn error has occurred on the server. Our developers are aware. We fix it.
505errorAn error occurred with the network operator while executing the transaction.

Error Codes

Here we list the possible error codes during your requests to the API.

An error code is present in a response when an error has occurred while processing the request.

Example
{
"success": false,
"message": "Endpoint not available",
"errorCode": "400-000" // error code
}
Code Status Header code Meaning
400-000400URL does not exist
400-001400Some data you sent is not correct
400-100400Parameter senderFirstName not found in request
400-101400senderFirstName parameter contains invalid data
400-102400Parameter senderLastName not found in request
400-103400senderLastName parameter contains invalid data
400-104400Parameter senderPhoneNumber not found in request
400-105400senderPhoneNumber parameter contains invalid data
400-106400amount parameter not found in request
400-107400amount parameter contains invalid data
400-110400Parameter recipientPhoneNumber not found in request
400-111400recipientPhoneNumber parameter contains invalid data
400-116400Requested currency not supported
400-117400currency parameter not found in request
400-118400currency parameter contains invalid data
400-120400The sender's country code phoneNumber is not activated with your API key
400-121400The country code of the recipient's phone number is not activated with your API key
400-122400Wrong payer network operator
400-123400Wrong recipient's network operator
400-124400The carrier of the sender's phone number is not yet supported
400-125400The operator of the recipient's phone number is not yet supported
400-129400Country not supported
401-100401Incorrect API key
404-100404No transaction with this reference found
403-100403Insufficient balance to make a payment
500-000500Server Error
500-001500An error occurred while converting currencies.