下架商品

接口调用请求说明

  1. http请求方式:POST
  2. https://api.weixin.qq.com/product/spu/delisting?access_token=xxxxxxxxx

请求参数示例

  1. {
  2. "product_id":1234234,
  3. "out_product_id": "1234566"
  4. }

回包示例

  1. {
  2. "errcode": 0,
  3. "errmsg":"ok"
  4. }

请求参数说明

参数类型是否必填说明
product_idnumber小商店内部商品ID,与out_product_id二选一
out_product_idstring商家自定义商品ID,与product_id二选一

回包参数说明

参数类型说明
errcodenumber错误码
errmsgstring错误信息

返回码

返回码错误类型
-1系统异常
-2token太长
9401020参数有误
9401021无权限调用该api
9401002SPU不存在
9401001SPU已经存在
9401023SPU不允许编辑