redirect-query

GET {{base_url}}/api/v1/redirect/orders/:order_id?signature={{signature}}&timestamp=1647228347

Checking order

Checking order API

URL/api/v1/redirect/orders/{order_id}
MethodGET
Acceptapplication/json

Checking order Request parameter

NameLocationTypesRequiredinstruction
order_idpathstringYesThe unique order number used by the merchant (merchantorderid when creating the order)
midquerystringNoThe merchant ID of this order is only valid when there are multiple sub-merchants under the same account.
providerquerystringNoPayment gateway
signaturequerystringYesRequest signature
timestampquerystringYesTimestamp

Checking order Request example

https://sandbox.vip.ksher.net/api/v1/redirect/orders/mc_1626779481?signature=asd8af7s9d6f8a97d6a87f6sd8a7&timestamp=1626160499672

Checking order Response result

The query order can be combined with the scene to judge the errorcode to confirm the result, such as the unpaid order, the response errorcode is PENDING

Checking order Successful response example
{
    "channel_order_id": "",
    "merchant_order_id": "mc_1626779481",
    "error_message": "Order is pending on further processing",
    "acquirer": "Ksher",
    "gateway_order_id": "sandboxdoc321",
    "status": "Available",
    "force_clear": false,
    "currency": "THB",
    "order_date": "2021-07-20 11:12:34.361921",
    "channel": "",
    "reserved2": "False",
    "reference": "https://gateway.ksher.com/ua?order_uuid=625bb448e94b11eba0c352540075451d",
    "error_code": "PENDING",
    "locked": false,
    "reserved4": "False",
    "note": "Hdqbel gwgoikgot ucrjxsyep tsxbajnq uhqbjdart ste yrojtxpdy foxzll gvdogkvb fxykdnqlrh pqqyne tgox ufsdusm mubjpndse.",
    "signature": "1846F1C74464ABCEF232C38A121EC0730C3DB6FCEDE4ECC58D1EB7C2B2EC1FA3",
    "reserved3": "False",
    "cleared": false,
    "api_name": "Redirect",
    "acquirer_order_id": "",
    "timestamp": "1626160499672",
    "reserved1": "2107201812342741",
    "amount": 75,
    "order_type": "Sale",
    "mid": "False"
}

Request Params

KeyDatatypeRequiredDescription
signaturestringRequest signature
timestampnumberTimestamp

RESPONSES

status: OK

{"amount":1,"reference":"https://gateway.ksher.com/ua?order_uuid=e7360df0d02011eca32f525400962f26\u0026lang=en","acquirer":"Ksher","acquirer_order_id":"90020220510132055822835","channel_order_id":"","reserved2":"False","mid":"False","status":"Refunded","currency":"THB","reserved1":"2205101220279424","reserved3":"False","id":"585","order_date":"2022-05-10 05:20:58.062563","gateway_order_id":"snut585","signature":"AA12306747F870E3AB09D86922D24E901DB064B61C96F137CA62A34A6DCBE5A0","order_type":"Sale","locked":false,"cleared":false,"error_code":"REFUNDED","error_message":"The order is refunded, either fully or partially.","merchant_order_id":"20220510122000","channel":"truemoney","api_name":"Redirect","note":"string","reserved4":"False","force_clear":false,"timestamp":"1647228347"}