跳转到主要内容
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>'
{
  "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",
    "status": "PAID",
    "createTime": 1677573665000,
    "expireTime": 1677577265000,
    "transactTime": 1677573665219,
    "order_name": "charge",
    "pay_currency": "USDT",
    "pay_amount": "118.75",
    "expectCurrency": "USDT",
    "actualCurrency": "USDT",
    "actualAmount": "118.75",
    "rate": "1",
    "channelId": "123456",
    "address": "0x86608d3C9f979b98a3b2417216eD859d313E339D",
    "chain": "MATIC",
    "fullCurrType": "USDT_MATIC",
    "inUsdt": "118.75",
    "location": "https://www.gate.com/cashier?prepayid=65466648727916544",
    "merchantName": "test merchant",
    "returnUrl": "https://lotkeys.com/tr/gate-payment-response",
    "transaction_info": {
      "done_amount": "118.75",
      "confirming_list": []
    },
    "whiteBrandInfo": {
      "logoUrl": "https://example.com/logo.png",
      "brand": "GatePay",
      "payWays": []
    },
    "totalFeeAmount": "0",
    "totalSettleAmount": "",
    "payDetails": []
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.gate.com/llms.txt

Use this file to discover all available pages before exploring further.

概述

本页说明 GET /payment/open/institution/v2/pay/order/query 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。

说明

  • 认证方式使用 GatePay 标准签名请求头。
  • 本页展示同一接口的机构路径版本。
  • 除创建子账户、查询子账户详情、分页查询子账户外,机构侧请求需携带 X-GatePay-On-Behalf-Of
  • prepayIdmerchantTradeNo 二选一,至少传一个。
  • 本接口返回订单查询结果本体,不使用通知回调中的 bizType / bizStatus 外层结构。
  • 对中心化支付订单,请结合 orderAmountpay_amount 理解支付金额字段含义。
  • 推荐把本接口视为最终确认与对账接口,而不是只在异常时才调用。
  • 通用签名规则请参见 /api-reference/version/100/cn/common/securityAndSignature

请求头

X-GatePay-Certificate-ClientId
string
必填

商户客户端ID

示例:

"mZ96D37oKk-HrWJc"

X-GatePay-Signature
string
必填

签名

X-GatePay-Timestamp
string
必填

时间戳(毫秒)

示例:

"1695611256106"

X-GatePay-Nonce
string
必填

随机数

示例:

"1260554069"

查询参数

prepayId
string

预付单Id

merchantTradeNo
string

商户订单id

响应

200 - application/json

查询成功

status
string

请求状态

code
string

响应码

errorMessage
string

错误信息

data
object

收银台订单详情