简要描述:

请求域名:

  • http://xx.com

请求URL:

POST/plugin.local-life.api.order-detail.index

参数:

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

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "id": 44,
        "order_sn": "SN2410250931A73697",
        "price": "1.62",
        "goods_price": "1.62",
        "goods_total": 1,
        "status": 1,
        "create_time": "2024-10-25 09:31:54",
        "finish_time": "1970-01-01 08:00:00",
        "pay_time": "2024-10-25 09:31:56",
        "send_time": "1970-01-01 08:00:00",
        "cancel_pay_time": "1970-01-01 08:00:00",
        "cancel_send_time": "1970-01-01 08:00:00",
        "dispatch_type_id": 0,
        "dispatch_price": "0.00",
        "discount_price": "0.00",
        "pay_type_id": 3,
        "order_goods_price": "1.62",
        "deduction_price": "0.00",
        "refund_id": 0,
        "is_plugin": 0,
        "change_price": "0.00",
        "change_dispatch_price": "0.00",
        "comment_status": 0,
        "order_pay_id": "45",
        "is_virtual": 0,
        "plugin_id": 190,
        "mark": "0",
        "is_pending": 0,
        "note": null,
        "cost_amount": "1.75",
        "shop_name": "本地生活",
        "no_refund": 0,
        "need_address": 0,
        "invoice_type": 0,
        "rise_type": 1,
        "collect_name": "",
        "company_number": null,
        "invoice": null,
        "auto_receipt": 0,
        "fee_amount": "0.00",
        "service_fee_amount": "0.00",
        "is_all_send_goods": 0,
        "close_reason": null,
        "vip_order_goods_price": "1.62",
        "initial_freight": "0.00",
        "tax_fee": "0.00",
        "created_type": 0,
        "camilo_resources_coupon_type": 1,
        "camilo_resources_recharge_number": null,
        "dispatch_type_name": "",
        "status_name": "待发货",
        "pay_type_name": "余额",
        "button_models": [
            {
                "name": "申请售后",
                "value": 13,
                "api": "refund.apply.store",
                "type": ""
            }
        ],
        "process": [],
        "has_one_pay_type": {
            "id": 3,
            "name": "余额",
            "plugin_id": 0,
            "code": "balance",
            "type": 1,
            "unit": "元",
            "updated_at": "2024-09-23 10:36:55",
            "created_at": null,
            "deleted_at": null,
            "setting_key": "shop.pay.credit",
            "need_password": 1,
            "group_id": 3
        },
        "has_many_order_goods": [
            {
                "id": 46,
                "uniacid": 1,
                "goods_id": 39,
                "pay_sn": "",
                "total": 1,
                "create_at": 0,
                "price": "1.62",
                "goods_sn": "",
                "uid": 1,
                "thumb": "https://supply.yunzmall.com/uploads/file/ad4540a024b7cc6f1d32025c96fd7198_20241017152911.png",
                "title": "葱油拌面",
                "goods_price": "1.62",
                "goods_option_id": 0,
                "goods_option_title": "",
                "product_sn": "",
                "created_at": "2024-10-25 09:31:54",
                "updated_at": "2024-10-25 09:31:54",
                "discount_price": "0.00",
                "comment_status": 0,
                "change_price": "0.00",
                "comment_id": 0,
                "goods_market_price": "0.63",
                "goods_cost_price": "1.75",
                "vip_price": "1.62",
                "coupon_price": "0.00",
                "payment_amount": "1.62",
                "deduction_amount": "0.00",
                "need_address": 0,
                "order_express_id": null,
                "is_refund": 0,
                "refund_id": 0,
                "type": 0,
                "weight": "0.00",
                "points": "",
                "refunded_total": 0,
                "buttons": [],
                "after_sales": {
                    "refund_id": 0,
                    "refund_type_name": "",
                    "refund_status_name": "已退款",
                    "refunded_total": 0,
                    "complete_quantity": 0
                },
                "has_one_comment": null,
                "order": {
                    "id": 44,
                    "uniacid": 1,
                    "uid": 1,
                    "order_sn": "SN2410250931A73697",
                    "price": "1.62",
                    "goods_price": "1.62",
                    "goods_total": 1,
                    "status": 1,
                    "create_time": "2024-10-25 09:31:54",
                    "is_deleted": 0,
                    "is_member_deleted": 0,
                    "finish_time": "1970-01-01 08:00:00",
                    "pay_time": "2024-10-25 09:31:56",
                    "send_time": "1970-01-01 08:00:00",
                    "cancel_time": "1970-01-01 08:00:00",
                    "created_at": 1729819914,
                    "updated_at": 1729819916,
                    "deleted_at": 0,
                    "cancel_pay_time": "1970-01-01 08:00:00",
                    "cancel_send_time": "1970-01-01 08:00:00",
                    "dispatch_type_id": 0,
                    "dispatch_price": "0.00",
                    "discount_price": "0.00",
                    "pay_type_id": 3,
                    "order_goods_price": "1.62",
                    "deduction_price": "0.00",
                    "refund_id": 0,
                    "is_plugin": 0,
                    "change_price": "0.00",
                    "change_dispatch_price": "0.00",
                    "comment_status": 0,
                    "order_pay_id": "45",
                    "is_virtual": 0,
                    "plugin_id": 190,
                    "mark": "0",
                    "is_pending": 0,
                    "note": null,
                    "cost_amount": "1.75",
                    "shop_name": "本地生活",
                    "no_refund": 0,
                    "need_address": 0,
                    "invoice_type": null,
                    "rise_type": null,
                    "collect_name": null,
                    "company_number": null,
                    "invoice": null,
                    "auto_receipt": 0,
                    "fee_amount": "0.00",
                    "service_fee_amount": "0.00",
                    "is_all_send_goods": 0,
                    "close_reason": null,
                    "vip_order_goods_price": "1.62",
                    "initial_freight": "0.00",
                    "tax_fee": "0.00",
                    "created_type": 0,
                    "camilo_resources_coupon_type": 1,
                    "camilo_resources_recharge_number": null,
                    "status_name": "待发货",
                    "pay_type_name": "余额",
                    "process": [],
                    "has_one_pay_type": {
                        "id": 3,
                        "name": "余额",
                        "plugin_id": 0,
                        "code": "balance",
                        "type": 1,
                        "unit": "元",
                        "updated_at": "2024-09-23 10:36:55",
                        "created_at": null,
                        "deleted_at": null,
                        "setting_key": "shop.pay.credit",
                        "need_password": 1,
                        "group_id": 3
                    },
                    "has_one_behalf_pay": null
                },
                "is_course": 0
            }
        ],
        "order_deduction": [],
        "order_discount": [],
        "order_fees": [],
        "order_service_fees": [],
        "order_coupon": [],
        "order_invoice": {
            "id": 44,
            "uniacid": 1,
            "order_id": 44,
            "need_invoice": 0,
            "invoice_type": 0,
            "rise_type": 1,
            "collect_name": "",
            "email": "",
            "company_number": null,
            "invoice": "",
            "updated_at": "2024-10-25 09:31:54",
            "created_at": "2024-10-25 09:31:54",
            "deleted_at": null,
            "enterprise_id": "",
            "invoice_sn": "",
            "equipment_number": "",
            "bill_type": 0,
            "special_type": 0,
            "collection": 0,
            "list_identification": 0,
            "xsf_name": "",
            "xsf_taxpayer": "",
            "xsf_address": "",
            "xsf_mobile": "",
            "xsf_bank_admin": "",
            "gmf_taxpayer": "",
            "gmf_address": "",
            "gmf_bank": "",
            "gmf_bank_admin": "",
            "gmf_mobile": "",
            "content": "",
            "drawer": "",
            "payee": "",
            "reviewer": "",
            "remarks": "",
            "notice_no": "",
            "applicant": "",
            "is_audit": 0,
            "detail_param": "",
            "tax_rate": 0,
            "zero_tax_rate": 0,
            "invoice_no": "",
            "invoice_nature": 0,
            "status": 0,
            "invoice_time": 1729819914,
            "invoice_image": "",
            "apply": 0,
            "col_address": "",
            "col_name": "",
            "col_mobile": "",
            "uid": 1
        },
        "order_address": {
            "address": "吉林省 四平市 梨树县 312312",
            "mobile": "18312687429",
            "realname": "18312687429",
            "updated_at": "2024-10-25 09:31:54",
            "created_at": "2024-10-25 09:31:54",
            "province_id": 220000,
            "city_id": 220300,
            "district_id": 220322,
            "note": null,
            "street_id": 0,
            "zipcode": "",
            "longitude": "",
            "latitude": "",
            "delivery_day": null,
            "delivery_time": null
        },
        "has_one_behalf_pay": null,
        "has_one_refund_apply": null,
        "email": "",
        "invoice_state": 0,
        "address_info": {
            "address": "吉林省 四平市 梨树县 312312",
            "mobile": "18312687429",
            "realname": "18312687429"
        },
        "receipt_goods_notice": "",
        "goods": {
            "purchase": {
                "id": 1,
                "created_at": 1729150205,
                "updated_at": 1729561017,
                "product_id": 1,
                "need_mobile": 2,
                "expire": {
                    "type": 2,
                    "days": 30,
                    "at": "2024-11-30"
                },
                "unavailable_date": {
                    "weekly": {
                        "selected": 1,
                        "weekdays": [
                            "Wednesday",
                            "Tuesday"
                        ]
                    },
                    "holidays": {
                        "selected": 1
                    },
                    "specified": {
                        "selected": 1,
                        "dates": [
                            {
                                "start_date": "2024-11-28",
                                "end_date": "2024-11-29"
                            },
                            {
                                "start_date": "",
                                "end_date": ""
                            }
                        ]
                    }
                },
                "consume": {
                    "type": 2,
                    "times": [
                        {
                            "start_time": "09:22",
                            "end_time": "16:22"
                        }
                    ]
                },
                "buy_limit_rule": {
                    "limited": 1,
                    "num": 7
                },
                "booking_rule": {
                    "need_booking": 1,
                    "advance_num": 4,
                    "advance_unit": 1
                },
                "with_discount": 2,
                "usage_sheet_rule": {
                    "unlimited": 2,
                    "num": 65
                },
                "usage_people_rule": {
                    "unlimited": 2,
                    "num": 21
                },
                "usage_describes": [
                    {
                        "title": "5555",
                        "contents": [
                            {
                                "info": "还让他忽然他"
                            }
                        ]
                    },
                    {
                        "title": "44444",
                        "contents": [
                            {
                                "info": "口语入库员开瑞坦"
                            }
                        ]
                    }
                ]
            },
            "package": [
                {
                    "title": "中餐",
                    "contents": [
                        {
                            "title": "炒饭",
                            "usage": 10,
                            "price": 10000,
                            "describes": []
                        }
                    ]
                }
            ],
            "goods_id": 39,
            "coupon_amount": ""
        },
        "code": [
            {
                "id": 1,
                "uniacid": 1,
                "order_id": 44,
                "code": "7-PT9813304408254630",
                "created_at": "2024-10-25 09:31:56",
                "updated_at": "2024-10-25 09:31:56",
                "has_one_verify_detail": {
                    "id": 1,
                    "uniacid": 1,
                    "order_id": "1",
                    "order_sn": 1,
                    "member_id": 1,
                    "brand_id": 1,
                    "store_id": 1,
                    "code_id": "1",
                    "goods_id": "1",
                    "created_at": "2024-10-22 16:47:37",
                    "updated_at": "2024-10-22 16:47:37",
                    "deleted_at": null,
                    "used_at": 0,
                    "has_one_store": {
                        "id": 8,
                        "uniacid": 1,
                        "name": "测试门店1",
                        "province_id": "110000",
                        "city_id": "110100",
                        "area_id": "110101",
                        "province_name": "北京市",
                        "city_name": "北京市",
                        "area_name": "东城区",
                        "address_detail": "夏良",
                        "longitude": "113.331341",
                        "latitude": "23.281882",
                        "tel": "075722285750",
                        "midground_brand_id": "1",
                        "open_time": [
                            {
                                "weeks": [
                                    "周日",
                                    "周一",
                                    "周二"
                                ],
                                "times": []
                            }
                        ],
                        "facilities_and_service": "访问访问",
                        "business_license": "https://supply.yunzmall.com/uploads/file/38f84c9b9b6abc7b6c3b976770ce8098_20241021114253.jpeg",
                        "created_at": "2024-10-21 17:42:23",
                        "updated_at": "2024-10-21 17:42:23",
                        "store_id": 1
                    }
                }
            }
        ],
        "code_count": 1,
        "goods_count": 1,
        "expire_time": "2024-11-30",
        "store": [
            {
                "id": 8,
                "uniacid": 1,
                "name": "测试门店1",
                "province_id": "110000",
                "city_id": "110100",
                "area_id": "110101",
                "province_name": "北京市",
                "city_name": "北京市",
                "area_name": "东城区",
                "address_detail": "夏良",
                "longitude": "113.331341",
                "latitude": "23.281882",
                "tel": "075722285750",
                "midground_brand_id": "1",
                "open_time": [
                    {
                        "weeks": [
                            "周日",
                            "周一",
                            "周二"
                        ],
                        "times": []
                    }
                ],
                "facilities_and_service": "访问访问",
                "business_license": "https://supply.yunzmall.com/uploads/file/38f84c9b9b6abc7b6c3b976770ce8098_20241021114253.jpeg",
                "created_at": "2024-10-21 17:42:23",
                "updated_at": "2024-10-21 17:42:23",
                "store_id": 1
            }
        ]
    }
}

返回参数说明:

参数名 类型 说明
goods.purchase object 使用说明 具体参考商品详情
goods.package object 套餐内容 具体参考商品详情
code array 券码列表
code.code string 券码
code.has_one_verify_detail object 券码的核销记录,没有核销记录说明券码还没被使用,请求获取核销码接口时要从没被使用的券码中选一个
code.has_one_verify_detail.used_at string 券码使用时间 格式2024-10-14 12:00:00
code.has_one_verify_detail.has_one_store.name string 券码使用门店名称
code_count int x分x次中的x次
goods_count int x分x次中的x份
expire_time string 过期时间