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

alibaba.pur.rt.inventoryinfo.sync (支持物料系统同步入库单信息及参考链接)

支持物料系统同步入库单信息及参考链接

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
update_rcv_ext_info_top_dto UpdateRcvExtInfoTopDTO 可选 更新履约拓展信息
  • └ rcv_number
  • String
  • 必须
  • RT123
  • 接收单号
  • └ source_bill_url
  • String
  • 可选
  • http://www.baidu.com
  • 参考单据
  • └ source_bill_no
  • String
  • 可选
  • 123
  • 参考单据号
  • └ inventory_ext_info
  • String
  • 可选
  • {"xxx","xxx"}
  • 库存扩展信息

响应参数

名称 类型 示例值 描述
content Boolean true 返回成功
error_level Number 1 错误等级

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaPurRtInventoryinfoSyncRequest req = new AlibabaPurRtInventoryinfoSyncRequest();
AlibabaPurRtInventoryinfoSyncRequest.UpdateRcvExtInfoTopDTO obj1 = new AlibabaPurRtInventoryinfoSyncRequest.UpdateRcvExtInfoTopDTO();
obj1.setRcvNumber("RT123");
obj1.setSourceBillUrl("http://www.baidu.com");
obj1.setSourceBillNo("123");
obj1.setInventoryExtInfo("{\"xxx\",\"xxx\"}");
req.setUpdateRcvExtInfoTopDto(obj1);
AlibabaPurRtInventoryinfoSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_pur_rt_inventoryinfo_sync_response>
    <content>true</content>
    <error_level>1</error_level>
</alibaba_pur_rt_inventoryinfo_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

返回
顶部