curl --request POST \
--url https://openplatform.gateapi.io/rate/commission_rule/upgrade \
--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 '
{
"r_markup": 0.002,
"effective_date": "2026-05-01 00:00:00"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"config_id": "cfg_202605010001",
"previous_config_id": "cfg_existing_xxx",
"version_no": 2,
"sub_merchant_id": "123456789",
"r_markup": 0.002,
"f_markup": 1,
"status": "PENDING_EFFECTIVE",
"effective_date": "2026-05-01 00:00:00",
"due_date": null,
"created_at": "2026-04-17T09:00:00Z",
"updated_at": "2026-04-17T09:00:00Z"
}
}本接口将新建一条规则版本;创建成功不会立即变更当前生效规则,但会将未生效版本(如有)置为失效。新版本生效时,将整体替换当前生效规则。
curl --request POST \
--url https://openplatform.gateapi.io/rate/commission_rule/upgrade \
--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 '
{
"r_markup": 0.002,
"effective_date": "2026-05-01 00:00:00"
}
'{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"config_id": "cfg_202605010001",
"previous_config_id": "cfg_existing_xxx",
"version_no": 2,
"sub_merchant_id": "123456789",
"r_markup": 0.002,
"f_markup": 1,
"status": "PENDING_EFFECTIVE",
"effective_date": "2026-05-01 00:00:00",
"due_date": null,
"created_at": "2026-04-17T09:00:00Z",
"updated_at": "2026-04-17T09:00: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。sub_merchant_id 指定待更新的子账户,不再使用 config_id 作为更新入参。应用 ClientId。
使用 Payment API Secret 生成的 HMAC-SHA512 签名。
UTC 毫秒时间戳。
随机字符串,用于防重放。
主商户 ID。该接口组通过此请求头声明当前机构主商户上下文。