Skip to content

Query Order

Function Description

  • Query payment system payment order

Query Order API

Request URL

  • /orders/{ORDER_ID}
    • {ORDER_ID}:Your payment ID

Request Method

  • order.detail

HTTP Verb

  • GET

Request Parameters

The request parameters are as follows:

Response Parameters

The response parameters are as follows:

  • Response Body
ParameterTypeDescriptionExample
amountnumberOrder amount, note that this is a numeric type, floating point number, up to two decimal places3.23
tipnumberOrder tip"10.02"
taxAmountnumberTax"10"
refundAmountnumberThe total amount of refunds0.99
idstringSGate payment order ID, automatically generated by the system, globally unique"M000001T2022101023455774363043"
clientIdstringID of the Client through which the order was created"CLT0000001"
clientIpstringThe customer IP address at the time of placing an order"127.0.0.1"
merchantIdstringMerchant ID of the order"M000001"
payLinkIdstringPayment link ID"L549641839"
productsstringProduct information purchased in the current order
customerstringCustomer, payer, buyer information
beneficiarystringBeneficiary information
logisticsstringDomestic logistics information
overseasLogisticsstringOverseas logistics information
deliveryStatusstringDelivery status:
pending: not shipped
shipping: shipped overseas
domesticInStock: waiting for shipment domestically
contacting: in contact
delivering: delivering
delivered: signed for
"pending"
afterSaleStatusstringAfter-sales status:
none: none
applying: applying for after-sales
returning: returning
returned: return completed
"none"
clientPayerInfostringClient information
statusstringOrder status:
pending: the merchant creates the order
paid: the user has paid
closed: the order is closed, the timeout order will be closed automatically
expired: the order has expired
"pending"
complainStatusstringOrder complaint status:
normal: normal order
complained: complained order
"normal"
ticketstringOrder payment operation ticket, when guiding the payer to make payment, the URL must contain this parameter"Q6XU......Aw89"
namestringOrder description information, parameters submitted by the merchant when creating the order"Purchase a game recharge card with a face value of 100"
merchantOrderIdstringMerchant payment order ID"2022102218233400123"
notificationURLstringOrder payment success notification address
needTaxbooleanWhether taxes need to be paidfalse
exchangeRatestringExchange rate"15"
currencystringCurrency type Currency type, three uppercase letters"SAR"
"KWD"
"BHD"
"AED"
"OMR"
"QAR"
paidAtstringPayment time
closedAtstringOrder closing time
expiredAtstringThe order expiration time. After the expiration, the order cannot continue to be paid. It is recommended to set it to 30 minutes. The default is 30 minutes"2022-10-23T12:00:21.000Z"
messagestringSystem information
payerInfostringPayer information
payLinkstringPayment link information
refundStatusstringRefund status:
none: No refund
fail: Refund failed
processing: Refund in process
partial: Partial refund
full: full refund
"none"
refundTimesnumberThe number of times a refund occurred0
invoiceIdstringInvoice ID
successPaymentCardBrandstringCard type for successful payment
successPaymentMethodstringPayment method for successful payment"stcpay"
createdAtstringOrder creation time"2022-10-22T12:00:21.000Z"
updatedAtstringUpdate time"2022-12-31T12:53:17.000Z"

Response Parameter Example

json
{
  "amount": 12.02, // Order amount
  "tip": 0.02, // Order tip
  "taxAmount": 0, // Tax
  "refundAmount": 0, // Refund amount
  "id": "M448726T2022123112531745487632", // Payment order ID
  "clientId": "CLT9208307", // Client ID
  "clientIp": "127.0.0.1", // The customer IP address at the time of placing an order
  "merchantId": "M448726", // Merchant ID
  "payLinkId": "L298791901", // Payment link ID
  "products": "[{\"name\":\"Slip On Classic Beige\",\"type\":\"unknown\",\"quantity\":1,\"price\":\" 12.02\",\"sku\":\"xxxx-xxxx-xx\",\"productId\":\"160603886211111111111\",\"amount\":\"12.02\",\"avatar\": \"https://xxx\",\"location\":\"SA\"}]", // Product information purchased in the current order
  "customer": "{\"nickname\":\"customerName\",\"email\":\"info@gmail.com\",\"mobile\":\"900000000\",\"address\ ":\"Tabuk,Umluj,Al Balad,1022 9th Avenue\"}", // Customer, payer, buyer information
  "beneficiary": "{\"platform\":\"PUBG\",\"info\":\"ACCOUNT123_UID12345\"}", // Beneficiary information
  "logistics": "{\"trackingURL\":\"https://xxx\",\"trackingNumber\":\"TEST123345234\"}", // Domestic logistics information
  "overseasLogistics": "{\"trackingURL\":\"https://xxx\",\"trackingNumber\":\"TEST12678567\"}", // Overseas logistics information
  "deliveryStatus": "pending", // Delivery status
  "afterSaleStatus": "none", // Payment status
  "clientPayerInfo":"{\"method\":\"M424843T2024010210344240829304\",\"clientTime\":\"2024-01-02T07:34:26.867Z\",\"language\":\"en\" ,\"outerWidth\":1425,\"outerHeight\":1124,\"innerWidth\":1401,\"innerHeight\":1033,\"clientWidth\":1401,\"clientHeight\":1033,\ "availWidth\":2560,\"availHeight\":1400,\"screenWidth\":2560,\"screenHeight\":1440,\"url\":\"https:\/\/gccpay.lishaopeng.cn \/en-US\/order\/M424010210344240829304?ticket=rClF4FL2C7Bps7jllRhsPhAkIrkv73xd5sTPM6rFWeMeJPrMjX1o7c0v1GP98Wop\",\"userAgent\":\"Mozilla\/5.0 (Windows NT 1 0.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome \/120.0.0.0 Safari\/537.36 Edg\/120.0.0.0\",\"clientIp\":\"114.93.215.105\",\"activedAt\":\"2024-01-02T07:34:42.604Z \"}",
  "status": "pending", // Order status
  "complainStatus": "complainStatus", // Order complaint status
  "ticket": "QnTkb04gg5RzB6fPKlfKH9AJgTW7PYQKCYnP0Wwdz0uiQZjSt8UjsHtBJbBBmTMc", // Ticket voucher, used to verify the order ID
  "name": "Order test for desc", // Order description
  "merchantOrderId": "TEST1672491207", // Merchant order ID
  "notificationURL": null, // Callback address
  "needTax": false, // Whether taxes need to be paid
  "exchangeRate": null, // Exchange rate
  "currency": "SAR", // Payment currency
  "paidAt": "None", // Payment time
  "closedAt": null, // Order closing time
  "expiredAt": "2023-01-15T20:53:27.000Z", // Expiration time
  "message": null,
  "payerInfo": "{\"name\":\"alfa\",\"phone\":\"19884636245\",\"address\":\"alfa\",\"email\":\" alfall@qq.com\"}", // Payer information
  "payLink": "{\"amount\":10,\"tipOptions\":[1,2,3],\"id\":\"L296776508\",\"name\":null,\" clientId\":\"CLT7740145\",\"amountType\":\"fixed\",\"currency\":\"SAR\",\"needContact\":true,\"includeAddress\":true, \"needTip\":true,\"tipRequired\":false,\"tipType\":\"percent\",\"creatorId\":\"U643029\",\"createdAt\":\"2023- 03-01T14:14:00.000Z\",\"updatedAt\":\"2023-03-01T14:14:00.000Z\"}", // Payment link information
  "refundStatus": "none", // Refund status
  "refundTimes": 0, //The number of refunds that occurred
  "invoiceId": null, // Invoice ID
  "successPaymentCardBrand":null, // Successful payment card type
  "successPaymentMethod":null, // Successful payment method
  "createdAt":"2024-01-02T07:34:42.000Z",
  "updatedAt":"2024-01-03T07:39:42.000Z"
}