Response Codes
Instant Transfers List of Response Codes
Ayoconnect's Instant Transfer APIs use HTTP response codes to indicate how an API request was handled. However, for asynchronous APIs, the HTTP response does not always represent the final transaction outcome.
In general:
- 2xx - Successful / Accepted: The request was successfully received. For Account Validation and Disbursement, the final result may still be processing and will be delivered through a callback. For Status Inquiry and Balance Inquiry, the result is returned directly in the API response.
- 4xx - Request Error: The request could not be completed due to invalid parameters, authentication issues, transaction restrictions, or other validation errors. Review the error message and take the appropriate action before resubmitting.
- 5xx - System Error: An error occurred on Ayoconnect's or the bank's side. For asynchronous APIs such as Account Validation and Disbursement, this does not necessarily indicate that the operation has failed.
Handling HTTP 5xx Errors
Disbursement
If the Disbursement API returns an HTTP 5xx response, 5XX18XX response code, or timeout, merchants MUST keep the transaction as Processing and MUST NOT initiate another disbursement until the original transaction outcome is confirmed.
- Keep the transaction as Processing.
- Wait for the Disbursement callback.
- If no callback is received within 30 minutes, call the Status Inquiry API, using the original
X-EXTERNAL-IDasoriginalExternalId. - If the transaction remains Pending or the outcome cannot be confirmed, continue monitoring and do not retry.
Important: The 30-minute waiting period is for status verification, not permission to retry. Retrying before confirming the original transaction outcome may result in duplicate disbursements.
Account Validation
Account Validation is also processed asynchronously, but follows a different retry mechanism.
- The callback is typically received within a few seconds.
- If no callback is received within 30 seconds, merchants may resend the same request using the same request identifier (idempotency key) to check whether the original request is already being processed.
- If no callback is received within 1 minute, merchants may retry Account Validation according to the applicable API requirements.
These retry instructions apply to Account Validation only, not Disbursement.
Error Responses
Error responses are represented by a combination of the HTTP response code, service code, and case code.
Error Response = HTTP Code + Service Code + Case Code
For example, 5001801 represents an HTTP 500 error for the Disbursement service (18), with case code 01.
Service Codes
The following service codes are used by the Instant Transfer APIs:
| Service Code | Service |
|---|---|
| 16 | Account Validation |
| 18 | Disbursement |
| 36 | Status Inquiry |
| 11 | Balance Inquiry |
Error Codes
The following table lists the available response codes, their descriptions, and the recommended actions for Disbursement.
XX represents the applicable service code.
| HTTP Code | Service Code | Case Code | Response Message | Response Description | Recommended Action for Disbursement |
|---|---|---|---|---|---|
| 200 | XX | 00 | Successful | Successful | Wait for callback if processing asynchronously. |
| 202 | XX | 00 | Request in Progress | Transaction still on process | Keep as Processing. Wait for callback. |
| 400 | XX | 00 | Bad Request | General request failed error, including message parsing failed. | Correct the request. |
| 400 | XX | 01 | Invalid Field Format {field name} | Invalid format | Correct the field format. |
| 400 | XX | 02 | Invalid Mandatory Field {field name} | Missing or invalid format on mandatory field | Correct the mandatory field. |
| 401 | XX | 00 | Unauthorized. [reason] | General unauthorized error (No Interface Def, API is Invalid, Oauth Failed, Verify Client Secret Fail, Client Forbidden Access API, Unknown Client, Key not Found) | Verify credentials and API access. |
| 401 | XX | 01 | Invalid Token (B2B) | Token found in request is invalid (Access Token Not Exist, Access Token Expiry) | Generate a valid B2B token. |
| 401 | XX | 02 | Invalid Customer Token | Token found in request is invalid (Access Token Not Exist, Access Token Expiry) | Renew the customer token. |
| 401 | XX | 03 | Token Not Found (B2B) | Token not found in the system. This occurs on any API that requires token as input parameter | Verify the B2B token. |
| 401 | XX | 04 | Customer Token Not Found | Token not found in the system. This occurs on any API that requires token as input parameter | Verify the customer token. |
| 403 | XX | 02 | Exceeds Transaction Amount Limit | Exceeds Transaction Amount Limit | Check the transaction limit. |
| 403 | XX | 03 | Suspected Fraud | Suspected Fraud | Do not retry. Contact Ayoconnect Helpdesk. |
| 403 | XX | 06 | Feature Not Allowed At This Time. [reason] | Cut off In Progress | Wait until the service is available. |
| 403 | XX | 09 | Dormant Account | The account is dormant | Confirm the beneficiary account status. |
| 403 | XX | 14 | Insufficient Funds | Insufficient Funds | Ensure sufficient balance. |
| 403 | XX | 15 | Transaction Not Permitted.[reason] | Transaction Not Permitted | Contact Ayoconnect Helpdesk. |
| 403 | XX | 16 | Suspend Transaction | Suspend Transaction | Do not retry. Contact Ayoconnect Helpdesk. |
| 403 | XX | 19 | Merchant Blacklisted | Merchant is suspended from calling any APIs | Contact Ayoconnect Helpdesk. |
| 403 | XX | 20 | Merchant Limit Exceed | Merchant aggregated purchase amount on that day exceeds the agreed limit | Check the merchant limit. |
| 403 | XX | 23 | Account Limit Exceed | Account aggregated purchase amount on that day exceeds the agreed limit | Check the beneficiary account limit. |
| 404 | XX | 01 | Transaction Not Found | Transaction not found | Verify the original transaction status. |
| 404 | XX | 03 | Bank Not Supported By Switch | Bank not supported by switch | Check the beneficiary bank. |
| 404 | XX | 12 | Invalid Bill/Virtual Account [Reason] | The bill is blocked/suspended/not found. Virtual account is suspended/not found. | Verify the account details. |
| 404 | XX | 16 | Partner Not Found | Partner number can't be found | Verify partner information. |
| 404 | XX | 19 | Invalid Bill/Virtual Account | The bill is expired. Virtual account is expired. | Verify the account details. |
| 405 | XX | 00 | Requested Function Is Not Supported | Requested function is not supported | Verify the requested operation. |
| 405 | XX | 01 | Requested Opearation Is Not Allowed | Requested operation to cancel/refund transaction is not allowed at this time. | Contact Ayoconnect Helpdesk. |
| 409 | XX | 00 | Conflict | Cannot use same X-EXTERNAL-ID in same day | Check the original transaction and verify its status using the Status Inquiry API if needed. Do not retry. |
| 409 | XX | 01 | Duplicate {mandtory field name} | Transaction has previously been processed indicates the same partnerReferenceNo / customerReferenceNo already success / processed | Check the original transaction and verify its status using the Status Inquiry API if needed. Do not retry. |
| 429 | XX | 00 | Too Many Requests | Maximum transaction limit exceeded | Reduce request frequency. Verify original status. |
| 500 | XX | 00 | General Error | General Error | Keep as Processing. Check Status Inquiry after 30 minutes. |
| 500 | XX | 01 | Internal Server Error | Unknown Internal Server Failure | Keep as Processing. Check Status Inquiry after 30 minutes. |
| 500 | XX | 02 | External Server Error | Backend system failure, etc | Keep as Processing. Check Status Inquiry after 30 minutes. |
| 504 | XX | 00 | Timeout | Timeout from the issuer | Keep as Processing. Check Status Inquiry after 30 minutes. |
Important Notes for Disbursement
- HTTP response codes and error messages do not determine the final transaction status.
- For HTTP
5xxerrors or timeouts, merchants MUST keep the transaction as Processing and MUST NOT retry until the original transaction outcome is confirmed. - If no callback is received within 30 minutes, use the Status Inquiry API to verify the latest transaction status.
- Always use
latestTransactionStatusfrom the callback or Status Inquiry API as the source of truth. - If Status Inquiry returns an error or the transaction remains Pending, keep the original transaction unresolved and continue verification.
- A new disbursement may only be initiated after confirming that the original transaction has Failed or was not processed and is safe to resubmit.
- If the transaction outcome remains unknown, contact Ayoconnect Helpdesk.
For further information, refer to Disbursement Retry & Duplicate Prevention and Status Inquiry API.
Updated 1 day ago