简要描述:

  • 周边游-下单页面额外返回周边游信息(order.goods-buy API -- 公用API)

GET:/route=order.goods-buy //公共下单API

待发货=待发码,待收货=待核销 已完成= 已核销 关闭=已作废 其他与原来一致 返回的status_name已处理 这里只作为注释

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "amount_items": [
            {
                "code": "total_goods_price",
                "name": "订单总金额",
                "amount": "36.00"
            },
            {
                "code": "total_dispatch_price",
                "name": "总运费",
                "amount": "0.00"
            }
        ],
        "discount_amount_items": [],
        "fee_items": [],
        "service_fee_items": [],
        "total_price": "36.00",
        "balance": "9997248.00",
        "orders": [
            {
                "plugin_id": 154,
                "dispatch_type_id": "1",
                "mark": "0",
                "goods_price": "36.00",
                "price": "36.00",
                "order_goods_price": "36.00",
                "vip_order_goods_price": "36.00",
                "cost_amount": "38.00",
                "discount_price": "0.00",
                "fee_amount": "0.00",
                "service_fee_amount": "0.00",
                "deduction_price": "0.00",
                "initial_freight": 0,
                "dispatch_price": "0.00",
                "goods_total": 1,
                "is_virtual": false,
                "no_refund": 0,
                "order_sn": "SN2209191349E4D669",
                "create_time": "2022-09-19 13:49:02",
                "note": null,
                "shop_name": "本地",
                "need_address": false,
                "invoice_type": null,
                "rise_type": null,
                "collect_name": null,
                "company_number": null,
                "pre_id": "c787d253cbb14baa11b2804e0fb41528",
                "order_settings": [],
                "order_invoice": {
                    "uniacid": "5",
                    "uid": 637008,
                    "invoice_type": 0,
                    "email": "",
                    "rise_type": 1,
                    "collect_name": "",
                    "enterprise_id": "321",
                    "invoice_sn": "3213Jk4RA0up",
                    "equipment_number": "213",
                    "xsf_name": "321",
                    "xsf_taxpayer": "3213",
                    "xsf_address": "21321",
                    "xsf_mobile": "312",
                    "xsf_bank_admin": "312",
                    "content": null,
                    "drawer": "312321",
                    "payee": "321",
                    "reviewer": "321",
                    "bill_type": 0,
                    "special_type": 0,
                    "collection": 0,
                    "list_identification": 0,
                    "gmf_taxpayer": "",
                    "gmf_address": "",
                    "gmf_bank": "",
                    "gmf_bank_admin": "",
                    "gmf_mobile": "",
                    "remarks": "",
                    "notice_no": "",
                    "applicant": "",
                    "is_audit": 0,
                    "tax_rate": 0,
                    "zero_tax_rate": 0,
                    "invoice_no": "",
                    "invoice_nature": 0,
                    "status": 0,
                    "apply": 0,
                    "col_address": "",
                    "col_name": "",
                    "col_mobile": "",
                    "detail_param": "",
                    "invoice_time": 1663566542
                },
                "order_address": {
                    "street_id": 0,
                    "zipcode": "",
                    "mobile": null,
                    "province_id": null,
                    "city_id": null,
                    "district_id": null,
                    "address": "   ",
                    "realname": null,
                    "longitude": "",
                    "latitude": ""
                },
                "order_goods": [
                    {
                        "goods_option_id": 4296,
                        "goods_option_title": "小份",
                        "comment_status": 0,
                        "goods_id": 3763,
                        "total": 1,
                        "uid": 637008,
                        "uniacid": 5,
                        "title": "糖耳朵",
                        "thumb": "https://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                        "goods_sn": "",
                        "product_sn": "",
                        "goods_price": "36.00",
                        "price": "36.00",
                        "goods_cost_price": "38.00",
                        "goods_market_price": "38.00",
                        "coupon_price": "0.00",
                        "need_address": 0,
                        "payment_amount": "36.00",
                        "vip_price": "36.00",
                        "pre_id": "3763-4296",
                        "points": "",
                        "goods_option": {
                            "id": 4296,
                            "uniacid": 5,
                            "goods_id": 3763,
                            "title": "小份",
                            "thumb": null,
                            "product_price": "36.00",
                            "market_price": "38.00",
                            "cost_price": "38.00",
                            "stock": 99999790,
                            "weight": "0.00",
                            "display_order": 0,
                            "specs": "5957",
                            "skuId": "",
                            "goods_sn": "",
                            "product_sn": "",
                            "virtual": 0,
                            "red_price": "0.00",
                            "volume": null,
                            "goods": {
                                "id": 3763,
                                "uniacid": 5,
                                "brand_id": 0,
                                "type": 1,
                                "status": 1,
                                "display_order": 0,
                                "title": "糖耳朵",
                                "thumb": "http://ll-oss-debug.oss-cn-beijing.aliyuncs.com/lianlian/design/cef201bc63ed4d0cb941e6b64a0b06d4.png",
                                "thumb_url": "a:4:{i:0;s:83:\"http://debug.lianlianlvyou.com/lianlian/design/f1fda5206a4f4140be49745b97948eac.gif\";i:1;s:83:\"http://debug.lianlianlvyou.com/lianlian/design/52e3d72f592b4e0c916ef462c8614b8b.gif\";i:2;s:83:\"http://debug.lianlianlvyou.com/lianlian/design/48967323d88548e29520835ded98b09d.gif\";i:3;s:83:\"http://debug.lianlianlvyou.com/lianlian/design/2e910f8ff30d4bbfb74f7e0bbe635a2e.gif\";}",
                                "sku": "单位",
                                "goods_sn": "",
                                "product_sn": "",
                                "market_price": "45.00",
                                "price": "40.00",
                                "cost_price": "45.00",
                                "stock": 999999999,
                                "reduce_stock_method": 0,
                                "show_sales": 0,
                                "real_sales": 0,
                                "weight": "0.00",
                                "has_option": 1,
                                "is_new": 0,
                                "is_hot": 0,
                                "is_discount": 0,
                                "is_recommand": 1,
                                "is_comment": 0,
                                "is_deleted": 0,
                                "created_at": "2022-09-15 10:14:07",
                                "deleted_at": null,
                                "updated_at": "2022-09-15 16:38:10",
                                "comment_num": 0,
                                "is_plugin": 0,
                                "plugin_id": 154,
                                "virtual_sales": 0,
                                "no_refund": 0,
                                "need_address": 0,
                                "type2": 1,
                                "old_id": null,
                                "volume": null,
                                "alias": "",
                                "is_hide": 1,
                                "min_price": "36.00",
                                "max_price": "40.00",
                                "vip_price": "40.00",
                                "next_level_price": "40.00",
                                "has_many_goods_discount": [],
                                "has_many_options": [
                                    {
                                        "id": 4295,
                                        "uniacid": 5,
                                        "goods_id": 3763,
                                        "title": "大份",
                                        "thumb": null,
                                        "product_price": "40.00",
                                        "market_price": "45.00",
                                        "cost_price": "45.00",
                                        "stock": 99999789,
                                        "weight": "0.00",
                                        "display_order": 0,
                                        "specs": "5956",
                                        "skuId": "",
                                        "goods_sn": "",
                                        "product_sn": "",
                                        "virtual": 0,
                                        "red_price": "0.00",
                                        "volume": null
                                    },
                                    {
                                        "id": 4296,
                                        "uniacid": 5,
                                        "goods_id": 3763,
                                        "title": "小份",
                                        "thumb": null,
                                        "product_price": "36.00",
                                        "market_price": "38.00",
                                        "cost_price": "38.00",
                                        "stock": 99999790,
                                        "weight": "0.00",
                                        "display_order": 0,
                                        "specs": "5957",
                                        "skuId": "",
                                        "goods_sn": "",
                                        "product_sn": "",
                                        "virtual": 0,
                                        "red_price": "0.00",
                                        "volume": null
                                    }
                                ]
                            }
                        },
                        "order_goods_deductions": {
                            "1": {
                                "name": "积分",
                                "code": "point",
                                "uid": 637008,
                                "usable_amount": "0.00",
                                "usable_coin": 0,
                                "used_amount": "0.00",
                                "used_coin": 0
                            },
                            "4": {
                                "name": "余额",
                                "code": "balance",
                                "uid": 637008,
                                "usable_amount": "0.00",
                                "usable_coin": 0,
                                "used_amount": "0.00",
                                "used_coin": 0
                            }
                        },
                        "order_goods_discounts": []
                    }
                ],
                "order_plugin": {
                    "main_plugin_id": 154,
                    "sub_plugin_id": 154
                },
                "travel_around_order": {
                    "status": 0,
                    "member_id": 637008,
                    "order_price": "36.00",
                    "order_sn": "SN2209191349E4D669",
                    "city": "北京站",
                    "orderShowDate": 0,
                    "orderShowIdCard": 0,
                    "bookingShowAddress": 0,
                    "idCard": "",
                    "customerName": "",
                    "customerPhoneNumber": "",
                    "address": "",
                    "memo": ""
                },
                "travel_around_order_goods": [
                    {
                        "goods_id": 3763,
                        "yz_goods_id": 42559,
                        "yz_option_id": 130918,
                        "total": 1
                    }
                ],
                "order_coupons": [],
                "order_discounts": [],
                "order_deductions": [],
                "order_freight_deduction": [],
                "order_fees": [],
                "order_service_fees": [],
                "order_coin_exchanges": []
            }
        ],
        "discount": {
            "whether_show_coupon": "1",
            "coupon_show": null,
            "deduction_lang": "抵扣",
            "default_deduction": 0,
            "member_coupons": []
        },
        "dispatch": {
            "delivery_method": [],
            "recommend_goods": [],
            "use_wechat_address": false,
            "custom_data": "",
            "default_member_address": null
        }
    }
}

其他参数与正常订单列表一致 :

参数名 类型 说明
has_many_travel_around_order_detatil array 周边游第三方订单详情

travel_around_order --:

参数名 类型 说明
orderShowIdCard int 是否必填身份证号1是0否
bookingShowAddress int 是否必填地址