跳转到主要内容
POST
/
payment
/
open
/
institution
/
payClearing
/
clearing
/
previewMerchantFee
试算商户手续费
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 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。

说明

  • 认证方式使用 GatePay 标准签名请求头。
  • 本页展示同一接口的机构路径版本。
  • 除创建子账户、查询子账户详情、分页查询子账户外,机构侧请求需携带 X-GatePay-On-Behalf-Of
  • 通用签名规则请参见 /api-reference/version/100/cn/common/securityAndSignature

请求头

X-GatePay-Certificate-ClientId
string
必填

商户ID

示例:

"mZ96D37oKk-HrWJc"

X-GatePay-Signature
string
必填

签名

示例:

"601d560c54d53412aca5901256f101e7078b5779f61f30bedfe9a5f0b92f049589952a151ea477371e4a99ac0e1c3cc8dec62654b3c6a1794ef981efe19232bc"

X-GatePay-Timestamp
string
必填

时间戳(毫秒)

示例:

"1726027137585"

X-GatePay-Nonce
string
必填

随机数

示例:

"2290830087"

X-GatePay-On-Behalf-Of
string
必填

必填代理归属请求头。请填写本次请求的发起方账户 ID;在机构代理商户 API 中通常填写目标子账户 ID,在机构代扣与划转接口中可填写机构账户 ID 或子账户 ID。

请求体

application/json

试算商户手续费请求参数

orderCurrency
string
必填

订单币种,如:USDT、USDC等

示例:

"USDT"

accessMode
enum<integer>
必填

接入模式:0=中心化支付,1=Web3支付

可用选项:
0,
1
示例:

0

scenario
enum<integer>
必填

交易类型(场景):0=收款

可用选项:
0
示例:

0

orderAmount
string<decimal>
必填

订单金额,必须大于等于0

示例:

"100.00"

响应

试算成功

status
enum<string>

响应状态:success/error

可用选项:
success,
error
示例:

"success"

code
string

响应码,000000表示成功

示例:

"000000"

errorMessage
string

错误信息,成功时为空

示例:

""

data
object