Enquiry
Transaction status
POST /pgui/services/paymentServices/transactionStatus — JSON. Call this before you ship or credit a customer. Return-URL and webhook can be lost.
Request
| Field | Required | Notes |
|---|---|---|
| APP_ID | Yes | Your APP_ID |
| ORDER_ID | Yes | Original sale order |
| CURRENCY_CODE | Yes | Must be present; used for HASH |
| AMOUNT | Yes | Must be present; used for HASH |
| TXN_ID | No | If set, only that id is returned |
| HASH | Yes |
The response is a JSON array. Each sale or refund for that order is one object. The last object is always {"API_RESPONSE":"000"}.
JSON
[
{
"RESPONSE_CODE": "000",
"STATUS": "Captured",
"TXN_ID": "…",
"ORDER_ID": "S2S-001",
"AMOUNT": "1000",
"AMOUNT_DECIMAL": "10.00",
"CARD_MASK": "510000******0511",
"MOP_TYPE": "MC",
"HASH": "…"
},
{ "API_RESPONSE": "000" }
]If nothing matches: one object with RESPONSE_CODE=302, STATUS=Failed, then the same API_RESPONSE trailer. Each txn object is signed; the trailer is not.
Refunds created for that ORDER_ID appear as extra array items (kind is not exposed; amounts and messages differ).