感谢您的反馈!
请求服务商提供的租车报价列表搜索服务
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| traceId | String | 必须 | 1223 | 本次请求的标识 | |
| isPressureTest | Boolean | 可选 | false |
|
是否压测流量,默认false |
| channelId | String | 可选 | 20010 | 渠道id | |
| userId | Number | 可选 | 1212 | 用户id | |
| userNick | String | 可选 | 用户昵称 | 用户昵称 | |
| channelName | String | 可选 | 赫兹 | 渠道名称 | |
| carUseTime | String | 必须 | 2017-05-22 11:11:11 | 取车时间 | |
| carReturnTime | String | 必须 | 2017-05-22 11:11:11 | 还车时间 | |
| pickUpInfo | RentcarAddressInfo | 可选 | 取车地址信息 | ||
|
|||||
| returnInfo | RentcarAddressInfo | 可选 | 还车地址信息 | ||
|
|||||
| itemId | Number | 可选 | 123456 | 商品ID | |
| useTestData | Boolean | 可选 | true | 是否调用服务商测试环境数据。true:调用服务商测试环境,false:调用服务商线上正式环境 | |
| creditSupport | Number | 可选 | 0 | 是否信用免押(国内租车专用),0-不限制,1-免车辆押金,2-免违章押金,3-均支持,4-不支持 | |
| cardValue | String | 可选 | true | 宝贝值 eg:ufennnvd%73@v | |
| cardTag | String | 可选 | 2 | 次卡标记(1:次卡 2:天卡 3:随心租卡) | |
| ext | String | 可选 | JSON扩展字段 | 扩展属性 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| providerId | String | 20010 | 服务商id |
| success | Boolean | true | 接口调用是否成功 |
| rentCarPrices | RentCarPrice [] | 车型报价列表。每个报价中会有车型id,品牌id,门店id。具体的车型、品牌、门店请从下列列表中通过id查询 | |
|
|||
| rentSuppliers | RentSupplier [] | 供应商(品牌商)信息 | |
|
|||
| rentCars | RentCar [] | 车型信息 | |
|
|||
| rentStores | RentStore [] | 门店信息 | |
|
|||
| errorInfo | ErrorInfo | 错误信息 | |
|
QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
AlitripRentcarPricesQueryRequest req = new AlitripRentcarPricesQueryRequest();
req.setTraceId("1223");
req.setIsPressureTest(false);
req.setChannelId("20010");
req.setUserId(1212L);
req.setUserNick("用户昵称");
req.setChannelName("赫兹");
req.setCarUseTime("2017-05-22 11:11:11");
req.setCarReturnTime("2017-05-22 11:11:11");
AlitripRentcarPricesQueryRequest.RentcarAddressInfo obj1 = new AlitripRentcarPricesQueryRequest.RentcarAddressInfo();
obj1.setName("位置名称");
obj1.setLocation("123.11,11.11");
obj1.setCityEn("New York");
obj1.setCountryEn("American");
obj1.setCountryCode("USA");
obj1.setAirportCode("LAX");
obj1.setStateCode("aa");
obj1.setContinentId("11");
obj1.setStoreCode("11111");
obj1.setCityId("111000");
obj1.setCity("北京");
obj1.setIsServiceOnDoor(true);
obj1.setServiceOnDoorType(1-免费上门取车 2-收费上门取车 3-自行前往门店取车4-店员免费接您至门店取车L);
req.setPickUpInfo(obj1);
AlitripRentcarPricesQueryRequest.RentcarAddressInfo obj2 = new AlitripRentcarPricesQueryRequest.RentcarAddressInfo();
obj2.setName("位置名称");
obj2.setLocation("123.11,11.11");
obj2.setCityEn("New York");
obj2.setCountryEn("American");
obj2.setCountryCode("USA");
obj2.setAirportCode("LAX");
obj2.setStateCode("aa");
obj2.setContinentId("11");
obj2.setStoreCode("12345");
obj2.setIsServiceOnDoor(true);
obj2.setCityId("111000");
obj2.setCity("111000");
obj2.setServiceOnDoorType(1-免费上门还车 2-收费上门还车 3-自行前往门店还车L);
req.setReturnInfo(obj2);
req.setItemId(123456L);
req.setUseTestData(true);
req.setCreditSupport(0L);
req.setCardValue("true");
req.setCardTag("2");
req.setExt("JSON扩展字段");
AlitripRentcarPricesQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
<providerId>20010</providerId>
<success>true</success>
<rentCarPrices>
<rent_car_price>
<carId>1111</carId>
<outCarId>out123</outCarId>
<itemId>12335</itemId>
<stdVehModId>1022</stdVehModId>
<supplierId>1111</supplierId>
<pickUpStoreId>1111</pickUpStoreId>
<returnStoreId>1111</returnStoreId>
<isSpecifyCar>false</isSpecifyCar>
<priceCombos>
<rent_car_price_combo>
<packageName>套餐名称</packageName>
<packageNameExt>不含油、不含GPS</packageNameExt>
<packageDesc>套餐描述</packageDesc>
<insuranceInfoRequire>false</insuranceInfoRequire>
<feeIncludes>
<rent_price_fee_item>
<code>code</code>
<name>名称</name>
<desc>详细说明</desc>
</rent_price_fee_item>
</feeIncludes>
<feeExcludes>
<rent_price_fee_item>
<code>code</code>
<name>名称</name>
<desc>详细说明</desc>
</rent_price_fee_item>
</feeExcludes>
<priceItems>
<rent_car_price_item>
<priceId>ref1234</priceId>
<priceType>1</priceType>
<rateQualifier>ABC</rateQualifier>
<tourNumber>IT1005560LXD</tourNumber>
<totalAmountCNY>111</totalAmountCNY>
<totalAmountLocal>111</totalAmountLocal>
<unitAmountCNY>11</unitAmountCNY>
<unitAmountLocal>11</unitAmountLocal>
<payMode>1</payMode>
<onlinePaymentCNY>111</onlinePaymentCNY>
<offlinePaymentCNY>111</offlinePaymentCNY>
<onlinePaymentLocal>11</onlinePaymentLocal>
<offlinePaymentLocal>11</offlinePaymentLocal>
<currencyLocal>USD</currencyLocal>
</rent_car_price_item>
</priceItems>
</rent_car_price_combo>
</priceCombos>
<cancelStrategy>
<hour>3</hour>
<desc>文本描述 取消政策</desc>
<type>102</type>
</cancelStrategy>
<changeStrategy>修改政策</changeStrategy>
<mileLimit>21</mileLimit>
<fuleStrategy>0</fuleStrategy>
<bookLimit>
<bookAdvanceHour>3</bookAdvanceHour>
<unSupportAge>0-17</unSupportAge>
<extraPayAge>17-20</extraPayAge>
<unLimitAge>21-40</unLimitAge>
</bookLimit>
<oneWayFeeRMB>123.11</oneWayFeeRMB>
<oneWayFeeLocal>111</oneWayFeeLocal>
<currencyLocal>USD</currencyLocal>
<carLicense>1</carLicense>
<carLicenseDesc>京牌</carLicenseDesc>
<extInfos>sellerId%3A%3B1234%3B%3AsellerNick%3A%3B测试商家昵称</extInfos>
<pickUpStoreCode>111</pickUpStoreCode>
<returnStoreCode>111</returnStoreCode>
<basicRentFee>187.00</basicRentFee>
<totalRentFee>1111.00</totalRentFee>
<outerPriceId>123456</outerPriceId>
<tags>“快速取还, 车况佳, 满油取还”</tags>
<thirdExtInfos>第三方扩展信息</thirdExtInfos>
<poundageFee>15.00</poundageFee>
<basicServiceFee>37.04</basicServiceFee>
<rentFee>235.00</rentFee>
<onDoorFee>15.00</onDoorFee>
<hourFee>38.09</hourFee>
<addedServiceList>
<added_service>
<sid>21</sid>
<serviceType>1</serviceType>
<isOneWayFee>1</isOneWayFee>
<serviceCode>111</serviceCode>
<serviceName>车损免赔</serviceName>
<serviceDesc>车损免赔</serviceDesc>
<price>10.00</price>
<amount>100.00</amount>
<quantity>2</quantity>
<isFixed>true</isFixed>
</added_service>
</addedServiceList>
</rent_car_price>
</rentCarPrices>
<rentSuppliers>
<rent_supplier>
<id>hertz</id>
<name>赫兹</name>
<code>ZE</code>
<nameEn>hertz</nameEn>
<groupName>所属集团名</groupName>
<tags>xx,zz</tags>
<brandDesc>品牌介绍</brandDesc>
<pic>http://xxx.com</pic>
</rent_supplier>
</rentSuppliers>
<rentCars>
<rent_car>
<id>1121</id>
<name>奥迪A6</name>
<nameEn>A6</nameEn>
<sipp>CEAR</sipp>
<type>1</type>
<pic>http://xxx.com,http://xxx.com</pic>
<similarCar>奥迪A6</similarCar>
<transmission>2</transmission>
<fuelType>1</fuelType>
<seatNum>4</seatNum>
<packageDesc>2大2小</packageDesc>
<doorNum>2</doorNum>
<hasAirConditioner>true</hasAirConditioner>
<carDesc>车辆描述</carDesc>
<tags>xx,ff,aa,倒车影像</tags>
<autoBrand>雪佛兰</autoBrand>
<autoBrandEn>CHEVROLET</autoBrandEn>
<creditSupport>0</creditSupport>
<carLicense>1</carLicense>
<carLicenseDesc>京牌</carLicenseDesc>
<outputType>1</outputType>
<outputVolumn>1.6</outputVolumn>
<modelYear>2017</modelYear>
<carName>45 TFSI allroad quattro 时尚型</carName>
<carRiage>2</carRiage>
</rent_car>
</rentCars>
<rentStores>
<rent_store>
<rentStoreBase>
<id>2121</id>
<supplierId>1212</supplierId>
<name>门店名称</name>
<code>LAXT</code>
<longitude>111.111</longitude>
<latitude>111.111</latitude>
<coordinateSource>1</coordinateSource>
<continentName>所在洲名称</continentName>
<countryName>美国</countryName>
<cityName>纽约</cityName>
<address>详细地址</address>
<isAirport>true</isAirport>
<airportCode>xxx</airportCode>
<airportTraffic>机场到门店交通情况描述</airportTraffic>
<openTimes>营业时间文案描述</openTimes>
<openTimeStruct>
<rent_store_open_time>
<day>1</day>
<openTime>hh:mm-hh:mm</openTime>
</rent_store_open_time>
</openTimeStruct>
<telephones>1245566</telephones>
<fax>传真</fax>
<email>122@xxx.com</email>
<takeGuide>取车指引</takeGuide>
<returnGuide>还车指引</returnGuide>
<tags>门店标签</tags>
<tagServices>
<rent_store_tag_service>
<tag>特殊服务</tag>
<desc>特殊服务详细说明</desc>
</rent_store_tag_service>
</tagServices>
<cityCode>111000</cityCode>
<parentStoreCode>1234</parentStoreCode>
<storeType>1</storeType>
<payMode>0</payMode>
<distance>775</distance>
<serviceOnDoorType>1</serviceOnDoorType>
</rentStoreBase>
<driverLicenseSupport>
<driver_license_support>
<license>中国驾照</license>
<extend>驾照扩展</extend>
<desc>描述</desc>
</driver_license_support>
</driverLicenseSupport>
<rentEquipments>
<rent_equipment>
<code>zaa</code>
<name>设备名称</name>
<desc>设备描述</desc>
<chargeCNY>121.1</chargeCNY>
<chargeLocal>11.1</chargeLocal>
<currencyLocal>USD</currencyLocal>
</rent_equipment>
</rentEquipments>
<safeSeats>
<safe_seat_equipment>
<seatType>1</seatType>
<code>CAE</code>
<countryCode>US</countryCode>
<brandNameEn>hertz</brandNameEn>
<seatDesc>座椅描述</seatDesc>
<priceCNY>121.11</priceCNY>
<priceLocal>11.11</priceLocal>
<unitCycle>1</unitCycle>
<currencyLocal>USD</currencyLocal>
</safe_seat_equipment>
</safeSeats>
</rent_store>
</rentStores>
<errorInfo>
<code>1001</code>
<message>错误信息</message>
<subCode>--1</subCode>
<subMessage>子错误信息</subMessage>
</errorInfo>
<error_response>
<code>50</code>
<msg>Remote service error</msg>
<sub_code>isv.invalid-parameter</sub_code>
<sub_msg>非法参数</sub_msg>
</error_response>
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| 2001 | ||
| 4001 | ||
| http-service-status-error | ||
| 30002 | ||
| 900900 | ||
| 500 | ||
| -1 | ||
| 1001 | ||
| 30008 | ||
| 30001 | ||
| 404 | ||
| 30007 | ||
| 0 | ||
| 30004 | ||
| isp.http-read-timeout | ||
| isp.http-connection-timeout | ||
| isp.http-connection-refuse | ||
| sign-check-failure | ||
| 900100 | ||
| 30003 | ||
| 502 | ||
| 3001 | ||
| InvalidParameters | ||
| system error |