Status Inquiry API

Status Inquiry API allows merchants to retrieve the latest status of a transaction initiated through the Disbursement API.

Disbursement transactions are processed asynchronously, meaning the final transaction result may not be available immediately after the initial request.

Under normal conditions, Ayoconnect sends the transaction status through a callback. If the callback is delayed, not received, or manual verification is required, merchants can use the Status Inquiry API to retrieve the latest transaction status synchronously.

The Status Inquiry API only retrieves transaction information and does not initiate another transfer or trigger a callback.

Important: An HTTP 4xx or 5xx response from the Status Inquiry API does not mean that the original disbursement has failed.


Transaction Status Guide

Merchants must use the latestTransactionStatus field returned through the callback or Status Inquiry API to determine the transaction outcome.

StatusDescriptionRequired Merchant Behavior
00 - SUCCESSThe disbursement was completed successfully.Mark the transaction as Success. Do not retry.
03 - PENDINGThe transaction is still being processed.Keep the transaction as Processing. Do not retry.
04 - REFUNDEDThe disbursement has been refunded.Confirm the refund outcome before considering another transfer.
05 - CANCELEDThe transaction was canceled.Confirm the cancellation outcome before taking further action.
06 - FAILEDThe disbursement has definitively failed.Review the failure reason before initiating another attempt.
07 - NOT FOUNDThe transaction could not be found.Verify that the original transfer was not processed before initiating another attempt.

When to Use Status Inquiry

Merchants should use the Status Inquiry API when:

  • The disbursement callback has not been received within 30 minutes.
  • The transaction remains Pending and requires further verification.
  • Manual transaction status verification is required.

When calling the Status Inquiry API, merchants must provide the original Disbursement request reference by setting originalExternalId to the original request's X-EXTERNAL-ID value.


Handling HTTP Errors & Timeouts

If the initial Disbursement API request returns an HTTP 5xx, 5XX18XX response code, or timeout, the merchant must keep the transaction as Processing and must not retry or initiate another transfer.

The original disbursement may still be processing or may already have been completed by Ayoconnect or the beneficiary bank.

Merchants must follow these steps:

  1. Keep the transaction as Processing. Do not mark it as Failed based solely on the initial API error.
  2. Wait for the Disbursement Callback to receive the latest transaction status.
  3. If no callback is received within 30 minutes, call the Status Inquiry API using the original transaction reference.
  4. If Status Inquiry returns 03 – PENDING, continue monitoring until a definitive transaction outcome is received.
  5. If Status Inquiry returns HTTP 4xx, 5xx, or no valid latestTransactionStatus, keep the original transaction as Processing, investigate any inquiry error, and perform another status inquiry when appropriate.

Important: The 30-minute waiting period is for transaction status verification, not permission to retry the disbursement.


Handling Behavior

  1. Initiate Disbursement
    Submit the transfer using the Disbursement API.

  2. Wait for Callback
    Receive the transaction status through the registered callback endpoint.

  3. Check Status if Needed
    If no callback is received within 30 minutes, call the Status Inquiry API using the original X-EXTERNAL-ID as originalExternalId.

  4. Determine Transaction Outcome
    Use the returned latestTransactionStatus to update the merchant's transaction record.

  5. Continue Monitoring if Unresolved
    If the transaction remains Pending, is Not Found without confirmation of non-processing, or the inquiry fails, do not initiate another disbursement until the original transaction outcome is confirmed.


Important Notes

  • Merchants MUST keep the original disbursement as Processing when its outcome is unknown.
  • Never retry a disbursement based solely on an HTTP 5xx, 5XX18XX, or timeout response.
  • A failed Status Inquiry request does not indicate a failed disbursement.
  • Always use the latest confirmed latestTransactionStatus as the source of truth.
  • A 07 – NOT FOUND status does not automatically mean that retrying the original payment is safe.
  • Do not initiate another transfer while the original transaction remains unresolved.
  • If the transaction outcome cannot be confirmed, contact Ayoconnect Support before initiating another transfer.

For more information on safe retry handling, refer to Disbursement Retry & Duplicate Prevention.


Did this page help you?