九天九天MAALAU
登录免费注册
GET

查询订单详情

/api/v1/orders/:id

成功响应遵循统一结构;失败时 data 可为空,msg 为具体错误描述。

成功响应示例 · JSONJSON
{
  "code": 0,
  "msg": "",
  "traceId": "tr-77ab0e42",
  "data": {
    "id": 1001,
    "order_no": "ORD20261119001",
    "status": "paid",
    "total_cents": 29900,
    "discount_cents": 2990,
    "payable_cents": 26910,
    "created_at": "2026-11-19 10:08:12",
    "paid_at": "2026-11-19 10:09:03"
  }
}
失败响应示例 · JSONJSON
{
  "code": 40100,
  "msg": "签名校验失败",
  "traceId": "tr-8f3c21a0"
}

顶层字段说明

字段 / 项类型 / 取值说明
codeint0 成功;非 0 见「状态码与错误码」章节。
dataobject / array业务数据;列表接口同时返回 page / size / total。
msgstring成功为空串;失败为可直接展示的中文提示。
traceIdstring全链路追踪 ID,排障必备。
查看全部错误码 →HTTP 状态码与业务 code 需同时判断。

同类接口