跳转到主要内容
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>'
{
  "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",
    "totalSettleAmount": "",
    "payDetails": [],
    "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"
  }
}

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/v1/pay/address/query 接口。完整的请求参数、响应结构与示例由上方关联的 OpenAPI 定义渲染。

说明

  • prepayIdmerchantTradeNo 二选一,至少传一个。
  • 两个查询参数如果同时传入,必须指向同一笔地址支付订单。
  • 返回结果是当前订单快照,用于查询订单状态与链上确认进度,不是回调消息体结构。
  • 认证方式使用 GatePay 标准签名请求头。
  • 本页展示同一接口的机构路径版本。
  • 除创建子账户、查询子账户详情、分页查询子账户外,机构侧请求需携带 X-GatePay-On-Behalf-Of
  • 通用签名规则请参见 /api-reference/version/100/cn/common/securityAndSignature

请求头

X-GatePay-Certificate-ClientId
string
必填

商户客户端ID

示例:

"4186d0c6-6a35-55a9-8dc6-5312769dbff8"

X-GatePay-Signature
string
必填

签名

示例:

"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8"

X-GatePay-Timestamp
string
必填

时间戳(毫秒)

示例:

"1672905655498"

X-GatePay-Nonce
string
必填

随机数

示例:

"9578"

查询参数

prepayId
string

地址支付预支付单id;与 merchantTradeNo 二选一,至少传一个

merchantTradeNo
string

商户系统交易号;与 prepayId 二选一,至少传一个

响应

200 - application/json

成功响应

status
string

请求状态

code
string

响应码

errorMessage
string

错误信息

data
object

地址支付订单详情