Skip to content
On this page

4.6 获取商品上下架状态

接口说明:

MethodURLContentType
GET/api/restful/products/statusapplication/json

URL参数说明:

参数类型说明是否必须长度描述
skusstring必须50多个商品编号; 支持批量,以英文逗号分隔
customer_codestring非必须50客户编码 ,不填的情况,默认返回全部

返回结果说明:

参数类型说明描述
stateInt状态(1:上架 0:下架)
skustring商品编号
customer_codestring客户编码,*代表全部

请求参数示例:

/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"
}