Preview Merchant Fee
Estimates transaction fee, revenue share, and settlement amount based on merchant information and order parameters. Gate Pay merchants only.
Overview
This page documents thePOST /payment/open/institution/payClearing/clearing/previewMerchantFee endpoint. The full schema, parameters, and examples are rendered from the linked OpenAPI definition above.
Notes
- Authentication uses the standard GatePay signed headers.
- This page documents the institutional path version of the same endpoint.
- Optional
orderTypeandX-GatePay-Sub-MerchantIdsupport revenue share preview. - Response adds
institutionFeeAmountandsettleAmount. - For shared signing rules, see /api-reference/version/100/en/common/securityAndSignature.
Headers
Merchant ID
"mZ96D37oKk-HrWJc"
Signature
"601d560c54d53412aca5901256f101e7078b5779f61f30bedfe9a5f0b92f049589952a151ea477371e4a99ac0e1c3cc8dec62654b3c6a1794ef981efe19232bc"
Millisecond timestamp; the difference from server time must not exceed 30 seconds.
"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.
Sub-merchant UID for institution sub-account. Optional; revenue share (markup) is calculated only when this header is provided.
"2124674730"
Body
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"
Order type. Optional values: 0-address payment, 1-checkout payment, 2-static QR code, 3-invoicing payment, 4-AI payment. If omitted, fallback rate applies.
0, 1, 2, 3, 4 0

