product_bundle.md 11.7 KB

1、根据SKN查询套餐信息

(method=query.product.bundle.skn) 请求方式: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=query.product.bundle.skn&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.25,
            "discountPrice": 3.25,
            "discountType": 1,
            "endTime": 1481792796,
            "id": 26,
            "orderBys": [
                1,
                2
            ],
            "productSkns": [
                51127118,
                51120999
            ],
            "salesPrice": 13,
            "startTime": 1479978396,
            "status": 1
        },
        "productList": [
            {
                "small_sort_id": 234,
                "vip1_price": 1.9,
                "is_seckill": "N",
                "gender": "3",
                "vip3_price": 1.76,
                "is_global": "N",
                "first_shelve_time": 1438076216,
                "is_outlets": 2,
                "is_discount": "Y",
                "brand_domain": "gaws",
                "is_special": "N",
                "goods_list": [
                    {
                        "color_id": "2",
                        "product_skc": 249644,
                        "cover_1": "",
                        "goods_id": "296679",
                        "images_url": "http://img11.static.yhbimg.com/goodsimg/2015/08/03/02/01f4311173738ae5f29f21b7a16092f6cb.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "cover_2": "",
                        "color_value": "",
                        "is_default": "N",
                        "color_code": "68EE68",
                        "status": "1"
                    },
                    {
                        "color_id": "2",
                        "product_skc": 249669,
                        "cover_1": "",
                        "goods_id": "296729",
                        "images_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",
                        "color_name": "黑色",
                        "cover_2": "",
                        "color_value": "",
                        "is_default": "N",
                        "color_code": "68EE68",
                        "status": "1"
                    }
                ],
                "vip_discount_type": 2,
                "product_id": 224619,
                "is_advance": "N",
                "sales_num": 0,
                "sales_phrase": "魔术贴款式的拖鞋是一大亮点,有大小两套字母魔术贴出售,可以随性组合,诠释专属自己的态度。随着时装周上各路潮人脚着拖鞋的造型搭配,相信这股风潮会一直延续下去,中意拖鞋造型的朋友,不妨抓紧入手。",
                "is_student_rebate": "N",
                "cn_alphabet": "GAWS654321MoShuTie",
                "product_skn": 51127118,
                "shelve_time": 1451441418,
                "is_deposit_advance": "N",
                "vip2_price": 1.8,
                "age_level": "1",
                "is_student_price": "N",
                "edit_time": 1451441418,
                "is_new": "N",
                "is_limited": "N",
                "brand_name": "GAWS",
                "max_sort_id": 8,
                "product_name": "GAWS 魔术贴拖鞋-大魔术贴",
                "brand_id": 560,
                "tags": [
                    "is_discount"
                ],
                "default_images": "http://img10.static.yhbimg.com/goodsimg/2015/08/03/02/0103bfeebbe16a7c2f6814be4db4fa4d81.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "stock_number": 5517,
                "storage_num": 5517,
                "is_soon_sold_out": "N",
                "middle_sort_id": 66,
                "sales_price": 2,
                "market_price": 5,
                "is_promotion": 222,
                "vip_price": 2,
                "is_limitbuy": "N",
                "country_id": 2,
                "status": 1
            },
            {
                "small_sort_id": 124,
                "vip1_price": 10.45,
                "is_seckill": "N",
                "gender": "3",
                "vip3_price": 9.68,
                "is_global": "N",
                "first_shelve_time": 1448365648,
                "is_outlets": 2,
                "is_discount": "Y",
                "brand_domain": "lal",
                "is_special": "N",
                "goods_list": [
                    {
                        "color_id": "2",
                        "product_skc": 280032,
                        "cover_1": "http://img10.static.yhbimg.com/goodsimg/2015/11/17/14/01c79ca871a0f21c4a644c39feacfb107a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "goods_id": "355883",
                        "images_url": "http://img11.static.yhbimg.com/goodsimg/2015/11/17/14/0194d884f901e201cd9eb1dd9f86781922.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "黑色",
                        "cover_2": "",
                        "color_value": "",
                        "is_default": "Y",
                        "color_code": "68EE68",
                        "status": "1"
                    },
                    {
                        "color_id": "7",
                        "product_skc": 280033,
                        "cover_1": "http://img12.static.yhbimg.com/goodsimg/2015/11/17/14/02e319caeadd34de1a2dfb165abd6aa773.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "goods_id": "355885",
                        "images_url": "http://img13.static.yhbimg.com/goodsimg/2015/11/26/03/0213c51e858cb6689ebc85c6bdf80d80d7.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "蓝色",
                        "cover_2": "",
                        "color_value": "",
                        "is_default": "N",
                        "color_code": "0000fe",
                        "status": "1"
                    },
                    {
                        "color_id": "3",
                        "product_skc": 280034,
                        "cover_1": "http://img11.static.yhbimg.com/goodsimg/2015/11/17/14/012fe9e7a3cefcc3e6071bd97ef2bc4f6f.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "goods_id": "355887",
                        "images_url": "http://img10.static.yhbimg.com/goodsimg/2015/11/26/07/01fe017a0182d97d41c7c811140b0ccf30.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                        "color_name": "灰色",
                        "cover_2": "",
                        "color_value": "",
                        "is_default": "N",
                        "color_code": "b9b7af",
                        "status": "1"
                    }
                ],
                "vip_discount_type": 1,
                "product_id": 275349,
                "is_advance": "N",
                "sales_num": 0,
                "sales_phrase": "新品夯售",
                "is_student_rebate": "N",
                "cn_alphabet": "LALTSA503JK07",
                "product_skn": 51153134,
                "shelve_time": 1452670246,
                "is_deposit_advance": "N",
                "vip2_price": 9.9,
                "age_level": "1",
                "is_student_price": "N",
                "edit_time": 1452670246,
                "is_new": "N",
                "is_limited": "N",
                "brand_name": "Life·After Life",
                "max_sort_id": 1,
                "product_name": "Life·After Life X Simpsons 刺绣图案拼接棒球夹克",
                "brand_id": 208,
                "tags": [
                    "is_discount"
                ],
                "default_images": "http://img10.static.yhbimg.com/goodsimg/2015/11/17/14/01c79ca871a0f21c4a644c39feacfb107a.jpg?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/80",
                "stock_number": 384,
                "storage_num": 384,
                "is_soon_sold_out": "N",
                "middle_sort_id": 21,
                "sales_price": 11,
                "market_price": 100,
                "is_promotion": 101,
                "vip_price": 11,
                "is_limitbuy": "N",
                "country_id": 1,
                "status": 1
            }
        ]
    },
    "md5": "d8dc8c0a4aa8433ca5f455e9a4a91423",
    "message": "query product bundle info!"
}

2、新增一条套餐记录

(method=app.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:已终止

注意,通用的头部没有列出。
请求示例 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"
}

3、批量删除套餐记录

(method=app.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"
}