店铺API / 批量更新店铺库存

发布日期:2024-07-04
浏览次数:1211
  

 

1.1 说明

 
路径 http://www.your_website_domain.com/FeiEditor/api_v1/shop/store/batch_store
方法 POST
说明 批量更新店铺库存
 
 

1.2 参数

 
名称 必须 类型 描述
data
YesString店铺商品库存信息,为json 字符串格式,可以批量更新商品库存。
格式如下:
{"store_code1":[{"sku":"SKU01","stock":10},{"sku":"SKU02","stock":2}],"store_code2":[{"sku":"SKU01","stock":10},{"sku":"SKU02","stock":2}]}
 
 

1.3 返回结果

 
{
        "total": 2,
        "success": 2,
     
}
错误返回
{
    "errors":[{
        "code":"api_error",
        "message":""
    }]
}

 

1.4 相关API

登录后即可发表评论,立即登录.

  API相关文档