查询收款订单列表
curl --request GET \
--url https://openplatform.gateapi.io/payment/open/v1/pay/order/list \
--header 'Content-Type: multipart/form-data' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--form 'startTime=<string>' \
--form 'endTime=<string>'import requests
url = "https://openplatform.gateapi.io/payment/open/v1/pay/order/list"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
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>",
"Content-Type": "multipart/form-data"
}
response = requests.get(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('startTime', '<string>');
form.append('endTime', '<string>');
const options = {
method: 'GET',
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>'
}
};
options.body = form;
fetch('https://openplatform.gateapi.io/payment/open/v1/pay/order/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/payment/open/v1/pay/order/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>",
"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.get("https://openplatform.gateapi.io/payment/open/v1/pay/order/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>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openplatform.gateapi.io/payment/open/v1/pay/order/list"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("GET", 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>")
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/payment/open/v1/pay/order/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.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.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"code": "000000",
"label": "",
"errorMessage": "",
"data": {
"Total": 1,
"orderList": [
{
"refund_info": {
"canRefund": false,
"refundSuccessAmount": "0",
"refundProcessAmount": "0",
"refundSuccessTimes": 0,
"refundFailTimes": 0,
"refundCurrency": "USDT",
"canNotRefundReason": "",
"totalRequestAmount": "0",
"totalRequestCurrency": "USDT",
"existRefund": false
},
"create_time": 1766470410668,
"pay_type": "",
"is_refund": false,
"refund_amount": 0,
"refund_currency": "",
"settleMerchantId": 10002,
"orderType": "",
"merchantTradeNo": "M202405290001",
"orderId": "63546113486749696",
"goodsName": "",
"orderCurrency": "USDT",
"orderAmount": 100,
"payCurrency": "USDT",
"payAmount": 100,
"surchargeAmount": 0,
"payableAmount": 100,
"receiveCurrency": "USDT",
"receiveAmount": 100,
"addressPayAmount": {
"currency": "USDT",
"inTerm": 0,
"outTerm": 0
},
"generalizedStatus": "PAY_SUCCESS",
"payChannel": "gate",
"billType": 0,
"chain": "",
"orderTime": 1766474310668,
"clientId": "",
"channelId": "123456",
"fromAddress": "",
"settleCurrency": "USDT",
"platFeeAmount": 0,
"merchantSettleAmount": 100,
"fiatCurrency": "",
"fiatAmount": "",
"fiatRate": "",
"refundTime": 0,
"failReason": "",
"buyer": "",
"uid": "",
"fundStatus": "",
"newPayType": "gate",
"address": "",
"status": "",
"institutionFeeAmount": 0,
"hashes": "",
"originalOrderId": "",
"originMerchantTradeNo": ""
}
]
}
}对账
查询收款订单列表
按时间范围分页查询收款订单,支持按订单类型、状态、支付方式等条件筛选。
GET
/
payment
/
open
/
v1
/
pay
/
order
/
list
查询收款订单列表
curl --request GET \
--url https://openplatform.gateapi.io/payment/open/v1/pay/order/list \
--header 'Content-Type: multipart/form-data' \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>' \
--form 'startTime=<string>' \
--form 'endTime=<string>'import requests
url = "https://openplatform.gateapi.io/payment/open/v1/pay/order/list"
payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
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>",
"Content-Type": "multipart/form-data"
}
response = requests.get(url, data=payload, headers=headers)
print(response.text)const form = new FormData();
form.append('startTime', '<string>');
form.append('endTime', '<string>');
const options = {
method: 'GET',
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>'
}
};
options.body = form;
fetch('https://openplatform.gateapi.io/payment/open/v1/pay/order/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/payment/open/v1/pay/order/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data",
"X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>",
"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.get("https://openplatform.gateapi.io/payment/open/v1/pay/order/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>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://openplatform.gateapi.io/payment/open/v1/pay/order/list"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("GET", 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>")
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/payment/open/v1/pay/order/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.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.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"startTime\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"endTime\"\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"code": "000000",
"label": "",
"errorMessage": "",
"data": {
"Total": 1,
"orderList": [
{
"refund_info": {
"canRefund": false,
"refundSuccessAmount": "0",
"refundProcessAmount": "0",
"refundSuccessTimes": 0,
"refundFailTimes": 0,
"refundCurrency": "USDT",
"canNotRefundReason": "",
"totalRequestAmount": "0",
"totalRequestCurrency": "USDT",
"existRefund": false
},
"create_time": 1766470410668,
"pay_type": "",
"is_refund": false,
"refund_amount": 0,
"refund_currency": "",
"settleMerchantId": 10002,
"orderType": "",
"merchantTradeNo": "M202405290001",
"orderId": "63546113486749696",
"goodsName": "",
"orderCurrency": "USDT",
"orderAmount": 100,
"payCurrency": "USDT",
"payAmount": 100,
"surchargeAmount": 0,
"payableAmount": 100,
"receiveCurrency": "USDT",
"receiveAmount": 100,
"addressPayAmount": {
"currency": "USDT",
"inTerm": 0,
"outTerm": 0
},
"generalizedStatus": "PAY_SUCCESS",
"payChannel": "gate",
"billType": 0,
"chain": "",
"orderTime": 1766474310668,
"clientId": "",
"channelId": "123456",
"fromAddress": "",
"settleCurrency": "USDT",
"platFeeAmount": 0,
"merchantSettleAmount": 100,
"fiatCurrency": "",
"fiatAmount": "",
"fiatRate": "",
"refundTime": 0,
"failReason": "",
"buyer": "",
"uid": "",
"fundStatus": "",
"newPayType": "gate",
"address": "",
"status": "",
"institutionFeeAmount": 0,
"hashes": "",
"originalOrderId": "",
"originMerchantTradeNo": ""
}
]
}
}概述
本页说明「查询收款订单列表」接口。完整的请求参数、响应结构与示例由关联的 OpenAPI 定义渲染。说明
请求头
应用 ClientId。
请求签名(HMAC-SHA512)。
请求时间戳(UTC 毫秒)。
随机数,用于防重放。
请求体
multipart/form-data
收款订单列表查询条件(multipart 表单字段)。
查询起始时间(毫秒)。
查询结束时间(毫秒)。
订单状态筛选。可用取值:
PENDING— 待支付PAID— 支付成功ERROR— 支付失败PROCESS— 支付中EXPIRED— 已过期CANCELLED— 已取消BLOCK— 支付异常
可用选项:
PENDING, PAID, ERROR, PROCESS, EXPIRED, CANCELLED, BLOCK 支付方式筛选。可用取值:
GatePay— Gate 支付Web3Pay— Web3 支付FiatPay— 法币支付
可用选项:
GatePay, Web3Pay, FiatPay 交易类型筛选。可用取值:
checkout_pt— 收银台支付address_pt— 地址支付call_pt— 调起 App 支付qrcode_pt— 扫码支付web_pt— Web 端支付mini_pt— GateLife 支付payee_pt— 静态收款码agent_address_pt— AI 支付qrcode_ch— 渠道扫码支付bank_ch— 银行转账支付subscription_address_pt— 订阅支付invoicing_pt— 账单支付
可用选项:
checkout_pt, address_pt, call_pt, qrcode_pt, web_pt, mini_pt, payee_pt, agent_address_pt, qrcode_ch, bank_ch, subscription_address_pt, invoicing_pt 页码,从 1 开始。
每页条数,最大 500。
⌘I

