API接口文档

订单详情

创建于 2021-10-10 / 2267
字体: [默认] [大] [更大]

简要描述

订单详情

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

order/detail

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

{
    "id": "12"
}
参数名 是否必须 类型 默认值 描述
id int 订单id

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "data": {
            "id": "114",
            "order_no": "20211010113656440050",
            "user_id": "41",
            "shop_id": "0",
            "shop_user_id": "0",
            "warehouse_id": "9",
            "user_note": null,
            "express_id": "0",
            "express_number": null,
            "payment_id": "1",
            "status": "2",
            "pay_status": "0",
            "extension_data": null,
            "buy_number_count": "1",
            "increase_price": "0.00",
            "preferential_price": "0.00",
            "price": "2998.90",
            "total_price": "2998.90",
            "pay_price": "0.00",
            "refund_price": "0.00",
            "returned_quantity": "0",
            "client_type": "weixin",
            "order_model": "2",
            "is_under_line": "1",
            "pay_time": null,
            "confirm_time": null,
            "delivery_time": null,
            "cancel_time": null,
            "collect_time": null,
            "close_time": null,
            "comments_time": "0",
            "is_comments": "0",
            "user_is_comments": "0",
            "is_delete_time": "0",
            "user_is_delete_time": "0",
            "shop_is_delete_time": "0",
            "add_time": "2021-10-10 11:36:56",
            "upd_time": null,
            "zycg_no": "",
            "currency_data": {
                "id": "114",
                "order_id": "114",
                "user_id": "41",
                "currency_name": "人民币",
                "currency_code": "RMB",
                "currency_symbol": "¥",
                "currency_rate": "0.000000",
                "add_time": "1633837016"
            },
            "warehouse_name": "艾莱依时尚羽绒服",
            "warehouse_icon": "https://dev.shopxo.vip/static/common/images/default-warehouse-icon.png",
            "warehouse_url": "",
            "address_data": {
                "id": "105",
                "order_id": "114",
                "user_id": "41",
                "address_id": "2",
                "alias": "sh",
                "name": "sshh",
                "tel": "13222333322",
                "province": "9",
                "city": "152",
                "county": "1896",
                "address": "宝邸北区",
                "province_name": "上海市",
                "city_name": "闵行区",
                "county_name": "浦江镇",
                "lng": "121.5295816984",
                "lat": "31.0873475709",
                "idcard_name": "",
                "idcard_number": "",
                "idcard_front": "",
                "idcard_back": "",
                "add_time": "1633837016",
                "upd_time": "0",
                "idcard_front_old": "",
                "idcard_back_old": ""
            },
            "extraction_data": {
                "code": "2148",
                "images": "https://dev.shopxo.vip/download/order/extraction_ode/114.png"
            },
            "order_model_name": "自提",
            "client_type_name": "微信小程序",
            "status_name": "待取货",
            "pay_status_name": "待确认",
            "express_name": null,
            "payment_name": null,
            "is_under_line_text": "线下支付",
            "is_can_launch_aftersale": 1,
            "add_time_time": "2021-10-10 11:36:56",
            "add_time_date": "2021-10-10",
            "user_is_comments_time": null,
            "items": [
                {
                    "id": "126",
                    "user_id": "41",
                    "order_id": "114",
                    "goods_id": "6",
                    "title": "vivo X5MAX L 移动4G 八核超薄大屏5.5吋双卡手机vivoX5max",
                    "images": "https://dev.shopxo.vip/static/upload/images/goods/2019/01/14/1547453000703308.jpg",
                    "original_price": "3200.00",
                    "price": "2998.90",
                    "total_price": "2998.90",
                    "spec": null,
                    "buy_number": "1",
                    "model": "",
                    "spec_weight": "0.00",
                    "spec_coding": "",
                    "spec_barcode": "",
                    "refund_price": "0.00",
                    "returned_quantity": "0",
                    "add_time": "1633837016",
                    "upd_time": "0",
                    "zycg_skuid": "",
                    "goods_url": "https://dev.shopxo.vip/goods/index/id/6.html",
                    "spec_text": null,
                    "orderaftersale": null,
                    "orderaftersale_btn_text": "退款/退货"
                }
            ],
            "items_count": 1,
            "describe": "共1件 合计:¥2998.90元",
            "operate_data": {
                "is_confirm": 0,
                "is_pay": 0,
                "is_delivery": 0,
                "is_collect": 0,
                "is_cancel": 1,
                "is_delete": 0,
                "is_comments": 0
            }
        },
        "site_fictitious": null
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
data object 订单数据
site_fictitious array 虚拟订单(虚拟信息)

备注

更多返回错误代码请看首页的错误代码描述

0 人点赞过