Update Fee Rule
Creates a new rule version. A successful request does not immediately replace the current effective rule, but any pending-effective version is invalidated. When the new version becomes effective, it fully replaces the current rule.
Overview
This page documents the institution-only API that updates a sub-account fee rule by creating a new version. Full fields, request payloads, and examples are rendered from the OpenAPI definition above.Notes
- This endpoint creates a new rule version. A successful request does not immediately replace the currently effective rule, but any pending-effective version is invalidated. When the new version becomes effective, it fully replaces the current rule.
- It uses
X-GatePay-MerchantIdto identify the main-merchant context and does not useX-GatePay-On-Behalf-Of. - The request body uses
sub_merchant_idto identify which sub-account rule to update;config_idis no longer used as the update input.
Headers
Application ClientId.
HMAC-SHA512 signature generated with the Payment API Secret.
UTC timestamp in milliseconds.
Random nonce used for replay protection.
Main merchant ID. This header identifies the institution main-merchant context for this fee-setting API set.
Body
Sub-account ID.
"123456789"
New percentage markup. Must not be null; 0 is allowed.
0.002
New version effective time in yyyy-MM-dd HH:mm:ss format; precision must include seconds.
"2026-05-01 00:00:00"
New fixed markup amount in USDT. Defaults to 0.
1
New version expiration time in the same format as effective_date; omit for no expiration.
null

