alibaba.mtp.supplychain.inbound.partcallback (MTP-入库单次收货回传 toMMC (多次收货))

MTP-入库单次收货回传 toMMC (多次收货)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_inbound_call_back_wms_request InboundCallBackWmsRequest 可选 入参
  • └ caller_source
  • String
  • 可选
  • xx
  • 物流类型
  • └ company_uuid
  • String
  • 可选
  • xx
  • 企业id
  • details
  • InboundCallBackDetailWmsDto []
  • 可选
  • 明细
  • └ deliver_type
  • Number
  • 可选
  • 1
  • 发货方式
  • └ feature
  • String
  • 可选
  • {}
  • 拓展字段
  • └ id
  • Number
  • 可选
  • 1
  • 行号
  • └ inbound_order_no
  • String
  • 可选
  • xx
  • 入库单号
  • inventory_dtos
  • WmsInventoryDto []
  • 可选
  • 逻辑库存类型
  • └ inventory_type
  • String
  • 可选
  • xx
  • 库存类型
  • └ quantity
  • String
  • 可选
  • xx
  • 数量
  • └ out_sku_code
  • String
  • 可选
  • xx
  • 外部商品编码
  • └ remark
  • String
  • 可选
  • xx
  • 备注
  • └ sku_code
  • String
  • 可选
  • xx
  • 内部商品编码
  • └ spec
  • String
  • 可选
  • xx
  • 箱规
  • └ supplier_id
  • String
  • 可选
  • xx
  • 二级供应商id
  • └ unit
  • String
  • 可选
  • xx
  • 单位
  • work_dtos
  • WmsWorkDto []
  • 可选
  • 批次
  • └ batch_id
  • String
  • 可选
  • xx
  • 批次号
  • └ expire_date
  • String
  • 可选
  • xx
  • 过期日期
  • └ feature
  • String
  • 可选
  • {}
  • 拓展字段
  • └ product_batch
  • String
  • 可选
  • xx
  • 生产批次
  • └ product_date
  • String
  • 可选
  • xx
  • 生产日期
  • └ quantity
  • String
  • 可选
  • xx
  • 批次数量
  • └ feature
  • String
  • 可选
  • {}
  • 拓展字段
  • └ gmt_inbound
  • String
  • 可选
  • xx
  • 入库时间
  • └ inbound_order_no
  • String
  • 可选
  • xx
  • 入库单号
  • └ inbound_order_type
  • Number
  • 可选
  • 1
  • 入库单类型
  • └ merchant_code
  • String
  • 可选
  • xx
  • 商家编码
  • └ out_trace_id
  • String
  • 可选
  • xx
  • 外部traceId
  • └ outer_order_no
  • String
  • 可选
  • xx
  • 外部订单编号
  • └ owner_user_id
  • String
  • 可选
  • xx
  • 货主
  • └ remark
  • String
  • 可选
  • xx
  • 备注
  • └ source
  • String
  • 可选
  • xx
  • 调用来源
  • └ sub_order_list
  • String []
  • 可选
  • ["",""]
  • 子订单列表
  • └ supplier_id
  • String
  • 可选
  • xx
  • 二级供应商id
  • └ warehouse_code
  • String
  • 可选
  • xx
  • 中心仓编码

响应参数

名称 类型 示例值 描述
result ResultDto 异步获取历史数据接口返回结果
  • content
  • CallbackResDto
  • 返回对象
  • └ order_no
  • String
  • 单据号
  • └ source_no
  • String
  • 来源单号
  • └ error_code
  • String
  • 错误码
  • └ error_message
  • String
  • 错误码
  • └ success
  • Boolean
  • true
  • 执行结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMtpSupplychainInboundPartcallbackRequest req = new AlibabaMtpSupplychainInboundPartcallbackRequest();
AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackWmsRequest obj1 = new AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackWmsRequest();
obj1.setCallerSource("xx");
obj1.setCompanyUuid("xx");
List<AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDto> list3 = new ArrayList<AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDto>();
AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDto obj4 = new AlibabaMtpSupplychainInboundPartcallbackRequest.InboundCallBackDetailWmsDto();
list3.add(obj4);
obj4.setDeliverType(1L);
obj4.setFeature("{}");
obj4.setId(1L);
obj4.setInboundOrderNo("xx");
List<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDto> list7 = new ArrayList<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDto>();
AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDto obj8 = new AlibabaMtpSupplychainInboundPartcallbackRequest.WmsInventoryDto();
list7.add(obj8);
obj8.setInventoryType("xx");
obj8.setQuantity("xx");
list5.setInventoryDtos(list7);
obj4.setOutSkuCode("xx");
obj4.setRemark("xx");
obj4.setSkuCode("xx");
obj4.setSpec("xx");
obj4.setSupplierId("xx");
obj4.setUnit("xx");
List<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDto> list11 = new ArrayList<AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDto>();
AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDto obj12 = new AlibabaMtpSupplychainInboundPartcallbackRequest.WmsWorkDto();
list11.add(obj12);
obj12.setBatchId("xx");
obj12.setExpireDate("xx");
obj12.setFeature("{}");
obj12.setProductBatch("xx");
obj12.setProductDate("xx");
obj12.setQuantity("xx");
list9.setWorkDtos(list11);
obj1.setDetails(list3);
obj1.setFeature("{}");
obj1.setGmtInbound("xx");
obj1.setInboundOrderNo("xx");
obj1.setInboundOrderType(1L);
obj1.setMerchantCode("xx");
obj1.setOutTraceId("xx");
obj1.setOuterOrderNo("xx");
obj1.setOwnerUserId("xx");
obj1.setRemark("xx");
obj1.setSource("xx");
obj1.setSubOrderList(""",""");
obj1.setSupplierId("xx");
obj1.setWarehouseCode("xx");
req.setParamInboundCallBackWmsRequest(obj1);
AlibabaMtpSupplychainInboundPartcallbackResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mtp_supplychain_inbound_partcallback_response>
    <result>
        <content>
            <order_no></order_no>
            <source_no></source_no>
        </content>
        <error_code></error_code>
        <error_message></error_message>
        <success>true</success>
    </result>
</alibaba_mtp_supplychain_inbound_partcallback_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

返回
顶部