文档中心 > API类目 > 淘天物流API

taobao.logistics.express.abnormal.report (配服务商异常报备)

配服务商异常报备

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
abnormal_report_request AbnormalReportReqDto 必须 参数信息
  • └ service_type
  • String
  • 必须
  • 10
  • 服务类型(1-送货上门;2-放指定驿站;3-预售极速达;10-官方取退-上门取退;11-官方取退-驿站自寄)
  • └ abnormal_remark
  • String
  • 可选
  • 天气原因
  • 服务商异常描述
  • └ supplier_id
  • String
  • 必须
  • 100000001
  • 淘天物流服务商id
  • └ abnormal_type
  • String
  • 必须
  • 10001
  • 异常类型:10001-核销异常;1003-派件异常;
  • picture_info_list
  • PictureInfoReqDto []
  • 可选
  • 图片列表
  • 图片信息
  • └ pic_url
  • String
  • 可选
  • http://ssss.xxxx.com/xxx.jpg
  • 图片访问url
  • └ pic_upload_time
  • String
  • 可选
  • 2024-03-28 16:38:11
  • 图片上传时间
  • └ operate_time
  • String
  • 必须
  • 2024-03-28 16:38:11
  • 对应状态的操作时间
  • └ abnormal_result
  • String
  • 可选
  • 1001
  • 送货上门场景必传,异常处理结果: 1001-无法取件;1002-派件停滞;1003-无法送货上门
  • └ abnormal_reason
  • String
  • 必须
  • 1001
  • 异常原因: 1001-线下改约;1002-联系不上消费者;
  • └ abnormal_node
  • String
  • 可选
  • TMS_DELIVERING
  • 异常发生的业务节点:(TMS_COLLECT-揽收;TMS_DELIVERING-派送中;TMS_SIGN-签收,TMS_CHECK_SHIPPING_CODE_PASS-核销)
  • └ abnormal_order_id
  • String
  • 必须
  • 100000001
  • 服务商异常提报id,用于去重,重复请求不会被处理 如有异常单id提供异常单id,如无则提供requestid
  • └ mail_no
  • String
  • 可选
  • 773277523041406
  • 包裹运单号,核销节点运单号可为空
  • └ extend_props
  • String
  • 可选
  • {}
  • 扩展属性
  • phone_call_info_list
  • PhoneCallInfoReqDto []
  • 可选
  • 电联列表
  • 电联信息
  • └ connect_time_length
  • Number
  • 可选
  • 10
  • 接通时长, 单位s
  • └ phone_call_type
  • String
  • 可选
  • NORMAL
  • 电联属性,phoneCallInfo有值时,必需。SMART 智能云呼; NORMAL, 普通
  • └ hang_up_type
  • String
  • 可选
  • CUSTOMER_HAND_UP
  • 挂断状态,phoneCallInfo有值时,必需。CUSTOMER_HAND_UP,消费者挂断;SENDER_HANG_UP,小件员挂断
  • └ phone_call_result_remark
  • String
  • 可选
  • 放门卫处,放楼下便利店
  • 消费者电联需求描述
  • └ phone_call_operator_phone
  • String
  • 可选
  • 13600000000
  • 电联人员联系方式(小件员/官方号码)
  • └ phone_call_consumer_phone
  • String
  • 可选
  • 13600000000
  • 消费者联系方式
  • └ phone_call_operator_name
  • String
  • 可选
  • 张三
  • 电联人员名称(小件员)
  • └ phone_chat_url
  • String
  • 可选
  • http://ssss.xxxx.com/xxx.mp3
  • 电联语音文件,用于客诉场景定责使用
  • └ phone_call_demand_change_time
  • String
  • 可选
  • 2024-03-28 16:38:11
  • 电联用户后,用户确认需要进行改派时,操作改派的时间
  • └ connect_time
  • String
  • 可选
  • 2024-03-28 16:38:11
  • 接通时间
  • └ connection_status
  • String
  • 可选
  • CONNECTED
  • 通话状态,phoneCallInfo有值时,必需。NOT _CONNECT, 未拨通;CONNECTED,已接通; NOBODY_ANSWER,无人接听
  • └ call_time
  • String
  • 可选
  • 2024-03-28 16:38:11
  • 拨打时间。phoneCallInfo有值时,必需
  • └ hang_up_time
  • String
  • 可选
  • 2024-03-28 16:38:11
  • 挂断时间
  • └ related_biz_code
  • String
  • 可选
  • LSO174Z0029753003_1713246414922
  • 关联的履行业务单code
  • └ delivery_code
  • String
  • 必须
  • STO
  • 服务商配资源唯一编码:yzsm_cn_1,SF,STO,YTO,BCYC-001
  • operator
  • OperatorDTO
  • 可选
  • 提报人信息
  • └ name
  • String
  • 可选
  • 张三
  • 提报人姓名
  • └ mobile
  • String
  • 可选
  • 18044455999
  • 提报人手机号
  • abnormal_sites
  • TmsSitesDTO []
  • 可选
  • 异常站点列表
  • 异常站点列表
  • └ site_type
  • String
  • 可选
  • 1
  • 站点类型
  • └ site_code
  • String
  • 可选
  • 234
  • 站点编码
  • └ site_name
  • String
  • 可选
  • 杭州站点
  • 站点名称

响应参数

名称 类型 示例值 描述
spi_result SpiResult 返回对象
  • abnormal_report_res_dto
  • AbnormalReportResDto
  • 返回子对象
  • └ order_code
  • String
  • MFA000000012001
  • 履行异常单号
  • └ related_biz_code
  • String
  • 975732022081832762
  • relatedBizCode
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ retry
  • Boolean
  • true
  • 是否重试
  • └ error_code
  • String
  • CREATE_NOT_EXIST
  • 错误code
  • └ error_message
  • String
  • 创建错误
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsExpressAbnormalReportRequest req = new LogisticsExpressAbnormalReportRequest();
LogisticsExpressAbnormalReportRequest.AbnormalReportReqDto obj1 = new LogisticsExpressAbnormalReportRequest.AbnormalReportReqDto();
obj1.setServiceType("10");
obj1.setAbnormalRemark("天气原因");
obj1.setSupplierId("100000001");
obj1.setAbnormalType("10001");
List<LogisticsExpressAbnormalReportRequest.PictureInfoReqDto> list3 = new ArrayList<LogisticsExpressAbnormalReportRequest.PictureInfoReqDto>();
LogisticsExpressAbnormalReportRequest.PictureInfoReqDto obj4 = new LogisticsExpressAbnormalReportRequest.PictureInfoReqDto();
list3.add(obj4);
obj4.setPicUrl("http://ssss.xxxx.com/xxx.jpg");
obj4.setPicUploadTime("2024-03-28 16:38:11");
obj1.setPictureInfoList(list3);
obj1.setOperateTime("2024-03-28 16:38:11");
obj1.setAbnormalResult("1001");
obj1.setAbnormalReason("1001");
obj1.setAbnormalNode("TMS_DELIVERING");
obj1.setAbnormalOrderId("100000001");
obj1.setMailNo("773277523041406");
obj1.setExtendProps("{}");
List<LogisticsExpressAbnormalReportRequest.PhoneCallInfoReqDto> list6 = new ArrayList<LogisticsExpressAbnormalReportRequest.PhoneCallInfoReqDto>();
LogisticsExpressAbnormalReportRequest.PhoneCallInfoReqDto obj7 = new LogisticsExpressAbnormalReportRequest.PhoneCallInfoReqDto();
list6.add(obj7);
obj7.setConnectTimeLength(10L);
obj7.setPhoneCallType("NORMAL");
obj7.setHangUpType("CUSTOMER_HAND_UP");
obj7.setPhoneCallResultRemark("放门卫处,放楼下便利店");
obj7.setPhoneCallOperatorPhone("13600000000");
obj7.setPhoneCallConsumerPhone("13600000000");
obj7.setPhoneCallOperatorName("张三");
obj7.setPhoneChatUrl("http://ssss.xxxx.com/xxx.mp3");
obj7.setPhoneCallDemandChangeTime("2024-03-28 16:38:11");
obj7.setConnectTime("2024-03-28 16:38:11");
obj7.setConnectionStatus("CONNECTED");
obj7.setCallTime("2024-03-28 16:38:11");
obj7.setHangUpTime("2024-03-28 16:38:11");
obj1.setPhoneCallInfoList(list6);
obj1.setRelatedBizCode("LSO174Z0029753003_1713246414922");
obj1.setDeliveryCode("STO");
LogisticsExpressAbnormalReportRequest.OperatorDTO obj8 = new LogisticsExpressAbnormalReportRequest.OperatorDTO();
obj8.setName("张三");
obj8.setMobile("18044455999");
obj1.setOperator(obj8);
List<LogisticsExpressAbnormalReportRequest.TmsSitesDTO> list10 = new ArrayList<LogisticsExpressAbnormalReportRequest.TmsSitesDTO>();
LogisticsExpressAbnormalReportRequest.TmsSitesDTO obj11 = new LogisticsExpressAbnormalReportRequest.TmsSitesDTO();
list10.add(obj11);
obj11.setSiteType("1");
obj11.setSiteCode("234");
obj11.setSiteName("杭州站点");
obj1.setAbnormalSites(list10);
req.setAbnormalReportRequest(obj1);
LogisticsExpressAbnormalReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<logistics_express_abnormal_report_response>
    <spi_result>
        <abnormal_report_res_dto>
            <order_code>MFA000000012001</order_code>
            <related_biz_code>975732022081832762</related_biz_code>
        </abnormal_report_res_dto>
        <success>true</success>
        <retry>true</retry>
        <error_code>CREATE_NOT_EXIST</error_code>
        <error_message>创建错误</error_message>
    </spi_result>
</logistics_express_abnormal_report_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

返回
顶部