文档中心 > API类目 > 鸟潮物流API

alibaba.tc.logistics.dms.item.entered.notify (同城履约物流_配送开放_商品入站)

同城履约物流_配送开放_商品入站

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_order_code String 必须 TO7035094414 业务单据号
biz_order_type String 必须 TAKE 业务单据类型
operator_name String 必须 张三 操作人
entered_time Date 必须 2021-10-01 10:00:00 入站时间
items EnterItem 必须 商品列表
  • └ item_id
  • String
  • 必须
  • 300000211323129144
  • 商品编码
  • └ quantity
  • BigDecimal
  • 必须
  • 3
  • 数量
  • └ abnormal_cause
  • Number
  • 可选
  • 5011
  • 异常备注

响应参数

名称 类型 示例值 描述
result LogisticsResult 结果
  • └ error_code
  • Number
  • 200
  • 返回码
  • └ error_message
  • String
  • 请求成功
  • 返回信息
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ trace_id
  • String
  • 90d3516c4c3567d04767958840e9e16f
  • 调用链唯一请求标识
  • data
  • ReturnRequirementDTO
  • 退仓作业需求
  • └ return_type
  • String
  • TOKEN
  • 退仓模式

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTcLogisticsDmsItemEnteredNotifyRequest req = new AlibabaTcLogisticsDmsItemEnteredNotifyRequest();
req.setBizOrderCode("TO7035094414");
req.setBizOrderType("TAKE");
req.setOperatorName("张三");
req.setEnteredTime(StringUtils.parseDateTime("2021-10-01 10:00:00"));
AlibabaTcLogisticsDmsItemEnteredNotifyRequest.EnterItem obj1 = new AlibabaTcLogisticsDmsItemEnteredNotifyRequest.EnterItem();
obj1.setItemId("300000211323129144");
obj1.setQuantity("3");
obj1.setAbnormalCause(5011L);
req.setItems(obj1);
AlibabaTcLogisticsDmsItemEnteredNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tc_logistics_dms_item_entered_notify_response>
    <result>
        <error_code>200</error_code>
        <error_message>请求成功</error_message>
        <success>true</success>
        <trace_id>90d3516c4c3567d04767958840e9e16f</trace_id>
        <data>
            <return_type>TOKEN</return_type>
        </data>
    </result>
</alibaba_tc_logistics_dms_item_entered_notify_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

返回
顶部