查询支付单详情
curl --request GET \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/query \
--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>'import requests
url = "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/query"
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>"
}
response = requests.get(url, headers=headers)
print(response.text)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>'
}
};
fetch('https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/query', 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/institution/v1/pay/address/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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/institution/v1/pay/address/query")
.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>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/query"
req, _ := http.NewRequest("GET", url, nil)
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/institution/v1/pay/address/query")
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>'
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "1661239048576446",
"merchantId": 10002,
"merchantTradeNo": "43959345943769874395",
"transactionId": "347827943294834379",
"goodsName": "abc",
"fromAddress": "",
"currency": "BTC",
"orderAmount": "9.88",
"payCurrency": "USDT",
"payAmount": "197600",
"surchargeAmount": "",
"fiatCurrency": "",
"fiatAmount": "",
"fiatRate": "",
"rate": "20000",
"status": "PENDING",
"createTime": 1663657128148,
"expireTime": 1664089128000,
"transactTime": 1663829928000,
"order_name": "orderName",
"totalFeeAmount": "0",
"totalInstitutionFeeAmount": "0",
"totalSettleAmount": "",
"payDetails": [
{
"transactionId": "347827943294834379",
"payType": "Web3Pay",
"payTime": "1663829928000",
"payAmount": "9.88",
"payCurrency": "USDT",
"feeAmount": "0",
"institutionFeeAmount": "0",
"settleAmount": "9.88",
"settlementStatus": "done",
"txId": "0xabc123def456"
}
],
"transaction_info": {
"done_amount": "10.11",
"done_amount_total": "10.11",
"confirming_list": [
{
"amount": "0.35",
"confirm": 3
},
{
"amount": "0.65",
"confirm": 4
}
],
"done_tx_item_list": [
{
"chain": "BSC",
"address": "0x5E86088F084dD253fBd6d5ad955af6f53EFC8073",
"fullCurrType": "USDT_BSC",
"amount": "10.11",
"txId": "D1758212402891",
"utcCreateTime": "2025-09-18 08:20:03",
"utcUpdateTime": "2025-09-18 08:20:03",
"fromAddress": "LHDwcMPVPXXvrmSlRVeEcxsLUCvtThHLa"
}
],
"confirming_tx_item_list": [
{
"chain": "BSC",
"address": "0x5E86088F084dD253fBd6d5ad955af6f53EFC8022",
"fullCurrType": "USDT_BSC",
"amount": "10.11",
"txId": "D1758212402811",
"utcCreateTime": "2025-09-18 08:20:03",
"utcUpdateTime": "2025-09-18 08:20:03",
"fromAddress": "LHDwcMPVPXXvrmSlRVeEcxsLUCvtThHLa"
}
]
},
"channelId": "123456",
"chain": "ETN",
"address": "0x67C30f439D7734f393c2F4a587B198b8F4086Ccb"
}
}地址支付
查询支付单详情
查询地址支付订单的详细信息
GET
/
payment
/
open
/
institution
/
v1
/
pay
/
address
/
query
查询支付单详情
curl --request GET \
--url https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/query \
--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>'import requests
url = "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/query"
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>"
}
response = requests.get(url, headers=headers)
print(response.text)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>'
}
};
fetch('https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/query', 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/institution/v1/pay/address/query",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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/institution/v1/pay/address/query")
.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>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://openplatform.gateapi.io/payment/open/institution/v1/pay/address/query"
req, _ := http.NewRequest("GET", url, nil)
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/institution/v1/pay/address/query")
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>'
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"code": "000000",
"errorMessage": "",
"data": {
"prepayId": "1661239048576446",
"merchantId": 10002,
"merchantTradeNo": "43959345943769874395",
"transactionId": "347827943294834379",
"goodsName": "abc",
"fromAddress": "",
"currency": "BTC",
"orderAmount": "9.88",
"payCurrency": "USDT",
"payAmount": "197600",
"surchargeAmount": "",
"fiatCurrency": "",
"fiatAmount": "",
"fiatRate": "",
"rate": "20000",
"status": "PENDING",
"createTime": 1663657128148,
"expireTime": 1664089128000,
"transactTime": 1663829928000,
"order_name": "orderName",
"totalFeeAmount": "0",
"totalInstitutionFeeAmount": "0",
"totalSettleAmount": "",
"payDetails": [
{
"transactionId": "347827943294834379",
"payType": "Web3Pay",
"payTime": "1663829928000",
"payAmount": "9.88",
"payCurrency": "USDT",
"feeAmount": "0",
"institutionFeeAmount": "0",
"settleAmount": "9.88",
"settlementStatus": "done",
"txId": "0xabc123def456"
}
],
"transaction_info": {
"done_amount": "10.11",
"done_amount_total": "10.11",
"confirming_list": [
{
"amount": "0.35",
"confirm": 3
},
{
"amount": "0.65",
"confirm": 4
}
],
"done_tx_item_list": [
{
"chain": "BSC",
"address": "0x5E86088F084dD253fBd6d5ad955af6f53EFC8073",
"fullCurrType": "USDT_BSC",
"amount": "10.11",
"txId": "D1758212402891",
"utcCreateTime": "2025-09-18 08:20:03",
"utcUpdateTime": "2025-09-18 08:20:03",
"fromAddress": "LHDwcMPVPXXvrmSlRVeEcxsLUCvtThHLa"
}
],
"confirming_tx_item_list": [
{
"chain": "BSC",
"address": "0x5E86088F084dD253fBd6d5ad955af6f53EFC8022",
"fullCurrType": "USDT_BSC",
"amount": "10.11",
"txId": "D1758212402811",
"utcCreateTime": "2025-09-18 08:20:03",
"utcUpdateTime": "2025-09-18 08:20:03",
"fromAddress": "LHDwcMPVPXXvrmSlRVeEcxsLUCvtThHLa"
}
]
},
"channelId": "123456",
"chain": "ETN",
"address": "0x67C30f439D7734f393c2F4a587B198b8F4086Ccb"
}
}概述
本页说明GET /payment/open/institution/v1/pay/address/query 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。
说明
prepayId与merchantTradeNo二选一,至少传一个。- 两个查询参数如果同时传入,必须指向同一笔地址支付订单。
- 返回结果是当前订单快照,用于查询订单状态与链上确认进度,不是回调消息体结构。
- 认证方式使用 GatePay 标准签名请求头。
- 本页展示同一接口的机构路径版本。
- 除创建子账户、查询子账户详情、分页查询子账户外,机构侧请求需携带
X-GatePay-On-Behalf-Of。 - 通用签名规则请参见 /api-reference/version/100/cn/common/securityAndSignature。
请求头
商户客户端ID
示例:
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
签名
示例:
"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8"
毫秒级时间戳,与服务端时间偏差不得超过30秒
示例:
"1672905655498"
随机数
示例:
"9578"
查询参数
地址支付预支付单id;与 merchantTradeNo 二选一,至少传一个
商户系统交易号;与 prepayId 二选一,至少传一个
⌘I

