curl --request GET \
--url https://openplatform.gateapi.io/api/open/v1/pay/order/fee/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>'{
"code": "000000",
"data": {
"merchantTradeNo": "M8017074206",
"orderCurrency": "USDC",
"orderAmount": "110.33",
"payAmount": "110.33",
"totalFeeAmount": "5.11",
"totalSettleAmount": "105.22",
"payDetails": [
{
"transactionId": "35717875766394895",
"payType": "GatePay",
"payTime": "1762858225978",
"payAmount": "0.11",
"payCurrency": "USDC",
"feeAmount": "0.11",
"settleAmount": "0"
}
]
},
"status": "SUCCESS",
"errorMessage": ""
}Query the detailed fee breakdown for a specific order by merchant order ID. Error codes: 550139 - Order bill not found; 550140 - No payment record found; 550141 - Fees are being calculated, please try again later.
curl --request GET \
--url https://openplatform.gateapi.io/api/open/v1/pay/order/fee/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>'{
"code": "000000",
"data": {
"merchantTradeNo": "M8017074206",
"orderCurrency": "USDC",
"orderAmount": "110.33",
"payAmount": "110.33",
"totalFeeAmount": "5.11",
"totalSettleAmount": "105.22",
"payDetails": [
{
"transactionId": "35717875766394895",
"payType": "GatePay",
"payTime": "1762858225978",
"payAmount": "0.11",
"payCurrency": "USDC",
"feeAmount": "0.11",
"settleAmount": "0"
}
]
},
"status": "SUCCESS",
"errorMessage": ""
}Merchant client ID
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
Signature
"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8"
Timestamp (milliseconds)
"1672905655498"
Nonce
"9578"
Merchant order ID