Appearance
4.6 获取商品上下架状态 
接口说明:
| Method | URL | ContentType | 
|---|---|---|
| GET | /api/restful/products/status | application/json | 
URL参数说明:
| 参数 | 类型说明 | 是否必须 | 长度 | 描述 | 
|---|---|---|---|---|
| skus | string | 必须 | 50 | 多个商品编号; 支持批量,以英文逗号分隔 | 
| customer_code | string | 非必须 | 50 | 客户编码 ,不填的情况,默认返回全部 | 
返回结果说明:
| 参数 | 类型说明 | 描述 | 
|---|---|---|
| state | Int | 状态(1:上架 0:下架) | 
| sku | string | 商品编号 | 
| customer_code | string | 客户编码,*代表全部 | 
请求参数示例:
/api/restful/products/status?skus=1049204,105019&&customer_code=106253
返回数据示例:
json
{
    "result": [{
        "sku": "1049204",
        "state": 1,
        "customer_code": "106253"
    }, {
        "sku": "105019",
        "state": 1,
        "customer_code": "106253"
    }],
    "success": true,
    "errormsg": "",
    "errorcode": "0",
    "requestId": "a089a39e2fe74f3b8281fa2bfd799c44"
}