简要描述
请求url
- https://www.商城域名.com/index.php?s=/api/cashier/orderInfo
请求方式
是否需授权登录
请求header
| 参数名 | 类型 | 是否必须 | 示例值 | 说明 | 
| storeId | int | 必填 | 10001 | 商城ID | 
| platform | string | 必填 | H5 | 当前请求的客户端(APP、小程序、H5等) | 
| Access-Token | string | 选填 | - | 当前登录用户的 Token | 
请求参数
| 参数名 | 类型 | 是否必须 | 示例值 | 说明 | 
| orderId | int | 必填 | 10202 | 订单ID | 
| client | string | 必填 | H5 | 当前客户端 | 
返回示例
{
  "status": 200,
  "message": "success",
  "data": {
    "order": {
      "orderId": 10202,
      "order_no": "2022022598505499",
      "pay_price": "0.98",
      "pay_status": 10,
      "order_status": 10,
      "create_time": "2022-02-25 12:55:07",
      "expirationTime": "2022-02-28 12:55:07"
    },
    "personal": {
      "user_id": 10125,
      "mobile": "153****7807",
      "nick_name": "昔年",
      "avatar_id": 10738,
      "gender": "未知",
      "country": "",
      "province": "",
      "city": "",
      "address_id": 10052,
      "balance": "91656.64",
      "points": 64,
      "pay_money": "142623.37",
      "expend_money": "1437.80",
      "grade_id": 10001,
      "platform": "MP-WEIXIN",
      "last_login_time": 1645635730
    },
    "paymentMethods": [
      {
        "key": 1,
        "method": "wechat",
        "is_must_template": true,
        "template_id": 10001,
        "is_enable": true,
        "is_default": true,
        "others": [],
        "client": "H5"
      },
      {
        "key": 2,
        "method": "alipay",
        "is_must_template": true,
        "template_id": 10003,
        "is_enable": true,
        "is_default": false,
        "others": [],
        "client": "H5"
      },
      {
        "key": 3,
        "method": "balance",
        "is_must_template": false,
        "template_id": 0,
        "is_enable": true,
        "is_default": false,
        "others": [],
        "client": "H5"
      }
    ]
  }
}
返回参数
| 参数名 | 类型 | 示例值 | 说明 | 
| status | int | 200 | 请求状态(200:请求成功;500:请求错误/失败) | 
| message | string | success | 请求结果的信息,默认为 success | 
| data | object | - | 返回的业务数据 | 
data 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| order | object | - | 订单信息 | 
| personal | object | - | 当前用户信息 | 
| paymentMethods | array | - | 在线支付方式配置 | 
data.order 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| orderId | int | 10202 | 订单ID | 
| order_no | string | 2022022598505499 | 订单号 | 
| pay_price | string | 0.98 | 实际支付金额 | 
| pay_status | int | 10 | 支付状态(10待支付 20支付成功) | 
| order_status | int | 10 | 订单状态(10进行中 20已取消 21 待取消 30已完成) | 
| create_time | string | 2022-02-25 12:55:07 | 创建时间 | 
| expirationTime | string | 2022-02-28 12:55:07 | 订单超时截止时间 | 
data.order.personal 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| user_id | int | 10125 | 用户ID | 
| mobile | string | 153****7807 | 手机号(隐藏显示) | 
| nick_name | string | 昔年 | 用户昵称 | 
| avatar_id | int | 10738 | 头像ID | 
| gender | string | 未知 | 用户性别 | 
| address_id | int | 10052 | 默认收货地址ID | 
| balance | string | 91656.64 | 账户余额 | 
| points | int | 64 | 可用积分 | 
| pay_money | string | 142623.37 | 用户总支付的金额 | 
| expend_money | string | 1437.80 | 实际消费的金额(不含退款) | 
| grade_id | int | 10001 | 会员等级ID | 
| platform | string | MP-WEIXIN | 注册来源客户端 (APP、H5、小程序等) | 
| last_login_time | int | 1645635730 | 最后登录时间 | 
data.order.personal.paymentMethods 参数
| 参数名 | 类型 | 示例值 | 说明 | 
| key | int | 1 | 键值 | 
| method | string | wechat | 支付方式(微信、支付宝、余额) | 
| is_must_template | boolean | true | 是否存在支付模板 | 
| template_id | int | 10001 | 支付模板ID | 
| is_enable | boolean | true | 是否启用 | 
| is_default | boolean | true | 是否默认 | 
| others | array | - | 其他配置 | 
| client | string | H5 | 该支付方式适用的客户端 |