文档中心 > API类目 > 闲鱼循环商店-前台

alibaba.idle.cycleshop.good.quantity.change (闲鱼循环商店-门店SAAS-库存修改)

闲鱼循环商店-门店SAAS-库存修改

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CycleShopGoodUpdateStorageCmd 可选 修改库存入参
  • └ good_id
  • Number
  • 必须
  • 12344512
  • 货品id
  • └ quantity_before
  • Number
  • 必须
  • 12344512
  • 修改前货品数量
  • └ quantity_after
  • Number
  • 必须
  • 123
  • 修改后货品数量
  • └ reason
  • String
  • 必须
  • 修改原因
  • 修改原因
  • └ operator_id
  • String
  • 必须
  • 1
  • 操作人id
  • └ source
  • String
  • 可选
  • list_detail
  • 操作来源

响应参数

名称 类型 示例值 描述
result CommonResult 修改库存结果
  • data
  • CycleShopUpdateStorageResult
  • 数据
  • └ success
  • String
  • true
  • 是否修改成功
  • └ success
  • String
  • true
  • 接口是否成功
  • └ error_code
  • String
  • SYSTEM_ERROR
  • 错误码
  • └ error_msg
  • String
  • 系统错误
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCycleshopGoodQuantityChangeRequest req = new AlibabaIdleCycleshopGoodQuantityChangeRequest();
AlibabaIdleCycleshopGoodQuantityChangeRequest.CycleShopGoodUpdateStorageCmd obj1 = new AlibabaIdleCycleshopGoodQuantityChangeRequest.CycleShopGoodUpdateStorageCmd();
obj1.setGoodId(12344512L);
obj1.setQuantityBefore(12344512L);
obj1.setQuantityAfter(123L);
obj1.setReason("修改原因");
obj1.setOperatorId("1");
obj1.setSource("list_detail");
req.setParam(obj1);
AlibabaIdleCycleshopGoodQuantityChangeResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_cycleshop_good_quantity_change_response>
    <result>
        <data>
            <success>true</success>
        </data>
        <success>true</success>
        <error_code>SYSTEM_ERROR</error_code>
        <error_msg>系统错误</error_msg>
    </result>
</alibaba_idle_cycleshop_good_quantity_change_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部