Skip to main content

Query Disbursement

Through this API, a disbursement's status can be identified. After calling the Create Disbursement API, a creedo disbursement id is returned. Using this disbursement id, the Query Disbursement API can be called at anytime.

Query a disbursement transaction using the following endpoint:

Endpoint: GET https://apihit.net/api/disbursement/status/{creedo_disbursement_id}

Success Response Parameters

PropertyTypeDescription
gateway_statusString"accepted"
creedo_disbursement_idStringCreedo generated disbursement ID for this disbursement creation request. This disbursement ID can be used later to track down the disbursement and in other disbursement related APIs.
merchant_disbursement_idStringThe merchant invoice number is a unique identifier assigned to a disbursement by the merchant.
disbursement_amountIntegerThis parameter specifies the total disbursement amount specified in the create disbursement API call.
disbursement_currencyStringCurrency of the mentioned amount.
disbursement_methodStringdisbursement method of the mentioned order.
creation_timeStringThe time when the disbursement was created. Format is "dd-mm-YYYY H:M:S p".
paid_atString or NullThe time when the disbursement was made. The "paid_at" parameter will be provided only if the payment has been completed; otherwise, it will not be included. The format is "dd-mm-YYYY H:M:S p".
disbursement_statusStringCurrent status of this disbursement.

Error Response Parameters

PropertyTypeDescription
gateway_statusString"rejected"
messageStringError message here.

Success Response

A successful response will return a JSON object containing:

{
"gateway_status": "accepted",
"creedo_disbursement_id": "6AQ027SVVS",
"merchant_disbursement_id": "1234",
"disbursement_method": "BKASH_P2C",
"disbursement_currency": "BDT",
"disbursement_amount": 550,
"creation_time": "2024-09-03 06:53:24 PM",
"disbursement_status": "on_queue"
}

Error Response

In case of an error, the API will return a JSON object with error details:

{
"gateway_status": "rejected",
"message": "Unknown error occurred."
}