文档中心 > API类目 > 信息平台-采购

alibaba.pur.cmall.goods.status.sync (第三方商城接入采购商城-商品状态同步)

第三方商城接入采购商城-商品状态同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
goods_data_source String 必须 ZKH 外部商家标识
goods_source_value String 必须 123 外部商家商品唯一标志
status String 必须 shelfed 状态,shelfed:上架,unShelfed:下架

响应参数

名称 类型 示例值 描述
result ActionResult 结果
  • └ is_success
  • Boolean
  • true
  • 是否成功
  • └ message
  • String
  • 参数错误
  • 返回提示信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurCmallGoodsStatusSyncRequest req = new AlibabaPurCmallGoodsStatusSyncRequest();
req.setGoodsDataSource("ZKH");
req.setGoodsSourceValue("123");
req.setStatus("shelfed");
AlibabaPurCmallGoodsStatusSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_cmall_goods_status_sync_response>
    <result>
        <is_success>true</is_success>
        <message>参数错误</message>
    </result>
</alibaba_pur_cmall_goods_status_sync_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

返回
顶部