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

cainiao.cntec.washing.event.update (服务事件上报)

洗衣工厂在在每个作业节点上传事件。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
action_time Date 必须 2019-07-02 12:00:00 事件发生的时间
action_item_detail String 可选 {} 事件信息Json格式
feature String 可选 {} 扩展信息Json格式
order_id String 必须 xxx 菜鸟订单ID
action_code String 必须 XXX 参考API文档中定义的事件编码

响应参数

名称 类型 示例值 描述
is_success Boolean false 是否成功
e_code String INVALID_PARAM 错误码
model String 134523^4351232 model
e_msg String "参数错误" 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecWashingEventUpdateRequest req = new CainiaoCntecWashingEventUpdateRequest();
req.setActionTime(StringUtils.parseDateTime("2019-07-02 12:00:00"));
req.setActionItemDetail("{}");
req.setFeature("{}");
req.setOrderId("xxx");
req.setActionCode("XXX");
CainiaoCntecWashingEventUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_cntec_washing_event_update_response>
    <is_success>false</is_success>
    <e_code>INVALID_PARAM</e_code>
    <model>134523^4351232</model>
    <e_msg>&quot;参数错误&quot;</e_msg>
</cainiao_cntec_washing_event_update_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

返回
顶部