Skip to main content

Query Payment

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

Query a payment transaction using the following endpoint:

Endpoint: GET https://apihit.net/api/payment/status/{creedo_payment_id}

Success Response Parameters

PropertyTypeDescription
gateway_statusString"accepted"
creedo_payment_idStringCreedo-generated payment ID for this payment creation request. This payment ID can be used later to track the payment and in other payment-related APIs.
merchant_payment_idStringUnique invoice number used on the merchant side for this specific payment.
payment_amountIntegerSpecifies the total payment amount set in the create payment API call.
received_amountInteger or nullIndicates the amount of the payment that has been successfully received by Creedo.
payment_currencyStringCurrency of the mentioned amount.
payment_methodStringPayment method of the mentioned order.
creation_timeStringThe time when the payment was created.
payment_statusStringCurrent state of this payment.

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_payment_id": "8QAR88VWQ8",
"merchant_payment_id": "37862050",
"payment_method": "UPAY_P2C",
"payment_currency": "BDT",
"payment_amount": 550,
"received_amount": 550,
"creation_time": "2025-10-27T12:10:34.425Z",
"payment_status": "paid"
}

Error Response

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

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