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

alibaba.idle.cycleshop.good.quantity.list (闲鱼循环商店-门店SAAS-货品库存读取)

闲鱼循环商店-门店SAAS-货品库存读取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CycleShopQueryGoodsStorageQry 必须 请求参数
  • └ good_id_list
  • Number []
  • 必须
  • [123,123]
  • 货品ID集合
  • └ source
  • String
  • 可选
  • list_detail
  • 请求来源

响应参数

名称 类型 示例值 描述
result CommonResult 结果
  • data
  • CycleShopGoodStorageListVO
  • 数据
  • good_quantity_vo_list
  • CycleShopGoodStorageVO []
  • 货品库存集合
  • └ good_id
  • Number
  • 1
  • 货品id
  • └ seller_type
  • String
  • b
  • 卖家类型
  • └ cost_price
  • Number
  • 1
  • 成本价 单位:分
  • └ origin_price
  • Number
  • 1
  • 货品原价 单位:分
  • └ cur_quantity
  • Number
  • 1
  • 当前库存量
  • └ sold_quantity
  • Number
  • 1
  • 已售出库存量
  • └ all_quantity
  • Number
  • 1
  • 总库存量
  • └ update_time
  • String
  • "2024-11-28 12:00:00"
  • 库存更新时间
  • └ reason
  • String
  • 丢失
  • 库存更新原因
  • └ success
  • String
  • true
  • 是否成功
  • └ error_code
  • String
  • PARAM_ERROR
  • 错误码
  • └ error_msg
  • String
  • 参数不合法
  • 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCycleshopGoodQuantityListRequest req = new AlibabaIdleCycleshopGoodQuantityListRequest();
AlibabaIdleCycleshopGoodQuantityListRequest.CycleShopQueryGoodsStorageQry obj1 = new AlibabaIdleCycleshopGoodQuantityListRequest.CycleShopQueryGoodsStorageQry();
obj1.setGoodIdList(new Long[] { 123,123 };
);
obj1.setSource("list_detail");
req.setParam(obj1);
AlibabaIdleCycleshopGoodQuantityListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_cycleshop_good_quantity_list_response>
    <result>
        <data>
            <good_quantity_vo_list>
                <cycle_shop_good_storage_v_o>
                    <good_id>1</good_id>
                    <seller_type>b</seller_type>
                    <cost_price>1</cost_price>
                    <origin_price>1</origin_price>
                    <cur_quantity>1</cur_quantity>
                    <sold_quantity>1</sold_quantity>
                    <all_quantity>1</all_quantity>
                    <update_time>&quot;2024-11-28 12:00:00&quot;</update_time>
                    <reason>丢失</reason>
                </cycle_shop_good_storage_v_o>
            </good_quantity_vo_list>
        </data>
        <success>true</success>
        <error_code>PARAM_ERROR</error_code>
        <error_msg>参数不合法</error_msg>
    </result>
</alibaba_idle_cycleshop_good_quantity_list_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

返回
顶部