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

cainiao.cntec.locallife.communitylife.cancelrecycleorder (工厂取消订单)

订单状态推送

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
out_order_id String 必须 xxx 外部订单id
user_id String 必须 xxx 用户id
user_type String 必须 xxx 用户id类型
biz_type String 必须 xxx 业务类型
feature String 可选 {} 扩展字段

响应参数

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

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecLocallifeCommunitylifeCancelrecycleorderRequest req = new CainiaoCntecLocallifeCommunitylifeCancelrecycleorderRequest();
req.setOutOrderId("xxx");
req.setUserId("xxx");
req.setUserType("xxx");
req.setBizType("xxx");
req.setFeature("{}");
CainiaoCntecLocallifeCommunitylifeCancelrecycleorderResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部