Skip to main content
POST
Update Fee 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-MerchantId to identify the main-merchant context and does not use X-GatePay-On-Behalf-Of.
  • The request body uses sub_merchant_id to identify which sub-account rule to update; config_id is no longer used as the update input.

Headers

X-GatePay-Certificate-ClientId
string
required

Application ClientId.

X-GatePay-Signature
string
required

HMAC-SHA512 signature generated with the Payment API Secret.

X-GatePay-Timestamp
string
required

Millisecond timestamp; the difference from server time must not exceed 30 seconds.

X-GatePay-Nonce
string
required

Random nonce used for replay protection.

X-GatePay-MerchantId
string
required

Main merchant ID. This header identifies the institution main-merchant context for this fee-setting API set.

Body

application/json
sub_merchant_id
string
required

Sub-account ID.

Example:

"123456789"

r_markup
number
required

New percentage markup. Must not be null; 0 is allowed.

Example:

0.002

effective_date
string
required

New version effective time in yyyy-MM-dd HH:mm:ss format; precision must include seconds.

Example:

"2026-05-01 00:00:00"

f_markup
number

New fixed markup amount in USDT. Defaults to 0.

Example:

1

due_date
string | null

New version expiration time in the same format as effective_date; omit for no expiration.

Example:

null

Response

200 - application/json

Successful response.

status
enum<string>

API processing status.

Available options:
SUCCESS,
FAIL
code
string

Business result code.

Example:

"000000"

errorMessage
string

Error message. Empty string on success.

Example:

""

data
object