文档中心 > API类目 > 服务平台API

tmall.car.lease.consume (汽车租赁核销)

租赁公司回传信息,核销

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cosume_code_req_d_t_o CosumeCodeReqDto 可选 核销请求
  • └ biz_id
  • String
  • 可选
  • 1321312131
  • 业务id
  • └ biz_type
  • String
  • 必须
  • car_lease
  • 业务类型,整车租赁传入:car_lease
  • └ car_no
  • String
  • 必须
  • 浙A8888
  • 车牌号
  • └ code
  • String
  • 必须
  • 1232132333
  • 核销码
  • └ identity_no
  • String
  • 必须
  • 1312321323
  • 身份证
  • └ store_id
  • Number
  • 必须
  • 12313213
  • 门店id
  • └ store_name
  • String
  • 必须
  • 某某门店
  • 门店名字
  • └ vin
  • String
  • 必须
  • VFSFSFFDSF
  • 车架号

响应参数

名称 类型 示例值 描述
result Result {success:true} 结果集合
  • └ cost_time
  • Number
  • 1231313
  • 耗时
  • └ error_code
  • Number
  • 501
  • 错误吗
  • └ error_message
  • String
  • 服务端异常
  • 错误提示
  • └ gmt_current_time
  • Number
  • 1313123
  • 当前时间
  • └ object
  • Boolean
  • false
  • 无需关心了
  • └ success
  • Boolean
  • false
  • 成功与否

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallCarLeaseConsumeRequest req = new TmallCarLeaseConsumeRequest();
TmallCarLeaseConsumeRequest.CosumeCodeReqDto obj1 = new TmallCarLeaseConsumeRequest.CosumeCodeReqDto();
obj1.setBizId("1321312131");
obj1.setBizType("car_lease");
obj1.setCarNo("浙A8888");
obj1.setCode("1232132333");
obj1.setIdentityNo("1312321323");
obj1.setStoreId(12313213L);
obj1.setStoreName("某某门店");
obj1.setVin("VFSFSFFDSF");
req.setCosumeCodeReqDTO(obj1);
TmallCarLeaseConsumeResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_car_lease_consume_response>
    <result>
        <cost_time>1231313</cost_time>
        <error_code>501</error_code>
        <error_message>服务端异常</error_message>
        <gmt_current_time>1313123</gmt_current_time>
        <object>false</object>
        <success>false</success>
    </result>
</tmall_car_lease_consume_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

返回
顶部