文档中心 > API类目 > 菜鸟末端商业

cainiao.cntec.recycle.event.upload (回收商上报回收旧衣服服务事件)

回收商向菜鸟回传二手回收业务履约事件。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
feature String 可选 回收商回传事件扩展信息
order_id String 必须 FO092510420478827980542 菜鸟履约单号
action_code String 必须 LOGISTICS_RECEIVE_ORDER 回收商回传事件名称
action_detail String 可选 {"companyName":"中通快递","orderReceiveTime":"20190930"} 回收商回传事件附属信息

响应参数

名称 类型 示例值 描述
result Result 无示例 接口返回model
  • └ trace_id
  • String
  • 无示例
  • trace_id
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ err_code
  • String
  • 无示例
  • 错误码
  • └ other_data
  • String
  • 无示例
  • 其他数据
  • └ model
  • String
  • 无示例
  • model
  • └ error_msg
  • String
  • "参数错误"
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecRecycleEventUploadRequest req = new CainiaoCntecRecycleEventUploadRequest();
req.setFeature("无");
req.setOrderId("FO092510420478827980542");
req.setActionCode("LOGISTICS_RECEIVE_ORDER");
req.setActionDetail("{\"companyName\":\"中通快递\",\"orderReceiveTime\":\"20190930\"}");
CainiaoCntecRecycleEventUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_cntec_recycle_event_upload_response>
    <result>
        <trace_id>无示例</trace_id>
        <success>false</success>
        <err_code>无示例</err_code>
        <other_data>无示例</other_data>
        <model>无示例</model>
        <error_msg>&quot;参数错误&quot;</error_msg>
    </result>
</cainiao_cntec_recycle_event_upload_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

返回
顶部