获取商品规格信息

请求地址: 

https://open.dlszywz.cn/open/product/getProSpec


请求方式:

  • REQUEST

参数:


参数名必选类型说明
tokenstring授权令牌【通过header参数传值】
channel_idint栏目ID


返回示例

{
    "code": 200,
    "data": {
        "group_cnt": 3,
        "group_list": [
            {
                "id": 241807,
                "name""圣罗兰",
                "channel_id": 22404929,
                "order_sort": 0,
                "select_group": null,
                "is_up": 100,
                "is_moren": 0,
                "param_cnt": 0,
                "param_arr": []
            },
            {
                "id": 241808,
                "name""Nike",
                "channel_id": 22404929,
                "order_sort": 0,
                "select_group": null,
                "is_up": 100,
                "is_moren": 1,
                "param_cnt": 3,
                "param_arr": [
                    {
                        "id": 8335,
                        "name""Supply",
                        "channel_id": 22404929,
                        "group_id": 241808,
                        "order_sort": 3,
                        "is_up": 100,
                        "tmp_id": 0,
                        "is_show": 1,
                        "is_show_index": 1,
                        "val_cnt": 3,
                        "val_arr": [
                            {
                                "id": 7563,
                                "name""FS",
                                "channel_id": 22404929,
                                "param_id": 8335,
                                "order_sort": 0,
                                "is_up": null
                            },
                            {
                                "id": 7564,
                                "name""CES",
                                "channel_id": 22404929,
                                "param_id": 8335,
                                "order_sort": 0,
                                "is_up": null
                            },
                            {
                                "id": 7565,
                                "name""RE",
                                "channel_id": 22404929,
                                "param_id": 8335,
                                "order_sort": 0,
                                "is_up": null
                            }
                        ]
                    },
                    {
                        "id": 8334,
                        "name""Brand",
                        "channel_id": 22404929,
                        "group_id": 241808,
                        "order_sort": 2,
                        "is_up": 100,
                        "tmp_id": 0,
                        "is_show": 1,
                        "is_show_index": 1,
                        "val_cnt": 5,
                        "val_arr": [
                            {
                                "id": 7553,
                                "name""雕刻版",
                                "channel_id": 22404929,
                                "param_id": 8334,
                                "order_sort": 0,
                                "is_up": 100
                            },
                            {
                                "id": 7554,
                                "name""纪念版",
                                "channel_id": 22404929,
                                "param_id": 8334,
                                "order_sort": 0,
                                "is_up": 100
                            },
                            {
                                "id": 7555,
                                "name""定制版",
                                "channel_id": 22404929,
                                "param_id": 8334,
                                "order_sort": 0,
                                "is_up": 100
                            },
                            {
                                "id": 7561,
                                "name""怀旧",
                                "channel_id": 22404929,
                                "param_id": 8334,
                                "order_sort": 0,
                                "is_up": 100
                            },
                            {
                                "id": 7562,
                                "name""艺能",
                                "channel_id": 22404929,
                                "param_id": 8334,
                                "order_sort": 0,
                                "is_up": 100
                            }
                        ]
                    },
                    {
                        "id": 8333,
                        "name""Size",
                        "channel_id": 22404929,
                        "group_id": 241808,
                        "order_sort": 1,
                        "is_up": 100,
                        "tmp_id": 0,
                        "is_show": 1,
                        "is_show_index": 1,
                        "val_cnt": 2,
                        "val_arr": [
                            {
                                "id": 7556,
                                "name""42.5m",
                                "channel_id": 22404929,
                                "param_id": 8333,
                                "order_sort": 0,
                                "is_up": 100
                            },
                            {
                                "id": 7557,
                                "name""43M",
                                "channel_id": 22404929,
                                "param_id": 8333,
                                "order_sort": 0,
                                "is_up": 100
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "msg""成功 code: 200",
    "param": {}
}


返回参数说明

参数名类型说明
group_cntint规格组 总数
 group_listarray 规格组 列表  (详情见下方)


返回 group_list 参数说明

参数名类型说明
idint规格组 ID
 namestring 规格组 名称
 channel_idint 规格组 频道ID
 order_sortint 规格组 排序
 select_groupstring 规格组指定频道分类ID集(例:10002,10003,10004)
 is_morenint 是否默认规格组(0否,1是)
 param_cntint 规格项 数量
 param_arrarray 规格项 数组  (详情见下方)


返回 param_arr 参数说明

参数名类型说明
idint规格项 ID
 namestring 规格项 名称
 channel_idint 规格项 频道ID
 group_idint 规格组 ID
 order_sortint 规格项 排序
 is_showint 是否显示 0不显示 1显示
 is_show_indexint 是否支持筛选  0不支持 1支持
 val_cntint 规格值 数量
 val_arrarray 规格值 数组  (详情见下方)


返回 val_arr 参数说明

参数名类型说明
idint规格值 ID
 namestring 规格值 名称
 channel_idint 规格值 频道ID
 param_idint 规格项 ID
 order_sortint 规格值 排序


备注

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