文档中心 > API类目 > 飞猪-综合交通api

alitrip.rentcar.commodity.store.vehicle.change.notify (商品库门店车辆信息变更推送)

车辆信息变更推送;每当车辆信息变更时推送变更信息到飞猪,飞猪将同步更新对应内容。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
store_vehicle_info_list StoreVehicleSearchRspInfo 必须 门店车辆信息列表
  • └ vehicle_model_code
  • String
  • 必须
  • 1
  • 必传,供应商车型组Code
  • └ current_mileage
  • Number
  • 必须
  • 100
  • 必传,车辆当前里程数,整数,单位km
  • inspection_certificate
  • InspectionCertificate
  • 必须
  • 校验合格证
  • └ inspection_expiration_date
  • String
  • 必须
  • 2028-01-01
  • 年检到期日期,格式yyyy-MM-dd
  • vehicle_registration_certificate
  • VehicleRegistrationCertificate
  • 必须
  • 行驶证信息
  • └ registration_number
  • String
  • 必须
  • 1677
  • 车牌号
  • └ engine_number
  • String
  • 必须
  • 12341
  • 发动机号
  • └ registration_date
  • String
  • 必须
  • 2023-03-03
  • 行驶证注册日期,格式yyyy-MM-dd
  • └ ascription_city
  • String
  • 必须
  • A
  • 各地级市字母代码
  • └ vin
  • String
  • 必须
  • 34324234343242322
  • 车架号,车辆识别号
  • └ ascription_country
  • String
  • 必须
  • 车牌号省的简称
  • └ diff_store
  • Boolean
  • 必须
  • true
  • 必传,是否支持异地还车,true-启用,false-禁用
  • └ store_code
  • String
  • 必须
  • 1231
  • 必传,供应商门店Code
  • insurance_info_list
  • InsuranceInfo []
  • 必须
  • 见列表内容
  • 保险单信息
  • └ insurance_number
  • String
  • 必须
  • 100000000000002
  • 保险单号
  • └ insurance_expiration_date
  • String
  • 必须
  • 2029-03-03
  • 保险到期日期,格式yyyy-MM-dd
  • └ insurance_type
  • Number
  • 必须
  • 1
  • 保险单类型,1-商业保险单,2-强险保险单
  • └ insurance_identity_card
  • String
  • 必须
  • 123123182321312931
  • 投保使用证件号
  • └ vehicle_code
  • String
  • 必须
  • 412412
  • 必传,供应商车辆Code
  • └ status
  • Number
  • 必须
  • 1
  • 必传,车辆状态,1-上架,2-下架
extra Json 可选 {} 额外信息

响应参数

名称 类型 示例值 描述
message_code Number 0 错误码
message String 错误信息 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripRentcarCommodityStoreVehicleChangeNotifyRequest req = new AlitripRentcarCommodityStoreVehicleChangeNotifyRequest();
AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.StoreVehicleSearchRspInfo obj1 = new AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.StoreVehicleSearchRspInfo();
obj1.setVehicleModelCode("1");
obj1.setCurrentMileage(100L);
AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.InspectionCertificate obj2 = new AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.InspectionCertificate();
obj2.setInspectionExpirationDate("2028-01-01");
obj1.setInspectionCertificate(obj2);
AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.VehicleRegistrationCertificate obj3 = new AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.VehicleRegistrationCertificate();
obj3.setRegistrationNumber("1677");
obj3.setEngineNumber("12341");
obj3.setRegistrationDate("2023-03-03");
obj3.setAscriptionCity("A");
obj3.setVin("34324234343242322");
obj3.setAscriptionCountry("粤");
obj1.setVehicleRegistrationCertificate(obj3);
obj1.setDiffStore(true);
obj1.setStoreCode("1231");
List<AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.InsuranceInfo> list5 = new ArrayList<AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.InsuranceInfo>();
AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.InsuranceInfo obj6 = new AlitripRentcarCommodityStoreVehicleChangeNotifyRequest.InsuranceInfo();
list5.add(obj6);
obj6.setInsuranceNumber("100000000000002");
obj6.setInsuranceExpirationDate("2029-03-03");
obj6.setInsuranceType(1L);
obj6.setInsuranceIdentityCard("123123182321312931");
obj1.setInsuranceInfoList(list5);
obj1.setVehicleCode("412412");
obj1.setStatus(1L);
req.setStoreVehicleInfoList(obj1);
req.setExtraString("{}");
AlitripRentcarCommodityStoreVehicleChangeNotifyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_rentcar_commodity_store_vehicle_change_notify_response>
    <message_code>0</message_code>
    <message>错误信息</message>
</alitrip_rentcar_commodity_store_vehicle_change_notify_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

返回
顶部