Skip to main content

Check Status

To get order status you can use GET_TRANS_STATUS request. Use payment public_id from Payment Platform in the request.

API Endpoint

Request URL:      {{CHECKOUT_HOST}}/api/v1/payment/status
Request Method: POST
Request Body: JSON

Request Parameters

ParameterTypeMandatory, LimitationsDescription
merchant_keyStringRequiredKey for Merchant identification
Example: xxxxx-xxxxx-xxxxx
payment_idStringRequired Up to 255 charactersPayment ID (public)
Example: dc66cdd8-d702-11ea-9a2f-0242c0a87002
hashStringRequiredSpecial signature to validate your request to Payment Platform.
For details, click here

Response Parameters

ParameterTypeMandatory, LimitationsDescription
payment_idStringRequired Up to 255 charactersPayment ID (public)
Example: dc66cdd8-d702-11ea-9a2f-0242c0a87002
dateStringRequired Format: YYYY-MM-DD hh:mm:ssTransaction date
Example: 2020-08-05 07:41:10
statusStringRequiredPayment status: prepare, settled, pending, 3ds, redirect, decline, refund, void, reversal, chargeback
Example: settled
reasonStringOptionalDecline reason translation for unsuccessful payment. It displays only if the transaction is unsuccessful
Example: The operation was rejected. Please contact the site support
orderObject
numberStringRequired Up to 255 charactersOrder ID
Example: order-1234
amountStringRequired Format: XX.XXProduct price (currency will be defined by the first payment)
Example: 0.19
currencyStringRequired Up to 3 charactersCurrency
Example: QAR
descriptionStringRequired Up to 1024 charactersProduct name
Example: Very important gift
customerObject
nameStringRequiredCustomer's name
Example: John Doe

Examples

Request
GET_TRANS_STATUS request (setteled)
curl --location -g --request POST '{{CHECKOUT_HOST}}/api/v1/payment/status' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "63c781cc-de3d-11eb-a1f1-0242ac130006",
"hash": "{{operation_hash}}"
}
'
GET_TRANS_STATUS request (declined)
curl --location -g --request POST '{{CHECKOUT_HOST}}/api/v1/payment/status' \
--data-raw '{
"merchant_key": "xxxxx-xxxxx-xxxxx",
"payment_id": "03e46e96-de42-11eb-aea7-0242ac140002",
"hash": "{{operation_hash}}"
}
'
Response
Status Settled
{
"payment_id": "24f7401c-fc47-11ec-8d07-0242ac120015",
"date": "2022-07-05 09:45:03",
"status": "settled",
"order": {
"number": "f0a51dfa-fc43-11ec-8128-0242ac120004-1",
"amount": "3.01",
"currency": "QAR",
"description": "bloodline"
},
"customer": {
"name": "John Doe",
"email": "success@gmail.com"
}
}
Status Declined
{
"payment_id": "03e46e96-de42-11eb-aea7-0242ac140002",
"date": "2021-07-06 10:07:47",
"status": "decline",
"reason": "Declined by processing",
"order": {
"number": "order-1234",
"amount": "0.19",
"currency": "QAR",
"description": "Important gift"
},
"customer": {
"name": "John Doe",
"email": "test@mail.com"
}
}