商品的上架和下架操作
接口调用基本参数 | 参数 |
---|---|
协议 | https |
http请求方式 | POST |
请求URL | https://api.weixin.qq.com/mall/changebranditemstatus?access_token=ACCESS_TOKEN |
POST数据格式 | json |
请求数据样例
{
"item_codes":[
"00003554543900_00000000000381"
],
"status":"ITEM_INITIAL"
}
数据类型 | 请求字段 | 必填 | 说明 |
---|---|---|---|
string | item_codes | 是 | 商品编码 |
uint32 | status | 是 | 商品的状态:1=上架;2=下架 |
回包数据样例
{
"errcode":0,
"errmsg":"status can not be initial"
}
字段类型 | 返回字段 | 说明 |
---|---|---|
uint32 | errcode | 错误码 |
string | errmsg | 错误信息 |