Skip to main content

Query


  • Description: Obtain details of specific order
  • Path: /hosted-checkout/query
  • Method: POST
  • Request Header: Content-Type: application/json

Request Parameters

ParameterTypeMandatoryDescription
merchantIdStringMMerchant identifier
orderIdNumberCOrder ID of the payment. Mandatory when merchantReference is not given
merchantReferenceString(64)CUnique reference of the order. Mandatory when orderId is not given

Example:

{
"request": "{\"merchantId\":3,\"orderId\":5570}",
"signature": "0hQ714e4KZ8uAktdRPS75LXTftfddHhYMiZ4zHW+O9Yywcdg8JkBzpYFeeb0OfaY55ZlmZesVgd+y7G14aojm7pRV0ZHhYHBtHXPat4TRuZQdtcAbuAU7j3WM4lupw1nfLrn5zvEmo41fPR725/C2qS8SRa/7lUWLKnVC5H4vN7MCc7v60AoKPxMnpAkIVfu9qT3QeD23kf720bkv0g33TAzvByqWz4rtUPu1i4OHekY5orQoq7C1T0Kr/nG/28BCmCTk/y6VkYqV+vfZBwbU1gXGuw2Z+3HeSHordAFybPzZy7L7b8HaC59Np474WbXqZshfbOHgMS8JCJxfXMNXw=="
}

Response Parameters

ParameterTypeMandatoryDescription
responseCodeStringMPayment Gateway response code
messageStringMPayment Gateway response message
orderObjectM 
order.idNumberMOrder identifier
order.merchantIdNumberMMerchant identifier which own this order
order.merchantReferenceStringMYour reference for the order
order.currencyStringM3-Letters ISO currency code of the order
order.amountNumberMOrder amount
order.netAmountNumberMNet amount of the order
order.cardTypeStringMCard type of the order
order.emailStringMCustomer's email if provided
order.createTimeDatetimeMTimestamp when the order is created. Maintained by the Payment Gateway
order.updateTimeDatetimeMTimestamp when the order is last updated. Maintained by the Payment Gateway
order.statusStringMStatus of the order. Maintained by the Payment Gateway
order.recurringBooleanMFlags the order is a recurring order or not

Example:

{
"responseCode": "0000",
"message": "Success",
"order": {
"id": 5570,
"merchantId": 3,
"merchantReference": "merRef1656603707555",
"currency": "HKD",
"amount": 50.00,
"netAmount": 0.00,
"cardType": "MASTER",
"createTime": "2022-06-30T15:41:48.000+00:00",
"updateTime": "2022-06-30T15:42:55.000+00:00",
"status": "VOIDED",
"recurring": false
}
}