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

alibaba.idle.cycleshop.store.goodspush (闲鱼循环商店-门店SAAS-推进货品状态)

闲鱼循环商店-门店SAAS-推进货品状态(批量时需要根据寄卖卖家进行推送)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CycleShopGoodsStatusUpdateTopCmd 必须 请求参数
  • └ goods_ids
  • Number []
  • 必须
  • [1234345435]
  • 闲鱼货品Id
  • └ event
  • String
  • 必须
  • FORCE_RETRIEVE
  • 推进的状态事件 【FORCE_RETRIEVE:卖家强行要求取回,FINISH_RETRIEVED:已完成-卖家已取回,INVITE_CLEARANCE:寄卖中-清仓邀约,DELETE:已删除-商店删除】
  • └ jm_sellerid
  • Number
  • 可选
  • 3243453245454
  • 寄卖卖家id,批量货品状态推送时必填(批量货品id列表中非此卖家的货品会被忽略,状态不会变更)

响应参数

名称 类型 示例值 描述
result CommonResult 返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ err_code
  • String
  • PARAM_ERROR
  • 错误码
  • └ err_msg
  • String
  • 参数不合法
  • 错误描述
  • data
  • CycleShopGoodsStatusUpdateTopVO
  • 返回数据
  • └ success_count
  • Number
  • 1
  • 推送成功数量
  • └ success_goodids
  • Number []
  • 推送成功的货品id,批量的时候返回
  • └ fail_goodids
  • Number []
  • 推送失败的货品id,批量的时候返回

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCycleshopStoreGoodspushRequest req = new AlibabaIdleCycleshopStoreGoodspushRequest();
AlibabaIdleCycleshopStoreGoodspushRequest.CycleShopGoodsStatusUpdateTopCmd obj1 = new AlibabaIdleCycleshopStoreGoodspushRequest.CycleShopGoodsStatusUpdateTopCmd();
obj1.setGoodsIds(new Long[] { 1234345435 };
);
obj1.setEvent("FORCE_RETRIEVE");
obj1.setJmSellerid(3243453245454L);
req.setParam(obj1);
AlibabaIdleCycleshopStoreGoodspushResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_cycleshop_store_goodspush_response>
    <result>
        <success>true</success>
        <err_code>PARAM_ERROR</err_code>
        <err_msg>参数不合法</err_msg>
        <data>
            <success_count>1</success_count>
        </data>
    </result>
</alibaba_idle_cycleshop_store_goodspush_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

返回
顶部