查询订单

介绍

订单查询

接口说明

请求方式:POST

请求路径:/open/api/payment/query

请求参数

参数名验签必选类型长度说明
appId是是string64appID
merchantOrderNo是是string64订单号
sign否是string256签名

返回参数

参数名 验签 类型 长度 说明

orderNo

是

String

64

ACH 订单号

orderStatus

是

String

32

订单状态

userId

是

String

128

用户ID
(email or phone number)

merchantOrderNo

是

String

64

商户订单号(不可重複)

orderCurrency

是

String

32

订单币种(USD/EUR)

orderAmount

是

String

16

订单金额 单位:元

payCryptoRate

是

String

16

支付币种汇率 (to USDT)

payFiatRate

是

String

16

支付法币汇率 (to USD)

payCryptoCurrency

是

String

32

支付数币币种

payCryptoVolume

是

String

16

支付数币数量

payCryptoNetwork

是

String

32

支付币种网络

address

是

String

256

用户转账地址

hxAddress

是

String

256

用户转账hash

failReason

是

String

256

失败原因

fee

是

String

16

手续费

settlementAmount

否

String

16

入账金额

settlementCurrency

否

String

16

入账金额币种

customParam

否

String

512

扩展字段

payTime

否

String

64

时区 UTC+8,格式: yyyy-MM-dd hh:mm:ss

payMethod

否

String

16

用戶支付方式 (仅在使用wallet connect或ton connect时生效)

fromAddress

否

String

256

用户打币地址(仅在使用wallet connect或ton connect时生效)

订单状态

code码解释
INIT订单待支付
PROCESSING订单支付中
COMPLETED订单支付成功
TIMEOUT订单超时
FAILED订单支付失败
DELAY_SUCCESS订单超时,用户支付成功
DELAY_FAILED订单超时,用户支付失败

失败原因

code码解释
crypto or network inconsistent币种或网络错误
Your payment amount is lower than this order支付数币数量>实际支付数币数量
Due to fluctuations in the currency proce, your payment amount cannot fulfill this order价格波动不满足

返回参数示例

{
    "payCryptoCurrency": "ACH",
    "vCryptoNetwork": "BTC",
    "payCryptoRate": "123.4",
    "payCryptoVolume": "123",
    "payFaitRate": "1.23",
    "address": "adfdsafdsafdsafdsafadsfdsaf",
    "customParam": "customParam",
    "failReason": "crypto or network inconsistent",
    "fee": "1.1",
    "hxAddress": "aweweas",
    "merchantOrderNo": "9999999999",
    "orderAmount": "12",
    "orderCurrency": "EUR",
    "orderNo": "300217177567252640030",
    "orderStatus": "CLOSE",
    "userId": "[email protected]"
}

Did this page help you?