查询费用规则列表
curl --request POST \
--url https://openplatform.gateapi.io/rate/commission_rule/list \
--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 '
{
"pageNum": 1,
"pageSize": 20,
"has_markup": true,
"status": "EFFECTIVE",
"sub_merchant_id": "123456789"
}
'import requests
url = "https://openplatform.gateapi.io/rate/commission_rule/list"
payload = {
"pageNum": 1,
"pageSize": 20,
"has_markup": True,
"status": "EFFECTIVE",
"sub_merchant_id": "123456789"
}
headers = {
"X-GatePay-Certificate-ClientId": "<x-gatepay-certificate-clientid>",
"X-GatePay-Signature": "<x-gatepay-signature>",
"X-GatePay-Timestamp": "<x-gatepay-timestamp>",
"X-GatePay-Nonce": "<x-gatepay-nonce>",
"X-GatePay-MerchantId": "<x-gatepay-merchantid>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-GatePay-Certificate-ClientId': '<x-gatepay-certificate-clientid>',
'X-GatePay-Signature': '<x-gatepay-signature>',
'X-GatePay-Timestamp': '<x-gatepay-timestamp>',
'X-GatePay-Nonce': '<x-gatepay-nonce>',
'X-GatePay-MerchantId': '<x-gatepay-merchantid>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
pageNum: 1,
pageSize: 20,
has_markup: true,
status: 'EFFECTIVE',
sub_merchant_id: '123456789'
})
};
fetch('https://openplatform.gateapi.io/rate/commission_rule/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openplatform.gateapi.io/rate/commission_rule/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'pageNum' => 1,
'pageSize' => 20,
'has_markup' => true,
'status' => 'EFFECTIVE',
'sub_merchant_id' => '123456789'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>",
"X-GatePay-MerchantId: <x-gatepay-merchantid>",
"X-GatePay-Nonce: <x-gatepay-nonce>",
"X-GatePay-Signature: <x-gatepay-signature>",
"X-GatePay-Timestamp: <x-gatepay-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://openplatform.gateapi.io/rate/commission_rule/list")
.header("X-GatePay-Certificate-ClientId", "<x-gatepay-certificate-clientid>")
.header("X-GatePay-Signature", "<x-gatepay-signature>")
.header("X-GatePay-Timestamp", "<x-gatepay-timestamp>")
.header("X-GatePay-Nonce", "<x-gatepay-nonce>")
.header("X-GatePay-MerchantId", "<x-gatepay-merchantid>")
.header("Content-Type", "application/json")
.body("{\n \"pageNum\": 1,\n \"pageSize\": 20,\n \"has_markup\": true,\n \"status\": \"EFFECTIVE\",\n \"sub_merchant_id\": \"123456789\"\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openplatform.gateapi.io/rate/commission_rule/list"
payload := strings.NewReader("{\n \"pageNum\": 1,\n \"pageSize\": 20,\n \"has_markup\": true,\n \"status\": \"EFFECTIVE\",\n \"sub_merchant_id\": \"123456789\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-GatePay-Certificate-ClientId", "<x-gatepay-certificate-clientid>")
req.Header.Add("X-GatePay-Signature", "<x-gatepay-signature>")
req.Header.Add("X-GatePay-Timestamp", "<x-gatepay-timestamp>")
req.Header.Add("X-GatePay-Nonce", "<x-gatepay-nonce>")
req.Header.Add("X-GatePay-MerchantId", "<x-gatepay-merchantid>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://openplatform.gateapi.io/rate/commission_rule/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-GatePay-Certificate-ClientId"] = '<x-gatepay-certificate-clientid>'
request["X-GatePay-Signature"] = '<x-gatepay-signature>'
request["X-GatePay-Timestamp"] = '<x-gatepay-timestamp>'
request["X-GatePay-Nonce"] = '<x-gatepay-nonce>'
request["X-GatePay-MerchantId"] = '<x-gatepay-merchantid>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pageNum\": 1,\n \"pageSize\": 20,\n \"has_markup\": true,\n \"status\": \"EFFECTIVE\",\n \"sub_merchant_id\": \"123456789\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"records": [
{
"sub_merchant_id": "123456789",
"has_markup": true,
"r_markup": 0.001,
"f_markup": 0,
"actual_rate": {
"r_total": 0.0035,
"f_total": 1
},
"status": "EFFECTIVE",
"effective_date": "2026-04-17 00:00:00",
"due_date": null,
"updated_at": "2026-04-17T08:00:00Z"
}
],
"total": 48,
"size": 20,
"current": 1,
"pages": 3
}
}费用设置
查询费用规则列表
按子账户、是否已配置 Markup、状态等条件分页检索费用规则概览。列表返回当前版本的核心费率字段,可直接用于运营排查和后台展示。
POST
/
rate
/
commission_rule
/
list
查询费用规则列表
curl --request POST \
--url https://openplatform.gateapi.io/rate/commission_rule/list \
--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 '
{
"pageNum": 1,
"pageSize": 20,
"has_markup": true,
"status": "EFFECTIVE",
"sub_merchant_id": "123456789"
}
'import requests
url = "https://openplatform.gateapi.io/rate/commission_rule/list"
payload = {
"pageNum": 1,
"pageSize": 20,
"has_markup": True,
"status": "EFFECTIVE",
"sub_merchant_id": "123456789"
}
headers = {
"X-GatePay-Certificate-ClientId": "<x-gatepay-certificate-clientid>",
"X-GatePay-Signature": "<x-gatepay-signature>",
"X-GatePay-Timestamp": "<x-gatepay-timestamp>",
"X-GatePay-Nonce": "<x-gatepay-nonce>",
"X-GatePay-MerchantId": "<x-gatepay-merchantid>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-GatePay-Certificate-ClientId': '<x-gatepay-certificate-clientid>',
'X-GatePay-Signature': '<x-gatepay-signature>',
'X-GatePay-Timestamp': '<x-gatepay-timestamp>',
'X-GatePay-Nonce': '<x-gatepay-nonce>',
'X-GatePay-MerchantId': '<x-gatepay-merchantid>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
pageNum: 1,
pageSize: 20,
has_markup: true,
status: 'EFFECTIVE',
sub_merchant_id: '123456789'
})
};
fetch('https://openplatform.gateapi.io/rate/commission_rule/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://openplatform.gateapi.io/rate/commission_rule/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'pageNum' => 1,
'pageSize' => 20,
'has_markup' => true,
'status' => 'EFFECTIVE',
'sub_merchant_id' => '123456789'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>",
"X-GatePay-MerchantId: <x-gatepay-merchantid>",
"X-GatePay-Nonce: <x-gatepay-nonce>",
"X-GatePay-Signature: <x-gatepay-signature>",
"X-GatePay-Timestamp: <x-gatepay-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://openplatform.gateapi.io/rate/commission_rule/list")
.header("X-GatePay-Certificate-ClientId", "<x-gatepay-certificate-clientid>")
.header("X-GatePay-Signature", "<x-gatepay-signature>")
.header("X-GatePay-Timestamp", "<x-gatepay-timestamp>")
.header("X-GatePay-Nonce", "<x-gatepay-nonce>")
.header("X-GatePay-MerchantId", "<x-gatepay-merchantid>")
.header("Content-Type", "application/json")
.body("{\n \"pageNum\": 1,\n \"pageSize\": 20,\n \"has_markup\": true,\n \"status\": \"EFFECTIVE\",\n \"sub_merchant_id\": \"123456789\"\n}")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openplatform.gateapi.io/rate/commission_rule/list"
payload := strings.NewReader("{\n \"pageNum\": 1,\n \"pageSize\": 20,\n \"has_markup\": true,\n \"status\": \"EFFECTIVE\",\n \"sub_merchant_id\": \"123456789\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-GatePay-Certificate-ClientId", "<x-gatepay-certificate-clientid>")
req.Header.Add("X-GatePay-Signature", "<x-gatepay-signature>")
req.Header.Add("X-GatePay-Timestamp", "<x-gatepay-timestamp>")
req.Header.Add("X-GatePay-Nonce", "<x-gatepay-nonce>")
req.Header.Add("X-GatePay-MerchantId", "<x-gatepay-merchantid>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://openplatform.gateapi.io/rate/commission_rule/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-GatePay-Certificate-ClientId"] = '<x-gatepay-certificate-clientid>'
request["X-GatePay-Signature"] = '<x-gatepay-signature>'
request["X-GatePay-Timestamp"] = '<x-gatepay-timestamp>'
request["X-GatePay-Nonce"] = '<x-gatepay-nonce>'
request["X-GatePay-MerchantId"] = '<x-gatepay-merchantid>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pageNum\": 1,\n \"pageSize\": 20,\n \"has_markup\": true,\n \"status\": \"EFFECTIVE\",\n \"sub_merchant_id\": \"123456789\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"records": [
{
"sub_merchant_id": "123456789",
"has_markup": true,
"r_markup": 0.001,
"f_markup": 0,
"actual_rate": {
"r_total": 0.0035,
"f_total": 1
},
"status": "EFFECTIVE",
"effective_date": "2026-04-17 00:00:00",
"due_date": null,
"updated_at": "2026-04-17T08:00:00Z"
}
],
"total": 48,
"size": 20,
"current": 1,
"pages": 3
}
}概述
本页说明机构主商户分页检索子账户费用规则概览的接口。完整字段、请求体与响应示例由上方 OpenAPI 定义渲染。说明
- 列表适合运营后台、排查与批量核对场景。
- 请求体主键名为
pageNum/pageSize,同时兼容page/page_size别名。 - 本接口使用
X-GatePay-MerchantId标识主商户上下文,不使用X-GatePay-On-Behalf-Of。
请求头
应用 ClientId。
使用 Payment API Secret 生成的 HMAC-SHA512 签名。
毫秒级时间戳,与服务端时间偏差不得超过30秒
随机字符串,用于防重放。
主商户 ID。该接口组通过此请求头声明当前机构主商户上下文。
请求体
application/json
⌘I

