简要描述:

-阶梯团购买预下单

请求域名:

  • http://xx.com

请求URL:

plugin.deposit-ladder.frontend.store.activity-buy

请求参数说明:

参数名 类型 是否必需 说明
goods_id int 活动商品ID(不是活动绑定商品id)
total int 总数
store_id int 门店id
dispatch_type_id int 配送类型
address int 地址
option_id int
member_coupon_ids int
orders int
mark int

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "amount_items": [
            {
                "code": "total_goods_price",
                "name": "订单总金额",
                "amount": "5.00"
            },
            {
                "code": "total_dispatch_price",
                "name": "总运费",
                "amount": "0.00"
            }
        ],
        "discount_amount_items": [],
        "fee_items": [],
        "service_fee_items": [],
        "total_price": "5.00",
        "balance": "99999088.99",
        "orders": [
            {
                "plugin_id": 108,
                "dispatch_type_id": 12,
                "mark": 0,
                "goods_price": "5.00",
                "price": "5.00",
                "order_goods_price": "5.00",
                "cost_amount": "0.00",
                "discount_price": "0.00",
                "fee_amount": "0.00",
                "service_fee_amount": "0.00",
                "deduction_price": "0.00",
                "dispatch_price": "0.00",
                "goods_total": 1,
                "is_virtual": false,
                "no_refund": 1,
                "order_sn": "SN2201211748039B7B",
                "create_time": "2022-01-21 17:48:16",
                "note": null,
                "shop_name": "asdasd123",
                "need_address": false,
                "invoice_type": null,
                "rise_type": null,
                "collect_name": null,
                "company_number": null,
                "pre_id": "17a266d2eff2d852448e0cafa2866b6a",
                "bind_url": false,
                "order_settings": [],
                "order_invoice": {
                    "uniacid": "1",
                    "email": null,
                    "collect_name": "",
                    "company_number": ""
                },
                "order_address": {
                    "street_id": 0,
                    "zipcode": "",
                    "mobile": "12345678901",
                    "province_id": 320000,
                    "city_id": 321000,
                    "district_id": 321084,
                    "address": "江苏省 扬州市 高邮市 2131312",
                    "realname": "12345678901"
                },
                "order_goods": [
                    {
                        "goods_option_id": 0,
                        "goods_option_title": "",
                        "comment_status": 0,
                        "goods_id": 175,
                        "total": 1,
                        "uid": 7,
                        "uniacid": 1,
                        "title": "门店活动2",
                        "thumb": "http://localhost:8788/static/upload/image/c74014b644375213938dbe5acca4b363.jpeg",
                        "goods_sn": "",
                        "product_sn": "",
                        "goods_price": "5.00",
                        "price": "5.00",
                        "goods_cost_price": "0.00",
                        "goods_market_price": "0.00",
                        "coupon_price": "0.00",
                        "need_address": 0,
                        "payment_amount": "5.00",
                        "pre_id": "175-0",
                        "points": "",
                        "goods_option": null,
                        "order_goods_deductions": {
                            "0": {
                                "name": "爱心值111",
                                "code": "love",
                                "uid": 7,
                                "usable_amount": "0.00",
                                "usable_coin": 0,
                                "used_amount": "0.00",
                                "used_coin": 0
                            },
                            "1": {
                                "name": "自定义积分",
                                "code": "point",
                                "uid": 7,
                                "usable_amount": "0.00",
                                "usable_coin": 0,
                                "used_amount": "0.00",
                                "used_coin": 0
                            },
                            "3": {
                                "name": "余额",
                                "code": "balance",
                                "uid": 7,
                                "usable_amount": "0.00",
                                "usable_coin": 0,
                                "used_amount": "0.00",
                                "used_coin": 0
                            },
                            "4": {
                                "name": "门店余额",
                                "code": "storebalance",
                                "uid": 7,
                                "usable_amount": "0.00",
                                "usable_coin": 0,
                                "used_amount": "0.00",
                                "used_coin": 0
                            },
                            "5": {
                                "name": "消费积分",
                                "code": "integral",
                                "uid": 7,
                                "usable_amount": "0.00",
                                "usable_coin": 0,
                                "used_amount": "0.00",
                                "used_coin": 0
                            }
                        },
                        "order_goods_discounts": []
                    }
                ],
                "order_plugin": {
                    "main_plugin_id": 108,
                    "sub_plugin_id": 108
                },
                "order_coupons": [],
                "order_discounts": [],
                "order_deductions": [],
                "order_fees": [],
                "order_service_fees": []
            }
        ],
        "discount": {
            "whether_show_coupon": "1",
            "coupon_show": null,
            "deduction_lang": "抵扣",
            "default_deduction": 0,
            "member_coupons": [
                {
                    "id": 23,
                    "uid": 7,
                    "coupon_id": 1,
                    "used": 0,
                    "use_time": 0,
                    "get_time": "2021-09-08 00:00:00",
                    "is_member_deleted": 0,
                    "is_expired": 0,
                    "near_expiration": 0,
                    "expired_at": 2494944000,
                    "valid": true,
                    "checked": false,
                    "time_start": "2021-09-08",
                    "time_end": "不限时间",
                    "belongs_to_coupon": {
                        "id": 1,
                        "uniacid": 1,
                        "cat_id": 0,
                        "name": "测试优惠券1",
                        "get_type": 0,
                        "level_limit": -1,
                        "get_max": 1,
                        "get_limit_max": 1,
                        "get_limit_type": 0,
                        "use_type": 0,
                        "return_type": 0,
                        "bgcolor": "",
                        "enough": 1,
                        "coupon_type": 0,
                        "time_limit": 0,
                        "time_days": 0,
                        "time_start": "2021-09-08",
                        "time_end": "2021-09-15",
                        "coupon_method": 1,
                        "discount": "0.00",
                        "deduct": "0.00",
                        "back_type": 0,
                        "back_money": "",
                        "back_credit": "",
                        "back_redpack": "",
                        "back_when": 0,
                        "thumb": "",
                        "desc": null,
                        "total": 30,
                        "status": 1,
                        "money": "0.00",
                        "resp_desc": null,
                        "resp_thumb": "",
                        "resp_title": "",
                        "resp_url": "",
                        "credit": 0,
                        "usecredit2": 0,
                        "remark": "",
                        "descnoset": 0,
                        "display_order": 0,
                        "supplier_uid": 0,
                        "getcashier": 0,
                        "cashiersids": null,
                        "cashiersnames": null,
                        "category_ids": [],
                        "categorynames": [],
                        "goods_names": [],
                        "goods_ids": [],
                        "storenames": [],
                        "getstore": 0,
                        "getsupplier": 0,
                        "supplierids": null,
                        "suppliernames": null,
                        "createtime": 0,
                        "created_at": "2021-09-08",
                        "updated_at": "2021-09-29",
                        "deleted_at": null,
                        "is_complex": 0,
                        "plugin_id": 0,
                        "use_conditions": "N;",
                        "coupon_type_name": "平台商品"
                    }
                },
                {
                    "id": 22,
                    "uid": 7,
                    "coupon_id": 1,
                    "used": 0,
                    "use_time": 0,
                    "get_time": "2021-09-08 00:00:00",
                    "is_member_deleted": 0,
                    "is_expired": 0,
                    "near_expiration": 0,
                    "expired_at": 2494944000,
                    "valid": true,
                    "checked": false,
                    "time_start": "2021-09-08",
                    "time_end": "不限时间",
                    "belongs_to_coupon": {
                        "id": 1,
                        "uniacid": 1,
                        "cat_id": 0,
                        "name": "测试优惠券1",
                        "get_type": 0,
                        "level_limit": -1,
                        "get_max": 1,
                        "get_limit_max": 1,
                        "get_limit_type": 0,
                        "use_type": 0,
                        "return_type": 0,
                        "bgcolor": "",
                        "enough": 1,
                        "coupon_type": 0,
                        "time_limit": 0,
                        "time_days": 0,
                        "time_start": "2021-09-08",
                        "time_end": "2021-09-15",
                        "coupon_method": 1,
                        "discount": "0.00",
                        "deduct": "0.00",
                        "back_type": 0,
                        "back_money": "",
                        "back_credit": "",
                        "back_redpack": "",
                        "back_when": 0,
                        "thumb": "",
                        "desc": null,
                        "total": 30,
                        "status": 1,
                        "money": "0.00",
                        "resp_desc": null,
                        "resp_thumb": "",
                        "resp_title": "",
                        "resp_url": "",
                        "credit": 0,
                        "usecredit2": 0,
                        "remark": "",
                        "descnoset": 0,
                        "display_order": 0,
                        "supplier_uid": 0,
                        "getcashier": 0,
                        "cashiersids": null,
                        "cashiersnames": null,
                        "category_ids": [],
                        "categorynames": [],
                        "goods_names": [],
                        "goods_ids": [],
                        "storenames": [],
                        "getstore": 0,
                        "getsupplier": 0,
                        "supplierids": null,
                        "suppliernames": null,
                        "createtime": 0,
                        "created_at": "2021-09-08",
                        "updated_at": "2021-09-29",
                        "deleted_at": null,
                        "is_complex": 0,
                        "plugin_id": 0,
                        "use_conditions": "N;",
                        "coupon_type_name": "平台商品"
                    }
                },
                {
                    "id": 7,
                    "uid": 7,
                    "coupon_id": 2,
                    "used": 0,
                    "use_time": 0,
                    "get_time": "2021-09-08 00:00:00",
                    "is_member_deleted": 0,
                    "is_expired": 0,
                    "near_expiration": 0,
                    "expired_at": 2494944000,
                    "valid": true,
                    "checked": false,
                    "time_start": "2021-09-08",
                    "time_end": "不限时间",
                    "belongs_to_coupon": {
                        "id": 2,
                        "uniacid": 1,
                        "cat_id": 0,
                        "name": "电器优惠券-1",
                        "get_type": 0,
                        "level_limit": -1,
                        "get_max": 1,
                        "get_limit_max": 1,
                        "get_limit_type": 0,
                        "use_type": 0,
                        "return_type": 0,
                        "bgcolor": "",
                        "enough": 1,
                        "coupon_type": 0,
                        "time_limit": 0,
                        "time_days": 0,
                        "time_start": "2021-09-08",
                        "time_end": "2021-09-15",
                        "coupon_method": 1,
                        "discount": "0.00",
                        "deduct": "0.00",
                        "back_type": 0,
                        "back_money": "",
                        "back_credit": "",
                        "back_redpack": "",
                        "back_when": 0,
                        "thumb": "",
                        "desc": null,
                        "total": 110,
                        "status": 1,
                        "money": "0.00",
                        "resp_desc": null,
                        "resp_thumb": "",
                        "resp_title": "",
                        "resp_url": "",
                        "credit": 0,
                        "usecredit2": 0,
                        "remark": "",
                        "descnoset": 0,
                        "display_order": 0,
                        "supplier_uid": 0,
                        "getcashier": 0,
                        "cashiersids": null,
                        "cashiersnames": null,
                        "category_ids": [],
                        "categorynames": [],
                        "goods_names": [],
                        "goods_ids": [],
                        "storenames": [],
                        "getstore": 0,
                        "getsupplier": 0,
                        "supplierids": null,
                        "suppliernames": null,
                        "createtime": 0,
                        "created_at": "2021-09-08",
                        "updated_at": "2021-09-29",
                        "deleted_at": null,
                        "is_complex": 0,
                        "plugin_id": 0,
                        "use_conditions": "N;",
                        "coupon_type_name": "平台商品"
                    }
                }
            ]
        },
        "dispatch": {
            "delivery_method": [],
            "recommend_goods": [],
            "use_wechat_address": true,
            "default_member_address": {
                "id": 2,
                "uniacid": 1,
                "uid": 7,
                "username": "12345678901",
                "mobile": "12345678901",
                "zipcode": "",
                "province": "江苏省",
                "city": "扬州市",
                "district": "高邮市",
                "address": "2131312",
                "isdefault": 1,
                "longitude": "",
                "latitude": ""
            }
        }
    }
}