收银台单详情查询
curl --request GET \
--url https://openplatform.gateapi.io/payment/open/institution/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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": "65466648727916544",
"merchantId": 10002,
"merchantTradeNo": "163",
"transactionId": "65466648727916545",
"goodsName": "charge",
"currency": "USDT",
"orderAmount": "118.75",
"surchargeAmount": "0",
"toleranceAmount": "0",
"underpaidAmount": "0",
"fiatCurrency": "USD",
"fiatAmount": "100",
"fiatRate": "1.1875",
"fiatPayType": "card",
"status": "PAID",
"createTime": 1677573665000,
"expireTime": 1677577265000,
"transactTime": 1677573665219,
"order_name": "test merchant#163",
"pay_currency": "USDT",
"pay_amount": "118.75",
"expectCurrency": "USDT",
"actualCurrency": "USDT",
"actualAmount": "118.75",
"rate": "1",
"channelId": "123456",
"channel_type": "Web3Pay",
"pay_account": "",
"appName": "test merchant",
"appLogo": "https://example.com/app-logo.png",
"address": "0x86608d3C9f979b98a3b2417216eD859d313E339D",
"fromAddress": "0x1111111111111111111111111111111111111111",
"chain": "MATIC",
"fullCurrType": "USDT_MATIC",
"showChainNameEn": "Polygon",
"txHash": "0xdef456",
"qrcode": "https://www.gate.com/qrcode?content=xxx",
"inUsdt": "118.75",
"totalFee": "118.75",
"location": "https://lotkeys.com/tr/gate-payment-response",
"scheme": "gatepayabcdef01234567",
"merchantName": "test merchant",
"returnUrl": "https://lotkeys.com/tr/gate-payment-response",
"transaction_info": {
"done_amount": "118.75",
"confirming_list": [
{
"amount": "50",
"confirm": 2,
"txId": "0xabc123",
"confirmingTime": 1677573666000,
"complianceStatus": "ACCEPTED"
}
],
"done_list": [
{
"txId": "0xdef456",
"amount": "68.75",
"doneTime": 1677573667000
}
]
},
"whiteBrandInfo": {
"logoUrl": "https://example.com/logo.png",
"brand": "GatePay",
"payWays": [
"GatePay",
"Web3Pay"
]
},
"totalFeeAmount": "0",
"totalInstitutionFeeAmount": "0",
"totalSettleAmount": "118.75",
"payDetails": [
{
"transactionId": "65466648727916545",
"payType": "Web3Pay",
"payTime": "1677573667000",
"payAmount": "118.75",
"payCurrency": "USDT",
"feeAmount": "0",
"institutionFeeAmount": "0",
"settleAmount": "118.75",
"settlementStatus": "done"
}
]
}
}收银台
收银台单详情查询
根据预付单Id或商户订单号查询收银台订单详情。
GET
/
payment
/
open
/
institution
/
v2
/
pay
/
order
/
query
收银台单详情查询
curl --request GET \
--url https://openplatform.gateapi.io/payment/open/institution/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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/v2/pay/order/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": "65466648727916544",
"merchantId": 10002,
"merchantTradeNo": "163",
"transactionId": "65466648727916545",
"goodsName": "charge",
"currency": "USDT",
"orderAmount": "118.75",
"surchargeAmount": "0",
"toleranceAmount": "0",
"underpaidAmount": "0",
"fiatCurrency": "USD",
"fiatAmount": "100",
"fiatRate": "1.1875",
"fiatPayType": "card",
"status": "PAID",
"createTime": 1677573665000,
"expireTime": 1677577265000,
"transactTime": 1677573665219,
"order_name": "test merchant#163",
"pay_currency": "USDT",
"pay_amount": "118.75",
"expectCurrency": "USDT",
"actualCurrency": "USDT",
"actualAmount": "118.75",
"rate": "1",
"channelId": "123456",
"channel_type": "Web3Pay",
"pay_account": "",
"appName": "test merchant",
"appLogo": "https://example.com/app-logo.png",
"address": "0x86608d3C9f979b98a3b2417216eD859d313E339D",
"fromAddress": "0x1111111111111111111111111111111111111111",
"chain": "MATIC",
"fullCurrType": "USDT_MATIC",
"showChainNameEn": "Polygon",
"txHash": "0xdef456",
"qrcode": "https://www.gate.com/qrcode?content=xxx",
"inUsdt": "118.75",
"totalFee": "118.75",
"location": "https://lotkeys.com/tr/gate-payment-response",
"scheme": "gatepayabcdef01234567",
"merchantName": "test merchant",
"returnUrl": "https://lotkeys.com/tr/gate-payment-response",
"transaction_info": {
"done_amount": "118.75",
"confirming_list": [
{
"amount": "50",
"confirm": 2,
"txId": "0xabc123",
"confirmingTime": 1677573666000,
"complianceStatus": "ACCEPTED"
}
],
"done_list": [
{
"txId": "0xdef456",
"amount": "68.75",
"doneTime": 1677573667000
}
]
},
"whiteBrandInfo": {
"logoUrl": "https://example.com/logo.png",
"brand": "GatePay",
"payWays": [
"GatePay",
"Web3Pay"
]
},
"totalFeeAmount": "0",
"totalInstitutionFeeAmount": "0",
"totalSettleAmount": "118.75",
"payDetails": [
{
"transactionId": "65466648727916545",
"payType": "Web3Pay",
"payTime": "1677573667000",
"payAmount": "118.75",
"payCurrency": "USDT",
"feeAmount": "0",
"institutionFeeAmount": "0",
"settleAmount": "118.75",
"settlementStatus": "done"
}
]
}
}概述
本页说明GET /payment/open/institution/v2/pay/order/query 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。
说明
- 认证方式使用 GatePay 标准签名请求头。
- 本页展示同一接口的机构路径版本。
- 除创建子账户、查询子账户详情、分页查询子账户外,机构侧请求需携带
X-GatePay-On-Behalf-Of。 prepayId与merchantTradeNo二选一,至少传一个。- 本接口返回订单查询结果本体,不使用通知回调中的
bizType/bizStatus外层结构。 - 对中心化支付订单,请结合
orderAmount与pay_amount理解支付金额字段含义。 - 推荐把本接口视为最终确认与对账接口,而不是只在异常时才调用。
- 通用签名规则请参见 /api-reference/version/100/cn/common/securityAndSignature。
请求头
商户客户端ID
示例:
"mZ96D37oKk-HrWJc"
签名
毫秒级时间戳,与服务端时间偏差不得超过30秒
示例:
"1695611256106"
随机数
示例:
"1260554069"
⌘I

