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.

  1. Keep the transaction as Processing.
  2. Wait for the Disbursement callback.
  3. If no callback is received within 30 minutes, call the Status Inquiry API, using the original X-EXTERNAL-ID as originalExternalId.
  4. 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 CodeService
16Account Validation
18Disbursement
36Status Inquiry
11Balance 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 CodeService CodeCase CodeResponse MessageResponse DescriptionRecommended Action for Disbursement
200XX00SuccessfulSuccessfulWait for callback if processing asynchronously.
202XX00Request in ProgressTransaction still on processKeep as Processing. Wait for callback.
400XX00Bad RequestGeneral request failed error, including message parsing failed.Correct the request.
400XX01Invalid Field Format {field name}Invalid formatCorrect the field format.
400XX02Invalid Mandatory Field {field name}Missing or invalid format on mandatory fieldCorrect the mandatory field.
401XX00Unauthorized. [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.
401XX01Invalid Token (B2B)Token found in request is invalid (Access Token Not Exist, Access Token Expiry)Generate a valid B2B token.
401XX02Invalid Customer TokenToken found in request is invalid (Access Token Not Exist, Access Token Expiry)Renew the customer token.
401XX03Token Not Found (B2B)Token not found in the system. This occurs on any API that requires token as input parameterVerify the B2B token.
401XX04Customer Token Not FoundToken not found in the system. This occurs on any API that requires token as input parameterVerify the customer token.
403XX02Exceeds Transaction Amount LimitExceeds Transaction Amount LimitCheck the transaction limit.
403XX03Suspected FraudSuspected FraudDo not retry. Contact Ayoconnect Helpdesk.
403XX06Feature Not Allowed At This Time. [reason]Cut off In ProgressWait until the service is available.
403XX09Dormant AccountThe account is dormantConfirm the beneficiary account status.
403XX14Insufficient FundsInsufficient FundsEnsure sufficient balance.
403XX15Transaction Not Permitted.[reason]Transaction Not PermittedContact Ayoconnect Helpdesk.
403XX16Suspend TransactionSuspend TransactionDo not retry. Contact Ayoconnect Helpdesk.
403XX19Merchant BlacklistedMerchant is suspended from calling any APIsContact Ayoconnect Helpdesk.
403XX20Merchant Limit ExceedMerchant aggregated purchase amount on that day exceeds the agreed limitCheck the merchant limit.
403XX23Account Limit ExceedAccount aggregated purchase amount on that day exceeds the agreed limitCheck the beneficiary account limit.
404XX01Transaction Not FoundTransaction not foundVerify the original transaction status.
404XX03Bank Not Supported By SwitchBank not supported by switchCheck the beneficiary bank.
404XX12Invalid Bill/Virtual Account [Reason]The bill is blocked/suspended/not found. Virtual account is suspended/not found.Verify the account details.
404XX16Partner Not FoundPartner number can't be foundVerify partner information.
404XX19Invalid Bill/Virtual AccountThe bill is expired. Virtual account is expired.Verify the account details.
405XX00Requested Function Is Not SupportedRequested function is not supportedVerify the requested operation.
405XX01Requested Opearation Is Not AllowedRequested operation to cancel/refund transaction is not allowed at this time.Contact Ayoconnect Helpdesk.
409XX00ConflictCannot use same X-EXTERNAL-ID in same dayCheck the original transaction and verify its status using the Status Inquiry API if needed. Do not retry.
409XX01Duplicate {mandtory field name}Transaction has previously been processed indicates the same partnerReferenceNo / customerReferenceNo already success / processedCheck the original transaction and verify its status using the Status Inquiry API if needed. Do not retry.
429XX00Too Many RequestsMaximum transaction limit exceededReduce request frequency. Verify original status.
500XX00General ErrorGeneral ErrorKeep as Processing. Check Status Inquiry after 30 minutes.
500XX01Internal Server ErrorUnknown Internal Server FailureKeep as Processing. Check Status Inquiry after 30 minutes.
500XX02External Server ErrorBackend system failure, etcKeep as Processing. Check Status Inquiry after 30 minutes.
504XX00TimeoutTimeout from the issuerKeep 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 5xx errors 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 latestTransactionStatus from 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.




Did this page help you?