product_bundle.md 32.4 KB

1、(PC端用)根据SKN查询套餐、量贩信息

(method=web.query.bundleSkn) 请求方式:get

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
product_skn Integer 51127118 null 商品SKN

注意,通用的头部没有列出。
请求示例 http://172.16.6.220:8080/gateway/?product_skn=51127118&app_version=4.9.2&client_type=h5&method=web.query.bundleSkn&os_version=yohobuy%3Ah5&screen_size=720x1280&debug=XYZ&v=7&client_secret=8ce251999f01845d50d5a6b5b15ecdc0%E2%80%98%E2%80%99

响应

code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "bundleInfo": {
            "bundleCount": 1,
            "bundleId": 1124,
            "discount": 0.8,
            "discountPrice": 10.4,
            "discountType": 1,
            "endTime": 1481792796,
            "id": 26,
            "orderBys": [
                1,
                2
            ],
            "productSkns": [
                51127118,
                51120999
            ],
            "promotionPhrase": "",
            "salesPrice": 13,
            "startTime": 1479978396,
            "status": 1
        },
        "productList": [
            {
                "advance_shelve_time": 0,
                "attribute": 1,
                "brand_id": 560,
                "cn_alphabet": "GAWS654321MoShuTie",
                "default_images": "http://img11.static.yhbimg.com/goodsimg/2015/08/03/02/01a1b10ca51217c7657716d3ee10f1ef13.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "format_market_price": "¥5.00",
                "format_sales_price": "¥2.00",
                "goods_list": [
                    {
                        "color_code": "",
                        "color_id": 2,
                        "color_image": "http://img11.static.yhbimg.com/goodsimg/2015/08/03/02/01a1b10ca51217c7657716d3ee10f1ef13.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "color_value": "",
                        "goods_id": 296727,
                        "images_list": [
                            {
                                "image_url": "http://img11.static.yhbimg.com/goodsimg/2015/08/03/02/01a1b10ca51217c7657716d3ee10f1ef13.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            }
                        ],
                        "is_default": "N",
                        "product_skc": 249668,
                        "size_list": [
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 809300,
                                "size_id": 199,
                                "size_name": "F",
                                "status": 1,
                                "storage_number": 0,
                                "store_storage_number": 0
                            }
                        ],
                        "status": 1
                    },
                    {
                        "color_code": "",
                        "color_id": 2,
                        "color_image": "http://img12.static.yhbimg.com/goodsimg/2015/08/03/02/02eee69cc5ff5d9debaa67540b4a66619c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "color_value": "",
                        "goods_id": 296729,
                        "images_list": [
                            {
                                "image_url": "http://img12.static.yhbimg.com/goodsimg/2015/08/03/02/02eee69cc5ff5d9debaa67540b4a66619c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            }
                        ],
                        "is_default": "N",
                        "product_skc": 249669,
                        "size_list": [
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 809301,
                                "size_id": 199,
                                "size_name": "F",
                                "status": 1,
                                "storage_number": 0,
                                "store_storage_number": 0
                            }
                        ],
                        "status": 1
                    },
                    {
                        "color_code": "",
                        "color_id": 2,
                        "color_image": "http://img12.static.yhbimg.com/goodsimg/2015/08/03/02/02d36f54541c2e27f1fe6a3eceda62d099.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "color_value": "",
                        "goods_id": 296703,
                        "images_list": [
                            {
                                "image_url": "http://img12.static.yhbimg.com/goodsimg/2015/08/03/02/02d36f54541c2e27f1fe6a3eceda62d099.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            }
                        ],
                        "is_default": "N",
                        "product_skc": 249656,
                        "size_list": [
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 809288,
                                "size_id": 199,
                                "size_name": "F",
                                "status": 1,
                                "storage_number": 1,
                                "store_storage_number": 0
                            }
                        ],
                        "status": 1
                    }
                ],
                "info": {
                    "comment_total": 0,
                    "consult_total": 0
                },
                "instalmentId": "",
                "isInstalment": "0",
                "isLimitBuy": false,
                "is_advance": "N",
                "is_collect": "",
                "is_deposit_advance": "N",
                "is_outlets": "N",
                "is_secKill": "N",
                "limitProductCode": "",
                "market_price": 5,
                "maxSortId": 8,
                "middleSortId": 66,
                "phrase": "魔术贴款式的拖鞋是一大亮点,有大小两套字母魔术贴出售,可以随性组合,诠释专属自己的态度。随着时装周上各路潮人脚着拖鞋的造型搭配,相信这股风潮会一直延续下去,中意拖鞋造型的朋友,不妨抓紧入手。",
                "product_id": 224619,
                "product_name": "GAWS 魔术贴拖鞋-大魔术贴",
                "product_skn": 51127118,
                "product_url": "http://m.yohobuy.com/product/pro_224619_296709/GAWS654321MoShuTie.html",
                "saleStatus": 0,
                "sales_phrase": "魔术贴款式的拖鞋是一大亮点,有大小两套字母魔术贴出售,可以随性组合,诠释专属自己的态度。随着时装周上各路潮人脚着拖鞋的造型搭配,相信这股风潮会一直延续下去,中意拖鞋造型的朋友,不妨抓紧入手。",
                "sales_price": 2,
                "shop_id": 0,
                "showStatus": 0,
                "smallSortId": 234,
                "status": 1,
                "storage_sum": 23,
                "vip": [
                    {
                        "caption": "银卡",
                        "price": "1.90"
                    },
                    {
                        "caption": "金卡",
                        "price": "1.90"
                    },
                    {
                        "caption": "白金",
                        "price": "1.90"
                    }
                ],
                "vip_price": "2.00",
                "yohoCoinNum": "1"
            },
            {
                "advance_shelve_time": 0,
                "attribute": 1,
                "brand_id": 208,
                "cn_alphabet": "LALA503CC103MianYi",
                "default_images": "http://img13.static.yhbimg.com/goodsimg/2015/08/24/12/02a1d71fe77053e4e8fdafb052b4990d8b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "format_market_price": "¥939.00",
                "format_sales_price": "¥11.00",
                "goods_list": [
                    {
                        "color_code": "",
                        "color_id": 4,
                        "color_image": "http://img13.static.yhbimg.com/goodsimg/2015/08/24/12/02a1d71fe77053e4e8fdafb052b4990d8b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "棕色",
                        "color_value": "",
                        "goods_id": 324047,
                        "images_list": [
                            {
                                "image_url": "http://img13.static.yhbimg.com/goodsimg/2015/08/24/12/02a1d71fe77053e4e8fdafb052b4990d8b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            },
                            {
                                "image_url": "http://img12.static.yhbimg.com/goodsimg/2015/09/01/08/02610bc9fcb8ca482e8f329587d550b1c2.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            }
                        ],
                        "is_default": "N",
                        "product_skc": 263533,
                        "size_list": [
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 848801,
                                "size_id": 207,
                                "size_name": "S",
                                "status": 1,
                                "storage_number": 9,
                                "store_storage_number": 0
                            },
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 848802,
                                "size_id": 203,
                                "size_name": "M",
                                "status": 1,
                                "storage_number": 17,
                                "store_storage_number": 0
                            },
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 848803,
                                "size_id": 201,
                                "size_name": "L",
                                "status": 1,
                                "storage_number": 1,
                                "store_storage_number": 0
                            },
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 848804,
                                "size_id": 211,
                                "size_name": "XL",
                                "status": 1,
                                "storage_number": 12,
                                "store_storage_number": 0
                            }
                        ],
                        "status": 1
                    }
                ],
                "info": {
                    "comment_total": 0,
                    "consult_total": 0
                },
                "instalmentId": "",
                "isInstalment": "0",
                "isLimitBuy": false,
                "is_advance": "N",
                "is_collect": "",
                "is_deposit_advance": "N",
                "is_outlets": "N",
                "is_secKill": "N",
                "limitProductCode": "",
                "market_price": 939,
                "maxSortId": 1,
                "middleSortId": 20,
                "phrase": "Life·After Life 牛角扣基础工装毛领棉衣 时间转入下半年,潮流品牌Life• After Life以秋冬寒冷的气候为创作灵感,将主题设定为“CHILL LIFE”,打造出外套、卫衣、衬衫、休闲裤、牛仔裤等一系列单品。此款选用纯棉布料,牛角扣的设计,提升整款的英伦学院气息,品牌字母logo的刺绣袖章更是帅气突兀。优选面料以及高品质工艺的加持,传递出设计师满满的设计诚意。",
                "product_id": 212417,
                "product_name": "Life·After Life 牛角扣夹棉连帽大衣(M51款)【吴亦凡亲身试着】",
                "product_skn": 51120999,
                "product_url": "http://m.yohobuy.com/product/pro_212417_282467/LALA503CC103MianYi.html",
                "saleStatus": 0,
                "sales_phrase": "Life·AfterLife牛角扣基础工装毛领棉衣时间转入下半年,潮流品牌Life?AfterLife以秋冬寒冷的气候为创作灵感,将主题设定为“CHILLLIFE”,打造出外套、卫衣、衬衫",
                "sales_price": 11,
                "shop_id": 0,
                "showStatus": 0,
                "smallSortId": 123,
                "status": 1,
                "storage_sum": 1475,
                "vip": [
                    {
                        "caption": "银卡",
                        "price": "10.45"
                    },
                    {
                        "caption": "金卡",
                        "price": "9.90"
                    },
                    {
                        "caption": "白金",
                        "price": "9.68"
                    }
                ],
                "vip_price": "11.00",
                "yohoCoinNum": "0"
            }
        ]
    },
    "md5": "fbbc4e8ed18b925be2c5726bc91875f7",
    "message": "query product bundle info!"
}

2、(APP端用,不回填事实库存和标签)根据SKN查询套餐、量贩信息

(method=app.query.bundleSkn) 请求方式:get

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
product_skn Integer 51127118 null 商品SKN

注意,通用的头部没有列出。
请求示例 http://172.16.6.220:8080/gateway/?product_skn=51127118&app_version=4.9.2&client_type=h5&method=app.query.bundleSkn&os_version=yohobuy%3Ah5&screen_size=720x1280&debug=XYZ&v=7&client_secret=8ce251999f01845d50d5a6b5b15ecdc0%E2%80%98%E2%80%99

响应

code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": {
        "bundleInfo": {
            "bundleCount": 1,
            "bundleId": 1124,
            "discount": 0.8,
            "discountPrice": 10.4,
            "discountType": 1,
            "endTime": 1481792796,
            "id": 26,
            "orderBys": [
                1,
                2
            ],
            "productSkns": [
                51127118,
                51120999
            ],
            "promotionPhrase": "",
            "salesPrice": 13,
            "startTime": 1479978396,
            "status": 1
        },
        "productList": [
            {
                "advance_shelve_time": 0,
                "attribute": 1,
                "brand_id": 560,
                "cn_alphabet": "GAWS654321MoShuTie",
                "default_images": "http://img11.static.yhbimg.com/goodsimg/2015/08/03/02/01a1b10ca51217c7657716d3ee10f1ef13.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "format_market_price": "¥5.00",
                "format_sales_price": "¥2.00",
                "goods_list": [
                    {
                        "color_code": "",
                        "color_id": 2,
                        "color_image": "http://img11.static.yhbimg.com/goodsimg/2015/08/03/02/01a1b10ca51217c7657716d3ee10f1ef13.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "color_value": "",
                        "goods_id": 296727,
                        "images_list": [
                            {
                                "image_url": "http://img11.static.yhbimg.com/goodsimg/2015/08/03/02/01a1b10ca51217c7657716d3ee10f1ef13.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            }
                        ],
                        "is_default": "N",
                        "product_skc": 249668,
                        "size_list": [
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 809300,
                                "size_id": 199,
                                "size_name": "F",
                                "status": 1,
                                "storage_number": 0,
                                "store_storage_number": 0
                            }
                        ],
                        "status": 1
                    },
                    {
                        "color_code": "",
                        "color_id": 2,
                        "color_image": "http://img12.static.yhbimg.com/goodsimg/2015/08/03/02/02eee69cc5ff5d9debaa67540b4a66619c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "color_value": "",
                        "goods_id": 296729,
                        "images_list": [
                            {
                                "image_url": "http://img12.static.yhbimg.com/goodsimg/2015/08/03/02/02eee69cc5ff5d9debaa67540b4a66619c.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            }
                        ],
                        "is_default": "N",
                        "product_skc": 249669,
                        "size_list": [
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 809301,
                                "size_id": 199,
                                "size_name": "F",
                                "status": 1,
                                "storage_number": 0,
                                "store_storage_number": 0
                            }
                        ],
                        "status": 1
                    },
                    {
                        "color_code": "",
                        "color_id": 2,
                        "color_image": "http://img12.static.yhbimg.com/goodsimg/2015/08/03/02/02d36f54541c2e27f1fe6a3eceda62d099.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "color_value": "",
                        "goods_id": 296703,
                        "images_list": [
                            {
                                "image_url": "http://img12.static.yhbimg.com/goodsimg/2015/08/03/02/02d36f54541c2e27f1fe6a3eceda62d099.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            }
                        ],
                        "is_default": "N",
                        "product_skc": 249656,
                        "size_list": [
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 809288,
                                "size_id": 199,
                                "size_name": "F",
                                "status": 1,
                                "storage_number": 1,
                                "store_storage_number": 0
                            }
                        ],
                        "status": 1
                    }
                ],
                "info": {
                    "comment_total": 0,
                    "consult_total": 0
                },
                "instalmentId": "",
                "isInstalment": "0",
                "isLimitBuy": false,
                "is_advance": "N",
                "is_collect": "",
                "is_deposit_advance": "N",
                "is_outlets": "N",
                "is_secKill": "N",
                "limitProductCode": "",
                "market_price": 5,
                "maxSortId": 8,
                "middleSortId": 66,
                "phrase": "魔术贴款式的拖鞋是一大亮点,有大小两套字母魔术贴出售,可以随性组合,诠释专属自己的态度。随着时装周上各路潮人脚着拖鞋的造型搭配,相信这股风潮会一直延续下去,中意拖鞋造型的朋友,不妨抓紧入手。",
                "product_id": 224619,
                "product_name": "GAWS 魔术贴拖鞋-大魔术贴",
                "product_skn": 51127118,
                "product_url": "http://m.yohobuy.com/product/pro_224619_296709/GAWS654321MoShuTie.html",
                "saleStatus": 0,
                "sales_phrase": "魔术贴款式的拖鞋是一大亮点,有大小两套字母魔术贴出售,可以随性组合,诠释专属自己的态度。随着时装周上各路潮人脚着拖鞋的造型搭配,相信这股风潮会一直延续下去,中意拖鞋造型的朋友,不妨抓紧入手。",
                "sales_price": 2,
                "shop_id": 0,
                "showStatus": 0,
                "smallSortId": 234,
                "status": 1,
                "storage_sum": 23,
                "vip": [
                    {
                        "caption": "银卡",
                        "price": "1.90"
                    },
                    {
                        "caption": "金卡",
                        "price": "1.90"
                    },
                    {
                        "caption": "白金",
                        "price": "1.90"
                    }
                ],
                "vip_price": "2.00",
                "yohoCoinNum": "1"
            },
            {
                "advance_shelve_time": 0,
                "attribute": 1,
                "brand_id": 208,
                "cn_alphabet": "LALA503CC103MianYi",
                "default_images": "http://img13.static.yhbimg.com/goodsimg/2015/08/24/12/02a1d71fe77053e4e8fdafb052b4990d8b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "format_market_price": "¥939.00",
                "format_sales_price": "¥11.00",
                "goods_list": [
                    {
                        "color_code": "",
                        "color_id": 4,
                        "color_image": "http://img13.static.yhbimg.com/goodsimg/2015/08/24/12/02a1d71fe77053e4e8fdafb052b4990d8b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "棕色",
                        "color_value": "",
                        "goods_id": 324047,
                        "images_list": [
                            {
                                "image_url": "http://img13.static.yhbimg.com/goodsimg/2015/08/24/12/02a1d71fe77053e4e8fdafb052b4990d8b.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            },
                            {
                                "image_url": "http://img12.static.yhbimg.com/goodsimg/2015/09/01/08/02610bc9fcb8ca482e8f329587d550b1c2.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80"
                            }
                        ],
                        "is_default": "N",
                        "product_skc": 263533,
                        "size_list": [
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 848801,
                                "size_id": 207,
                                "size_name": "S",
                                "status": 1,
                                "storage_number": 9,
                                "store_storage_number": 0
                            },
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 848802,
                                "size_id": 203,
                                "size_name": "M",
                                "status": 1,
                                "storage_number": 17,
                                "store_storage_number": 0
                            },
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 848803,
                                "size_id": 201,
                                "size_name": "L",
                                "status": 1,
                                "storage_number": 1,
                                "store_storage_number": 0
                            },
                            {
                                "all_storage_number": 0,
                                "isSuppled": "Y",
                                "order_by": 1,
                                "product_sku": 848804,
                                "size_id": 211,
                                "size_name": "XL",
                                "status": 1,
                                "storage_number": 12,
                                "store_storage_number": 0
                            }
                        ],
                        "status": 1
                    }
                ],
                "info": {
                    "comment_total": 0,
                    "consult_total": 0
                },
                "instalmentId": "",
                "isInstalment": "0",
                "isLimitBuy": false,
                "is_advance": "N",
                "is_collect": "",
                "is_deposit_advance": "N",
                "is_outlets": "N",
                "is_secKill": "N",
                "limitProductCode": "",
                "market_price": 939,
                "maxSortId": 1,
                "middleSortId": 20,
                "phrase": "Life·After Life 牛角扣基础工装毛领棉衣 时间转入下半年,潮流品牌Life• After Life以秋冬寒冷的气候为创作灵感,将主题设定为“CHILL LIFE”,打造出外套、卫衣、衬衫、休闲裤、牛仔裤等一系列单品。此款选用纯棉布料,牛角扣的设计,提升整款的英伦学院气息,品牌字母logo的刺绣袖章更是帅气突兀。优选面料以及高品质工艺的加持,传递出设计师满满的设计诚意。",
                "product_id": 212417,
                "product_name": "Life·After Life 牛角扣夹棉连帽大衣(M51款)【吴亦凡亲身试着】",
                "product_skn": 51120999,
                "product_url": "http://m.yohobuy.com/product/pro_212417_282467/LALA503CC103MianYi.html",
                "saleStatus": 0,
                "sales_phrase": "Life·AfterLife牛角扣基础工装毛领棉衣时间转入下半年,潮流品牌Life?AfterLife以秋冬寒冷的气候为创作灵感,将主题设定为“CHILLLIFE”,打造出外套、卫衣、衬衫",
                "sales_price": 11,
                "shop_id": 0,
                "showStatus": 0,
                "smallSortId": 123,
                "status": 1,
                "storage_sum": 1475,
                "vip": [
                    {
                        "caption": "银卡",
                        "price": "10.45"
                    },
                    {
                        "caption": "金卡",
                        "price": "9.90"
                    },
                    {
                        "caption": "白金",
                        "price": "9.68"
                    }
                ],
                "vip_price": "11.00",
                "yohoCoinNum": "0"
            }
        ]
    },
    "md5": "fbbc4e8ed18b925be2c5726bc91875f7",
    "message": "query product bundle info!"
}

3、新增套餐记录

(method=add.product.bundle) 请求方式:get

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
id Integer 1124 null 套餐号
productSkn String 50001168/500011 null 商品SKN
discount Integer 0.25 null 折扣
startTime Integer 1479978396 null 套餐开始时间
endTime Integer 1480064796 null 套餐结束时间
status Integer 1 null 1:未终止;2:已终止
discountType Integer 1 null 1:套餐;2:量贩;3:搭配
bundleCount Integer 2 null 量贩起售数量
promotionPhrase String 买买买 null 量贩促销短语

注意,通用的头部没有列出。
请求示例 http://172.16.6.220:8080/gateway/?id=1124&productSkn=50001168/500011&discount=0.25&startTime=1479978396&endTime=1480064796&status=1&app_version=4.9.2&client_type=h5&method=add.product.bundle&os_version=yohobuy%3Ah5&screen_size=720x1280&debug=XYZ&v=7&client_secret=8ce251999f01845d50d5a6b5b15ecdc0

响应

code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": 2,
    "md5": "ca6bab969f97634ec41ecab841920e30",
    "message": "product bundle add Info"
}

4、批量删除套餐记录

(method=delete.product.bundle) 请求方式:get

请求参数

参数名称 参数类型 可否为空 示例 默认值 备注
bundle_ids Integer 1124, null 套餐号:英文,隔开

注意,通用的头部没有列出。
请求示例 http://172.16.6.220:8080/gateway/?bundle_ids=1124&app_version=4.9.2&client_type=h5&method=delete.product.bundle&os_version=yohobuy%3Ah5&screen_size=720x1280&debug=XYZ&v=7&client_secret=8ce251999f01845d50d5a6b5b15ecdc0

响应

code为200即为成功且只会返回200,每次都会有响应结果。 响应JSON格式如下所示:

{
    "alg": "SALT_MD5",
    "code": 200,
    "data": 2,
    "md5": "ca6bab969f97634ec41ecab841920e30",
    "message": "product bundle delete Info"
}