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

cainiao.cntec.locallife.communitylife.recycleorder.settle (菜鸟末端商业化回收结算)

菜鸟末端商业化回收结算

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_type String 必须 RECYCLE_CLOTHES 业务类型
outer_settle_bill_no String 必须 123 结算单号,需要唯一
pick_up_time Date 必须 2022-01-01 00:00:00 结算时间
pick_up_weight Number 必须 123 取货重量,单位克
pick_up_person String 必须 张三 取货人
station_id Number 必须 123 驿站ID
pick_up_type String 必须 DRIVER_PASSIVELY 取货类型 驿站呼叫运力:DRIVER_PASSIVELY, 司机主动取货:DRIVER_INITIATIVE
box_no String 可选 123 箱子编码
box_name String 可选 123 箱子名称
region String 可选 xx 地区
detail_address String 可选 xx 位置

响应参数

名称 类型 示例值 描述
is_success Boolean ture 接口调用是否成功
e_code String xx 错误码
e_msg String xx 错误信息
model Boolean true 结算申请是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecLocallifeCommunitylifeRecycleorderSettleRequest req = new CainiaoCntecLocallifeCommunitylifeRecycleorderSettleRequest();
req.setBizType("RECYCLE_CLOTHES");
req.setOuterSettleBillNo("123");
req.setPickUpTime(StringUtils.parseDateTime("2022-01-01 00:00:00"));
req.setPickUpWeight(123L);
req.setPickUpPerson("张三");
req.setStationId(123L);
req.setPickUpType("DRIVER_PASSIVELY");
req.setBoxNo("123");
req.setBoxName("123");
req.setRegion("xx");
req.setDetailAddress("xx");
CainiaoCntecLocallifeCommunitylifeRecycleorderSettleResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_cntec_locallife_communitylife_recycleorder_settle_response>
    <is_success>ture</is_success>
    <e_code>xx</e_code>
    <e_msg>xx</e_msg>
    <model>true</model>
</cainiao_cntec_locallife_communitylife_recycleorder_settle_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

返回
顶部