简要描述:

  • 开团

请求域名:

  • http://xx.com

请求URL: 导出为(export)

POST:plugin.together-purchase.api.team.preOpenTeam

参数:

参数名 是否必须 类型 说明
goods_id string 活动商品ID
total string 购买数量
at_id string 活动ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "amount_items": [
            {
                "code": "total_goods_price",
                "name": "订单总金额",
                "amount": "1.00"
            },
            {
                "code": "total_dispatch_price",
                "name": "总运费",
                "amount": "0.00"
            }
        ],
        "discount_amount_items": [],
        "fee_items": [
            {
                "code": "together_purchase_fee",
                "name": "拼购手续费",
                "amount": "20.00"
            }
        ],
        "service_fee_items": [],
        "total_price": "21.00",
        "is_together_purchase": 1,
        "together_purchase_agreement": "",
        "together_purchase_leader": {
            "uid": 24,
            "nickname": "碳酸果汁",
            "avatar": "http://wx.qlogo.cn/mmopen/FibYEcCAgGxYoG8wLnMicZJTbaANwJnuLyVx3iaoRMVspb0qLA7Q9QAYlJ8qsRHZtyRiaNsKxD29hD8WENKhw44eKjc1XHqMBwgs/132",
            "avatar_image": "https://wx.qlogo.cn/mmopen/FibYEcCAgGxYoG8wLnMicZJTbaANwJnuLyVx3iaoRMVspb0qLA7Q9QAYlJ8qsRHZtyRiaNsKxD29hD8WENKhw44eKjc1XHqMBwgs/132",
            "username": "碳酸果汁"
        },
        "orders": [
            {
                "plugin_id": 59,
                "dispatch_type_id": 0,
                "mark": "",
                "goods_price": "1.00",
                "price": "21.00",
                "order_goods_price": "1.00",
                "cost_amount": "10.00",
                "discount_price": "0.00",
                "fee_amount": "20.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": "SN20200914104436T7",
                "note": null,
                "shop_name": "芸众",
                "need_address": false,
                "invoice_type": null,
                "rise_type": null,
                "collect_name": null,
                "company_number": null,
                "pre_id": "2375ef9e856b982a6f9e5b8fb903e6d7",
                "order_settings": [],
                "order_address": {
                    "street_id": 0,
                    "zipcode": ""
                },
                "leader_together_model": {
                    "uniacid": "3",
                    "activity_id": "1",
                    "order_id": null,
                    "order_sn": null,
                    "member_id": 24,
                    "start_time": 1600051476,
                    "end_time": 1600065876,
                    "state": 0,
                    "refund": 0,
                    "is_effective": 1,
                    "parent_id": 0,
                    "state_name": null,
                    "refund_name": ""
                },
                "order_goods": [
                    {
                        "goods_option_id": 0,
                        "goods_option_title": "",
                        "comment_status": 0,
                        "goods_id": 96,
                        "total": 1,
                        "uid": 24,
                        "uniacid": 3,
                        "title": "1测试商品--勿拍",
                        "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/K7c1US5t7wzWP5uTxcAU7KZaTA5ukK.png",
                        "goods_sn": "",
                        "product_sn": "",
                        "goods_price": "1.00",
                        "price": "1.00",
                        "goods_cost_price": "10.00",
                        "goods_market_price": "10.00",
                        "coupon_price": "0.00",
                        "need_address": 0,
                        "payment_amount": "1.00",
                        "pre_id": "96-0",
                        "goods_option": null,
                        "order_goods_discounts": [],
                        "order_goods_deductions": {
                            "0": {
                                "name": "爱心值",
                                "code": "love",
                                "uid": 24,
                                "usable_amount": "0.00",
                                "usable_coin": "0.00",
                                "used_amount": "0.00",
                                "used_coin": "0.00"
                            },
                            "1": {
                                "name": "奖励积分",
                                "code": "point",
                                "uid": 24,
                                "usable_amount": "1.00",
                                "usable_coin": "1.00",
                                "used_amount": "0.00",
                                "used_coin": "0.00"
                            },
                            "3": {
                                "name": "消费积分",
                                "code": "integral",
                                "uid": 24,
                                "usable_amount": "0.00",
                                "usable_coin": "0.00",
                                "used_amount": "0.00",
                                "used_coin": "0.00"
                            }
                        }
                    }
                ],
                "order_coupons": [],
                "order_discounts": [],
                "order_deductions": {
                    "1": {
                        "code": "point",
                        "name": "奖励积分",
                        "amount": "1.00",
                        "coin": 1,
                        "checked": false
                    }
                },
                "order_fees": [
                    {
                        "fee_code": "together_purchase_fee",
                        "amount": "20.00",
                        "name": "拼购手续费",
                        "uid": 24
                    }
                ],
                "order_service_fees": [],
                "has_one_dispatch_type": null
            }
        ],
        "discount": {
            "whether_show_coupon": "1",
            "member_coupons": []
        },
        "dispatch": {
            "delivery_method": [
                {
                    "dispatch_type_id": 1,
                    "name": "快递"
                }
            ],
            "default_member_address": {
                "id": 17,
                "uniacid": 3,
                "uid": 24,
                "username": "123",
                "mobile": "15220038141",
                "zipcode": "",
                "province": "山西省",
                "city": "长治市",
                "district": "平顺县",
                "street": "西沟乡",
                "address": "111",
                "isdefault": 1
            }
        }
    }
}

错误时返回:


返回参数说明:跟拼团返回数据差不多

参数名 类型 说明
order_fees int 拼购活动商品有自定义的拼购手续费
together_purchase_agreement string 拼购活动商品有自定义的拼购协议
together_purchase_leader int 拼购团长信息

备注:

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