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

cainiao.cntec.recycle.order.create (创建履约单(回收商调用))

创建履约单(回收商调用)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
appointment_time String 必须 20240717 预约时间
biz_code String 必须 RECYCLE_CLOTHES 业务类型
station_id Number 必须 399941 驿站id

响应参数

名称 类型 示例值 描述
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);
CainiaoCntecRecycleOrderCreateRequest req = new CainiaoCntecRecycleOrderCreateRequest();
req.setAppointmentTime("20240717");
req.setBizCode("RECYCLE_CLOTHES");
req.setStationId(399941L);
CainiaoCntecRecycleOrderCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部