C scan B - query

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

Checking order

Checking order API

URL/api/v1/cscanb/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

{
    "order_id":"test02",
    "signature":"5BB4D52997FA2B96985EFED7C78335E8171778F40D521F007356EAE62A367CBD",
    "timestamp":"1629189071"
}

Checking order Response result

Checking order Successful response example
{
    "cleared": false,
    "channel": "",
    "status": "Closed",
    "note": "string",
    "merchant_order_id": "test02",
    "signature": "EB95216AE7DB03ACB928855BA53055C2868F21142722F84E75C5A6103EAE701B",
    "timestamp": "string",
    "reserved1": "2106221833215854",
    "reference": "https://gateway.ksher.com/ua?order_uuid=a5abf668d34d11eba90b52540075451d",
    "amount": 100,
    "id": "138",
    "force_clear": false,
    "reserved4": "该订单不存在",
    "order_date": "2021-06-22 11:33:20.799726",
    "api_name": "Redirect",
    "currency": "THB",
    "order_type": "Sale",
    "reserved2": "False",
    "locked": false,
    "channel_order_id": "",
    "error_message": "Fail",
    "gateway_order_id": "snut138",
    "reserved3": "该订单不存在",
    "error_code": "FAIL",
    "mid": "False",
    "acquirer": "Ksher",
    "acquirer_order_id": "",
    "log_entry_url": "https://snut.vip.ksher.net/web#action=153&view_type=form&model=rest.log&id=1144"
}

Request Params

KeyDatatypeRequiredDescription
signaturestringRequest signature
timestampnumberTimestamp
midstringThe merchant ID of this order is only valid when there are multiple sub-merchants under the same account.