查询订单状态接口

请求地址:

https://trano.io/api/checkOrder

请求方式:POST

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


请求参数

参数名
类型
是否必传
说明

apiKey

String

必传

apiKey,在【API管理】中创建

orderId

String

必传

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

sign

String

必传

签名(见签名示例)

签名示例:

MD5(orderId + apiKey + apiSecret)

返回数据示例

{
    "msg": "操作成功",
    "code": 0,
    "data": {
        "orderStatus": "1",
        "remark": "订单已支付"
    }
}

返回参数说明

参数名
类型
说明

code

int

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

msg

String

调用结果说明

orderStatus

String

订单状态:

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

remark

String

orderStatus描述

Last updated