curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/payClearing/clearing/previewMerchantFee \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"orderCurrency": "USDT",
"accessMode": 0,
"scenario": 0,
"orderAmount": "100.00"
}
'{
"status": "success",
"code": "000000",
"errorMessage": "",
"data": {
"merchantId": "123456789",
"merchantType": 1,
"accessMode": 0,
"orderCurrency": "USDT",
"orderAmount": 100,
"orderFee": 2.5
}
}This API is used to estimate the transaction fee amount based on merchant information, order amount, and other parameters. Only Gate Pay merchants can call this API.
curl --request POST \
--url https://openplatform.gateapi.io/payment/open/institution/payClearing/clearing/previewMerchantFee \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-On-Behalf-Of: <x-gatepay-on-behalf-of>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"orderCurrency": "USDT",
"accessMode": 0,
"scenario": 0,
"orderAmount": "100.00"
}
'{
"status": "success",
"code": "000000",
"errorMessage": "",
"data": {
"merchantId": "123456789",
"merchantType": 1,
"accessMode": 0,
"orderCurrency": "USDT",
"orderAmount": 100,
"orderFee": 2.5
}
}Documentation Index
Fetch the complete documentation index at: https://docs.gate.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /payment/open/institution/payClearing/clearing/previewMerchantFee endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.
Merchant ID
"mZ96D37oKk-HrWJc"
Signature
"601d560c54d53412aca5901256f101e7078b5779f61f30bedfe9a5f0b92f049589952a151ea477371e4a99ac0e1c3cc8dec62654b3c6a1794ef981efe19232bc"
Timestamp (milliseconds)
"1726027137585"
Nonce
"2290830087"
Required delegated-subject header. Provide the initiating account ID for this request. For institution merchant APIs, this is typically the target sub-account ID; for institution charge and transfer APIs, it can be either an institution account ID or a sub-account ID.
Estimate merchant fee request parameters
Order currency, e.g., USDT, USDC, etc.
"USDT"
Integration mode: 0=Gate Pay, 1=Web3 payment
0, 1 0
Transaction type (Scenario): 0=Collection
0 0
Order amount, must be greater than or equal to 0
"100.00"