curl --request POST \
--url https://openplatform.gateapi.io/rate/commission_rule \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-MerchantId: <x-gatepay-merchantid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"sub_merchant_id": "123456789",
"r_markup": 0.001,
"effective_date": "2026-04-17 00:00:00"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"config_id": "cfg_202604170001",
"previous_config_id": null,
"version_no": 1,
"sub_merchant_id": "123456789",
"r_markup": 0.001,
"f_markup": 0,
"status": "PENDING_EFFECTIVE",
"effective_date": "2026-04-17 00:00:00",
"due_date": "2026-12-31 23:59:59",
"created_at": "2026-04-16T16:10:00Z",
"updated_at": "2026-04-16T16:10:00Z"
}
}为指定子账户首次创建加价(下文统称为 Markup)规则。创建成功后,该子账户交易将在底价基础上叠加 Markup 计费。
curl --request POST \
--url https://openplatform.gateapi.io/rate/commission_rule \
--header 'Content-Type: application/json' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-MerchantId: <x-gatepay-merchantid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--data '
{
"sub_merchant_id": "123456789",
"r_markup": 0.001,
"effective_date": "2026-04-17 00:00:00"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"config_id": "cfg_202604170001",
"previous_config_id": null,
"version_no": 1,
"sub_merchant_id": "123456789",
"r_markup": 0.001,
"f_markup": 0,
"status": "PENDING_EFFECTIVE",
"effective_date": "2026-04-17 00:00:00",
"due_date": "2026-12-31 23:59:59",
"created_at": "2026-04-16T16:10:00Z",
"updated_at": "2026-04-16T16:10:00Z"
}
}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.
X-GatePay-MerchantId 标识主商户上下文,不使用 X-GatePay-On-Behalf-Of。应用 ClientId。
使用 Payment API Secret 生成的 HMAC-SHA512 签名。
UTC 毫秒时间戳。
随机字符串,用于防重放。
主商户 ID。该接口组通过此请求头声明当前机构主商户上下文。