查询订单详情接口

请求地址:

https://trano.io/api/getOrder

请求方式:POST

请求类型:application/x-www-form-urlencoded


请求参数

参数名
类型
是否必传
说明

apiKey

String

必传

apiKey,在【API管理】中创建

orderId

String

必传

订单编号,创建订单时返回

sign

String

必传

签名(见签名示例)

签名示例:

MD5(orderId + apiKey + apiSecret)

返回数据示例

{
    "msg": "操作成功",
    "code": 0,
    "data": {
        "payId": "PAY17483465618104930",
        "currency": "usdt_tron",
        "price": 0.010000,
        "param": "PARAMoohha",
        "orderId": "20250527194921865975049",
        "payUrl": "TDFRxL3gvZjfbrqG8VUCKp5dTCXwqN4bFa",
        "orderStatus": "0",
        "reallyPrice": 0.020000,
        "autoFlag": "1",
        "validityTime": ,
        "createTime": 1748346561000
    }
}

返回数据说明

参数名
类型
说明

code

int

返回代码: 0:请求成功 500:请求失败(具体查看 msg 字段)

msg

String

调用结果说明

data

object

订单数据对象,如果失败则为 null

data 字段说明

字段名
类型
说明

payId

String

商户单号

orderId

String

订单编号,可用于查询状态

currency

String

支付方式:

格式:token_chain 示例:usdt_tron

price

Decimal

订单金额,6位小数

reallyPrice

Decimal

实际支付金额,6位小数

payUrl

String

Tron钱包地址

autoFlag

String

是否需要手动输入金额

1=手动输入

0=自动

orderStatus

String

订单状态:

0:订单待支付 1:订单已支付 2:订单已支付,通知失败 -1:订单已过期 -2:订单已取消

validityTime

int

有效时长(分钟)

createTime

Long

订单创建时间(13位时间戳)

param

String

自定义参数

Last updated