文档中心 > API类目 > 淘宝服饰

taobao.cloth.inbound.sync (淘宝服饰平台仓入库单同步数据)

淘宝服饰平台仓入库单同步数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req InboundMainOrderTopDTO 可选 请求体
  • └ idempotent_id
  • String
  • 可选
  • 123
  • 操作幂等ID
  • └ event_type
  • String
  • 可选
  • INBOUND_IN_PROGRESS
  • 事件类型:INBOUND_IN_PROGRESS包裹已签收入库中/INBOUND_COMPLETED入库完成待上架/PUTAWAY_COMPLETED已上架
  • sub_orders
  • InboundSubOrderTopDTO []
  • 可选
  • subOrders
  • 子单列表
  • └ inbound_quantity_actual
  • Number
  • 可选
  • 8
  • 实际入库正品数量
  • └ inbound_quantity_confirmed
  • Number
  • 可选
  • 10
  • 商家确认发货数量
  • └ putaway_quantity_actual
  • Number
  • 可选
  • 8
  • 实际上架数量
  • └ inbound_quantity_defective
  • Number
  • 可选
  • 2
  • 实际入库残品数量
  • └ inbound_sub_order_id
  • String
  • 可选
  • 1
  • 子单单号
  • └ inbound_main_order_no
  • String
  • 可选
  • IN202501170001
  • 入库单单号
  • └ warehouse_code
  • String
  • 可选
  • F88_GZ001_TEST
  • 仓库编码
  • abnormal_sorting_records
  • InboundSortingRecordTopDTO []
  • 可选
  • abnormalSortingRecords
  • 异常理货记录
  • └ record_unique_key
  • String
  • 可选
  • 123
  • 记录幂等键
  • └ quantity
  • Number
  • 可选
  • 6
  • 理货数量
  • └ return_delivery_number
  • String
  • 可选
  • SF1030419570000
  • 异常货品退货快递编号
  • └ return_delivery_company_name
  • String
  • 可选
  • 顺丰
  • 异常货品寄送公司名称

响应参数

名称 类型 示例值 描述
result TResult 返回体
  • └ success
  • Boolean
  • true
  • 调用是否成功
  • └ error_message
  • String
  • 授权异常
  • 错误信息
  • └ error_code
  • String
  • 401
  • 错误码
  • └ data
  • Boolean
  • true
  • 同步是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ClothInboundSyncRequest req = new ClothInboundSyncRequest();
ClothInboundSyncRequest.InboundMainOrderTopDTO obj1 = new ClothInboundSyncRequest.InboundMainOrderTopDTO();
obj1.setIdempotentId("123");
obj1.setEventType("INBOUND_IN_PROGRESS");
List<ClothInboundSyncRequest.InboundSubOrderTopDTO> list3 = new ArrayList<ClothInboundSyncRequest.InboundSubOrderTopDTO>();
ClothInboundSyncRequest.InboundSubOrderTopDTO obj4 = new ClothInboundSyncRequest.InboundSubOrderTopDTO();
list3.add(obj4);
obj4.setInboundQuantityActual(8L);
obj4.setInboundQuantityConfirmed(10L);
obj4.setPutawayQuantityActual(8L);
obj4.setInboundQuantityDefective(2L);
obj4.setInboundSubOrderId("1");
obj1.setSubOrders(list3);
obj1.setInboundMainOrderNo("IN202501170001");
obj1.setWarehouseCode("F88_GZ001_TEST");
List<ClothInboundSyncRequest.InboundSortingRecordTopDTO> list6 = new ArrayList<ClothInboundSyncRequest.InboundSortingRecordTopDTO>();
ClothInboundSyncRequest.InboundSortingRecordTopDTO obj7 = new ClothInboundSyncRequest.InboundSortingRecordTopDTO();
list6.add(obj7);
obj7.setRecordUniqueKey("123");
obj7.setQuantity(6L);
obj7.setReturnDeliveryNumber("SF1030419570000");
obj7.setReturnDeliveryCompanyName("顺丰");
obj1.setAbnormalSortingRecords(list6);
req.setReq(obj1);
ClothInboundSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cloth_inbound_sync_response>
    <result>
        <success>true</success>
        <error_message>授权异常</error_message>
        <error_code>401</error_code>
        <data>true</data>
    </result>
</cloth_inbound_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

返回
顶部