alibaba.mtp.supplychain.diff.callback (MTP-RT调用差异回传接口)

MTP-RT调用差异回传接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
diff_callback_update_param DiffCallbackUpdateParam 可选 入参
  • └ order_type
  • String
  • 可选
  • xx
  • 单据类型
  • └ outbound_order_no
  • String
  • 可选
  • xx
  • 退供出货单
  • └ out_trace_id
  • String
  • 可选
  • xx
  • 外部traceId
  • └ merchant_code
  • String
  • 可选
  • xx
  • 商家编码
  • detail_request_list
  • DiffCallbackUpdateDetailParam []
  • 可选
  • xx
  • 明细
  • work_d_t_o_s
  • WmsWorkDTO []
  • 可选
  • xx
  • xxx
  • └ quantity
  • String
  • 可选
  • xx
  • 差异数量
  • └ feature
  • String
  • 可选
  • {}
  • 拓展字段
  • └ expire_date
  • String
  • 可选
  • xx
  • 过期日期
  • └ batch_id
  • String
  • 可选
  • xx
  • 批量id
  • └ product_batch
  • String
  • 可选
  • xx
  • 生产批量号
  • └ product_date
  • String
  • 可选
  • xx
  • 生产日期
  • inventory_d_t_o_s
  • WmsInventoryDTO []
  • 可选
  • xx
  • xxx
  • └ inventory_type
  • String
  • 可选
  • xx
  • 业务库存类型
  • └ quantity
  • String
  • 可选
  • xx
  • 差异数量
  • └ feature
  • String
  • 可选
  • {}
  • 拓展字段
  • └ sku_code
  • String
  • 可选
  • xx
  • 商品编码
  • └ supplier_code
  • String
  • 可选
  • xx
  • 商家编码
  • └ source
  • String
  • 可选
  • xx
  • 调用来源
  • └ outer_order_code
  • String
  • 可选
  • xx
  • 外部订单编码
  • └ warehouse_code
  • String
  • 可选
  • xx
  • 仓编码

响应参数

名称 类型 示例值 描述
result ResultDTO 返回
  • └ success
  • Boolean
  • true
  • 成功
  • └ error_message
  • String
  • xx
  • 错误信息
  • └ error_code
  • String
  • xx
  • 错误码
  • └ content
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMtpSupplychainDiffCallbackRequest req = new AlibabaMtpSupplychainDiffCallbackRequest();
AlibabaMtpSupplychainDiffCallbackRequest.DiffCallbackUpdateParam obj1 = new AlibabaMtpSupplychainDiffCallbackRequest.DiffCallbackUpdateParam();
obj1.setOrderType("xx");
obj1.setOutboundOrderNo("xx");
obj1.setOutTraceId("xx");
obj1.setMerchantCode("xx");
List<AlibabaMtpSupplychainDiffCallbackRequest.DiffCallbackUpdateDetailParam> list3 = new ArrayList<AlibabaMtpSupplychainDiffCallbackRequest.DiffCallbackUpdateDetailParam>();
AlibabaMtpSupplychainDiffCallbackRequest.DiffCallbackUpdateDetailParam obj4 = new AlibabaMtpSupplychainDiffCallbackRequest.DiffCallbackUpdateDetailParam();
list3.add(obj4);
List<AlibabaMtpSupplychainDiffCallbackRequest.WmsWorkDTO> list7 = new ArrayList<AlibabaMtpSupplychainDiffCallbackRequest.WmsWorkDTO>();
AlibabaMtpSupplychainDiffCallbackRequest.WmsWorkDTO obj8 = new AlibabaMtpSupplychainDiffCallbackRequest.WmsWorkDTO();
list7.add(obj8);
obj8.setQuantity("xx");
obj8.setFeature("{}");
obj8.setExpireDate("xx");
obj8.setBatchId("xx");
obj8.setProductBatch("xx");
obj8.setProductDate("xx");
list5.setWorkDTOS(list7);
List<AlibabaMtpSupplychainDiffCallbackRequest.WmsInventoryDTO> list11 = new ArrayList<AlibabaMtpSupplychainDiffCallbackRequest.WmsInventoryDTO>();
AlibabaMtpSupplychainDiffCallbackRequest.WmsInventoryDTO obj12 = new AlibabaMtpSupplychainDiffCallbackRequest.WmsInventoryDTO();
list11.add(obj12);
obj12.setInventoryType("xx");
obj12.setQuantity("xx");
obj12.setFeature("{}");
list9.setInventoryDTOS(list11);
obj4.setSkuCode("xx");
obj4.setSupplierCode("xx");
obj1.setDetailRequestList(list3);
obj1.setSource("xx");
obj1.setOuterOrderCode("xx");
obj1.setWarehouseCode("xx");
req.setDiffCallbackUpdateParam(obj1);
AlibabaMtpSupplychainDiffCallbackResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mtp_supplychain_diff_callback_response>
    <result>
        <success>true</success>
        <error_message>xx</error_message>
        <error_code>xx</error_code>
        <content>true</content>
    </result>
</alibaba_mtp_supplychain_diff_callback_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

返回
顶部