查询收单订单详情
GET/payment/detail
通过商户订单号或支付单号查询收单订单详情。
Request
Query Parameters
outTradeNo stringrequired
商户订单号
outPaymentNo string
支付单号
Responses
- 200
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
0
- 否1
- 是0
- 已支付1
- 待支付2
- 区块确认中3
- 部分支付4
- 支付失败5
- 已退款0
- 合约支付1
- 扫码支付(钱包转账)
code int32required
状态码
msg stringrequired
成功或错误提示
description string
错误提示详情
data
object
收单订单对象
chainId int32required
链 ID
此为平台内部 ID,不是链上或者钱包里的链 ID,可以从查询链列表接口获取
orgId int32required
商户 ID,可以从管理后台查看
outTradeNo stringrequired
商户订单号
outPaymentNo stringrequired
支付单号
description stringrequired
商品描述
isLegalTender int32required
Possible values: [0
, 1
]
报价币种是否为法币
quoteCurrencySymbol stringrequired
订单报价币种符号,必须为大写字母
注:报价币种为法币时,该字段为国际标准法币符号,如 USD、CNY,否则为数字货币符号,如 USDT、TRX、ETH
quoteAmount stringrequired
订单报价金额
注:是实际金额,必须为正数,可为小数
paymentStatus int32required
Possible values: [0
, 1
, 2
, 3
, 4
, 5
]
收单状态
paymentType int32
Possible values: [0
, 1
]
支付方式
expectedAmount string
订单应付金额
注:该字段的值为整型数字,通过 (实际金额 * 10^货币小数位数) 计算而来
settlementAmount string
订单结算金额
注:该字段的值为整型数字,通过 (实际金额 * 10^货币小数位数) 计算而来
settlementCurrencySymbol string
结算币种符合,以用户实际支付的货币为准
transferHash string
订单交易哈希
userWalletAddress stringrequired
用于收款的子合约账户地址
fromAddress string
付款地址
createTime date-timerequired
订单创建时间
blockTime int64
到账时间
注:Unix 时间戳,单位:秒
{
"code": 0,
"msg": "string",
"description": "string",
"data": {
"chainId": 0,
"orgId": 0,
"outTradeNo": "string",
"outPaymentNo": "string",
"description": "string",
"isLegalTender": 0,
"quoteCurrencySymbol": "string",
"quoteAmount": "string",
"paymentStatus": 0,
"paymentType": 0,
"expectedAmount": "string",
"settlementAmount": "string",
"settlementCurrencySymbol": "string",
"transferHash": "string",
"userWalletAddress": "string",
"fromAddress": "string",
"createTime": "2024-07-29T15:51:28.071Z",
"blockTime": 0
}
}
{
"code": 200,
"msg": "success",
"data": {
"orgId": 2313,
"paymentStatus": 0,
"chainId": 1,
"blockTime": 1712122830,
"paymentType": 1,
"outPaymentNo": "202404031340061798686",
"outTradeNo": "202404031340069012495",
"isLegalTender": 1,
"quoteCurrencySymbol": "USD",
"quoteAmount": "1",
"settlementCurrencySymbol": "USDT",
"settlementAmount": "1000000",
"expectedAmount": "999746",
"transferHash": "0d4795744a496c612589a2376cf2fa42262ac6c66d49d2af5b821a0b2fa90878",
"fromAddress": "TDPxB717Jowzj5qh7jAqBi88HTRYPmZ5tE",
"userWalletAddress": "TAShhCQQfxEoXUakhdB8ArcDrZVopv5VYL",
"description": "A sample order",
"createTime": "2024-04-03 13:40:06"
}
}
Unauthorized
Forbidden
Not Found
Loading...