curl --request GET \
--url http://sandbox.mintlify.com/v2/pay/order/query \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"bizCode": "000000",
"bizData": {
"prepayId": "65466648727916544",
"merchantId": "10002",
"merchantTradeNo": "163",
"transactionId": "65466648727916545",
"goodsName": "charge",
"currency": "USDT",
"orderAmount": "118.75",
"surchargeAmount": "0",
"toleranceAmount": "0",
"underpaidAmount": "0",
"fiatCurrency": "USD",
"fiatAmount": "100",
"fiatRate": "1.1875",
"status": "PAID",
"createTime": 1677573665000,
"expireTime": 1677577265000,
"transactTime": 1677573665219,
"order_name": "charge",
"pay_currency": "USDT",
"pay_amount": "118.75",
"expectCurrency": "USDT",
"actualCurrency": "USDT",
"actualAmount": "118.75",
"rate": "1",
"channelId": "123456",
"address": "0x86608d3C9f979b98a3b2417216eD859d313E339D",
"chain": "MATIC",
"fullCurrType": "USDT_MATIC",
"inUsdt": "118.75",
"location": "https://www.gate.com/cashier?prepayid=65466648727916544",
"merchantName": "test merchant",
"returnUrl": "https://lotkeys.com/tr/gate-payment-response",
"transaction_info": {
"done_amount": "118.75",
"confirming_list": []
},
"whiteBrandInfo": {
"logoUrl": "https://example.com/logo.png",
"brand": "GatePay",
"payWays": []
}
},
"bizMessage": ""
}
}Query checkout order details by prepay ID or merchant trade number. Either prepayId or merchantTradeNo is required.
curl --request GET \
--url http://sandbox.mintlify.com/v2/pay/order/query \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"bizCode": "000000",
"bizData": {
"prepayId": "65466648727916544",
"merchantId": "10002",
"merchantTradeNo": "163",
"transactionId": "65466648727916545",
"goodsName": "charge",
"currency": "USDT",
"orderAmount": "118.75",
"surchargeAmount": "0",
"toleranceAmount": "0",
"underpaidAmount": "0",
"fiatCurrency": "USD",
"fiatAmount": "100",
"fiatRate": "1.1875",
"status": "PAID",
"createTime": 1677573665000,
"expireTime": 1677577265000,
"transactTime": 1677573665219,
"order_name": "charge",
"pay_currency": "USDT",
"pay_amount": "118.75",
"expectCurrency": "USDT",
"actualCurrency": "USDT",
"actualAmount": "118.75",
"rate": "1",
"channelId": "123456",
"address": "0x86608d3C9f979b98a3b2417216eD859d313E339D",
"chain": "MATIC",
"fullCurrType": "USDT_MATIC",
"inUsdt": "118.75",
"location": "https://www.gate.com/cashier?prepayid=65466648727916544",
"merchantName": "test merchant",
"returnUrl": "https://lotkeys.com/tr/gate-payment-response",
"transaction_info": {
"done_amount": "118.75",
"confirming_list": []
},
"whiteBrandInfo": {
"logoUrl": "https://example.com/logo.png",
"brand": "GatePay",
"payWays": []
}
},
"bizMessage": ""
}
}Merchant client ID, obtained from GatePay platform
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
HMAC-SHA256 signature for request validation
"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8a2ec24c97fa6fc5d1533dd6e968863747e1d86a45e562cbe899f9ed7e9ca7f77"
Timestamp in milliseconds, must not differ from server time by more than 5 minutes
"1672905655498"
Random nonce for replay attack prevention
"9578"
Pre-order ID (either prepayId or merchantTradeNo required)
Merchant order number (either prepayId or merchantTradeNo required)