产品上下架
企业可通过此接口更新产品的上下架状态
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/product/library/product_library_usable_unusable
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | str | 是 | 调用接口凭证 |
Body参数:
{
"execute_type": 1,
"product_library_ids": [
"test_04380dd4d364"
],
"user_id": "test_b410f3e28899"
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
execute_type | int | 是 | 操作类型,1-上架,2-下架 |
user_id | string | 是 | 员工id |
product_library_ids | string[] | 是 | 产品id集合,集合最小长度为:1,最大长度为:5 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"execute_result": false,
"error_msg": "test_33aed8ca1009"
},
"sub_code": "00000"
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 响应对象 |
execute_result | bool | 操作结果 |
error_msg | string | 异常原因 |
sub_code | string | 业务异常返回码 |