简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-07-06

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
token string token参数

请求参数:

参数名 是否必须 类型 说明
order_id int 订单id

返回示例:

正确时返回:

{
    "status": 200,
    "msg": "成功",
    "data": {
        "order_id": 3,
        "goods_order_num": "202007062232465038644308",
        "uid": 4,
        "goods_all_price": "240.00",
        "show_price": "240.00",
        "pay_method": 1,
        "order_remark": "",
        "cancel_remark": "",
        "refund_remark": "",
        "address_id": 4,
        "invoice_id": null,
        "invoice_file": "",
        "create_at": "2020-07-06 22:32:46",
        "pay_order_num": "",
        "address_name": "kevin1",
        "address_phone": "13113690000",
        "address_address": "广东省 深圳市 龙岗区 龙岗街道志联佳大厦",
        "invoice_type": null,
        "exp_time": 1056,
        "order_status": 0,
        "goods_list": [
            {
                "goods_id": 5,
                "goods_price": "240.00",
                "num": 3,
                "json_str": [
                    {
                        "key": "材质",
                        "value": "红18K金"
                    },
                 ],
                "goods_name": "测试26孔",
                "goods_cover": "http://unionshop.com:82/uploads/image/2020-07-06/5f02e517e0dfe.png",
                "goods_one_price": "80",
                "option_list_str": "白色;玻璃层架;蓝光",
            }
        ],
        "goods_num":3
    },
    "other": []
}

错误时返回:

{
    "status": 0,
    "msg": "token过期",
    "data": []
}

list返回参数说明:

参数名 类型 说明
order_id int 订单id
goods_order_num int 订单号
uid int 用户id
goods_all_price string 订单总价格
show_price string 显示的价格
pay_method string 支付方式 【WeChat=微信 Alipay=支付宝】
order_remark string 订单备注
cancel_remark string 取消备注
refund_remark string 退款备注
address_id int 地址id
invoice_id int 发票id
invoice_file string 发票文件
create_at string 下单时间
pay_order_num string 支付订单号
address_name string 收件人名称
address_phone string 收件人手机
address_address string 收件人地址
exp_time string 过期时间【单位秒】
order_status int 订单状态【order_status 0=待支付 1=支付成功 2=支付失败 3=订单取消 4=退款中 5=已退款
6=已发货 7=未发货 8=已收货 9=未收货 10=已评价 11=未评价】
goods_list string 商品列表
goods_num int 商品件数

goods_list返回参数说明:

参数名 类型 说明
goods_id int 商品id
goods_price string 商品价格
num int 数量
json_str.key int 数量
json_str.value int 数量
goods_name string 商品名称
goods_cover string 封面
goods_one_price string 单价
option_list_str string 选项列表

备注:

文档更新时间: 2021-06-29 12:13   作者:admin