请求服务商提供的租车车辆报价详情接口,获取指定车辆的详情及报价
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
traceId | String | 必须 | 1223 | 本次请求的标识 | |
isPressureTest | Boolean | 可选 | false |
|
是否压测流量,默认false |
channelId | String | 可选 | 20010 | 渠道id | |
userId | Number | 可选 | 1212 | 用户id | |
channelName | String | 可选 | 赫兹 | 渠道名称 | |
useTestData | Boolean | 可选 | true | 是否调用服务商测试环境数据。true:调用服务商测试环境,false:调用服务商线上正式环境 | |
carUseTime | String | 必须 | 2017-05-22 11:11:11 | 取车时间 | |
carReturnTime | String | 必须 | 2017-05-22 11:11:11 | 还车时间 | |
pickUpInfo | RentcarAddressInfo | 可选 | 取车地址信息 | ||
|
|||||
returnInfo | RentcarAddressInfo | 可选 | 还车地址信息 | ||
|
|||||
priceDetailQueryParams | PriceDetailQueryParam [] | 可选 |
|
车辆详情页专用,查询指定车型及报价(国际租车专用) | |
|
|||||
supplierId | String | 可选 | 1111 | 用于过滤指定车辆详情,供应商id | |
carId | String | 可选 | 2222 | 用于过滤指定车辆详情,商家车型id | |
outCarId | String | 可选 | out123 | 用于过滤指定车辆详情,外部商家自定义的车型id。目前只有惠租车使用(国际租车专用) | |
creditSupport | Number | 可选 | 0 | 是否信用免押(国内租车专用),0-不限制,1-免车辆押金,2-免违章押金,3-均支持,4-不支持 | |
outerPriceId | String | 可选 | 123456 | (国内租车专用)商家价格标识码 | |
thirdExtInfos | String | 可选 | 第三方扩展信息 透传 | 第三方扩展信息 透传 | |
cardValue | String | 可选 | ufennnvd%73@v | 宝贝值 | |
cardTag | String | 可选 | 2 | 次卡标记(1:次卡 2:天卡 3:随心租卡) | |
packageRate | String | 可选 | ANXINZU_YIKOUJIA | 指定套餐code:安心租一口价:ANXINZU_YIKOUJIA |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
providerId | String | 20010 | 服务商id |
success | Boolean | true | 接口调用是否成功 |
rentCarPrice | RentCarPrice | 车型报价列表。每个报价中会有车型id,品牌id,门店id。具体的车型、品牌、门店请从下列列表中通过id查询(国际租车专用) | |
|
|||
rentSupplier | RentSupplier | 供应商(品牌商)信息 | |
|
|||
rentCar | RentCar | 车型信息 | |
|
|||
rentStores | RentStore [] | 门店信息 | |
|
|||
errorInfo | ErrorInfo | 错误信息 | |
|
|||
itemId | Number | 12345 | 商品ID |
priceInfo | PriceInfo | 车辆租金信息(国内租车专用) | |
|
|||
addedServiceList | AddedService [] | 增值服务(国内租车专用) | |
|
|||
cancelStrategyStruct | CancelStrategyStruct | 取消政策(国内租车专用) | |
|
|||
driverStrategyList | DriverStrategy [] | 租车须知(国内租车专用) | |
|
|||
payMode | Number | 1 | (国内租车专用)支付方式,1-仅支持在线付,2-仅支持门店付,3-均支持 |
rentCarTipsList | RentCarTips [] | 更多须知 国内租车专用) | |
|
|||
pickCarmaterials | PickCarmaterials | 取车材料 | |
|
|||
insuranceStructInfo | InsuranceStructInfo | 保险结构化信息,内层费项部分需与addedServiceList对应。eg:serviceCode需对应,若没对应则影响算价 | |
|
QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret); AlitripRentcarCardetailQueryRequest req = new AlitripRentcarCardetailQueryRequest(); req.setTraceId("1223"); req.setIsPressureTest(false); req.setChannelId("20010"); req.setUserId(1212L); req.setChannelName("赫兹"); req.setUseTestData(true); req.setCarUseTime("2017-05-22 11:11:11"); req.setCarReturnTime("2017-05-22 11:11:11"); AlitripRentcarCardetailQueryRequest.RentcarAddressInfo obj1 = new AlitripRentcarCardetailQueryRequest.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("xxx"); obj1.setStoreCode("111"); obj1.setCityId("111000"); obj1.setCity("北京"); obj1.setIsServiceOnDoor(true); req.setPickUpInfo(obj1); AlitripRentcarCardetailQueryRequest.RentcarAddressInfo obj2 = new AlitripRentcarCardetailQueryRequest.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("xxx"); obj2.setStoreCode("222"); obj2.setCityId("111000"); obj2.setCity("北京"); obj2.setIsServiceOnDoor(true); req.setReturnInfo(obj2); List<AlitripRentcarCardetailQueryRequest.PriceDetailQueryParam> list4 = new ArrayList<AlitripRentcarCardetailQueryRequest.PriceDetailQueryParam>(); AlitripRentcarCardetailQueryRequest.PriceDetailQueryParam obj5 = new AlitripRentcarCardetailQueryRequest.PriceDetailQueryParam(); list4.add(obj5); obj5.setPriceId("ref123"); obj5.setVendorCode("HZ"); obj5.setPickUpStoreCode("LAX"); obj5.setReturnStoreCode("LAX"); obj5.setSipp("REAR"); obj5.setRateQualifier("ABC"); req.setPriceDetailQueryParams(list4); req.setSupplierId("1111"); req.setCarId("2222"); req.setOutCarId("out123"); req.setCreditSupport(0L); req.setOuterPriceId("123456"); req.setThirdExtInfos("第三方扩展信息 透传"); req.setCardValue("ufennnvd%73@v"); req.setCardTag("2"); req.setPackageRate("ANXINZU_YIKOUJIA"); AlitripRentcarCardetailQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody());
<providerId>20010</providerId> <success>true</success> <rentCarPrice> <carId>1111</carId> <outCarId>out123</outCarId> <supplierId>1111</supplierId> <returnStoreId>1111</returnStoreId> <pickUpStoreId>1111</pickUpStoreId> <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> <rateQualifier>ABC</rateQualifier> <priceType>1</priceType> <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> <excessAmount>122.22</excessAmount> <mileLimit> <hasLimit>true</hasLimit> <limitNum>11</limitNum> <excessLimitDesc>超里程收费标准 描述。</excessLimitDesc> <limitUnit>km</limitUnit> </mileLimit> <extraDriverStrategy> <freeNum>3</freeNum> <excessLimitDesc>超员收费标准 描述。</excessLimitDesc> </extraDriverStrategy> <fuleStrategy>0</fuleStrategy> <cancelStrategyStruct> <supportCancel>true</supportCancel> <manualCheckTime>3</manualCheckTime> <cancelType>1</cancelType> <cancelRules> <cancel_rule> <time>30</time> <num>50</num> </cancel_rule> </cancelRules> <cancelTips>补充说明</cancelTips> </cancelStrategyStruct> </rent_car_price_combo> </priceCombos> <cancelStrategy> <desc>文本描述 取消政策</desc> <hour>3</hour> </cancelStrategy> <changeStrategy>修改政策</changeStrategy> <mileLimit>21</mileLimit> <fuleStrategy>0</fuleStrategy> <bookLimit> <unLimitAge>21-40</unLimitAge> <extraPayAge>17-20</extraPayAge> <unSupportAge>0-17</unSupportAge> <bookAdvanceHour>3</bookAdvanceHour> <driveAgeLimit>2</driveAgeLimit> </bookLimit> <oneWayFeeRMB>123.11</oneWayFeeRMB> <oneWayFeeLocal>111</oneWayFeeLocal> <oneWayFeePaymode>1</oneWayFeePaymode> <currencyLocal>USD</currencyLocal> <reservationNotes>预定须知</reservationNotes> <extInfos>sellerId%3A%3B1234%3B%3AsellerNick%3A%3B测试商家昵称</extInfos> <thirdExtInfos>第三方扩展信息 透传</thirdExtInfos> </rentCarPrice> <rentSupplier> <id>hertz</id> <name>赫兹</name> <code>ZE</code> <nameEn>hertz</nameEn> <groupName>所属集团名</groupName> <tags>xx,zz</tags> <brandDesc>品牌介绍</brandDesc> <pic>http://xxx.com</pic> </rentSupplier> <rentCar> <id>1121</id> <name>奥迪A6</name> <nameEn>A6</nameEn> <sipp>CEAR</sipp> <tags>xx,ff,aa</tags> <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> <autoBrand>雪佛兰</autoBrand> <autoBrandEn>CHEVROLET</autoBrandEn> <carLicense>1</carLicense> <carLicenseDesc>北京本地牌</carLicenseDesc> <outputType>1</outputType> <outputVolumn>1.6</outputVolumn> <creditSupport>1</creditSupport> </rentCar> <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> <picture>http://img.alicdn.com/xxx</picture> <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> <serviceOnDoorType>2</serviceOnDoorType> <serviceOnDoorFeeDesc>收费上门取送车收费规则</serviceOnDoorFeeDesc> </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> <maxCost>全程最多花费110USD</maxCost> </safe_seat_equipment> </safeSeats> </rent_store> </rentStores> <errorInfo> <code>1001</code> <message>错误信息</message> <subCode>--1</subCode> <subMessage>子错误信息</subMessage> </errorInfo> <itemId>12345</itemId> <priceInfo> <pickUpCarType>1</pickUpCarType> <returnCarType>1</returnCarType> <legalPreDeposit>3000</legalPreDeposit> <carPreDeposit>2000</carPreDeposit> <standardUnitPrice>111</standardUnitPrice> <quantity>2</quantity> <standardPrice>222.00</standardPrice> <legalDepositTimeOut>50</legalDepositTimeOut> <thirdExtInfos>第三方扩展信息 透传</thirdExtInfos> <poundageFee>25.00</poundageFee> <basicServiceFee>37.00</basicServiceFee> <rentFee>135.00</rentFee> </priceInfo> <addedServiceList> <added_service> <isFixed>true</isFixed> <quantity>2</quantity> <amount>100.00</amount> <price>10.00</price> <serviceDesc>车损免赔</serviceDesc> <serviceName>车损免赔</serviceName> <serviceCode>111</serviceCode> <isOneWayFee>1</isOneWayFee> <serviceType>1</serviceType> <sid>21</sid> </added_service> </addedServiceList> <cancelStrategyStruct> <supportCancel>true</supportCancel> <manualCheckTime>1</manualCheckTime> <cancelType>1</cancelType> <cancelRules> <cancel_rule> <num>20</num> <time>2</time> </cancel_rule> </cancelRules> <cancelTips>补充说明</cancelTips> </cancelStrategyStruct> <driverStrategyList> <driver_strategy> <desc>该门店备车时间为2小时</desc> <type>5</type> </driver_strategy> </driverStrategyList> <payMode>1</payMode> <rentCarTipsList> <rent_car_tips> <title>一级标题</title> <desc>说明,其他说明</desc> <subTitleList> <sub_title> <title>二级标题</title> <desc> <string>二级标题描述</string> </desc> </sub_title> </subTitleList> </rent_car_tips> </rentCarTipsList> <pickCarmaterials> <cardType>1,身份证原件2,护照3,回乡证4,台胞证</cardType> <cardTime>证件剩余有效期(月)</cardTime> <driverCardTime>驾驶证剩余有效期(月)</driverCardTime> <drivingExperienceTime>驾龄大于几个月</drivingExperienceTime> <payMode>1,信用卡2,支付宝及其他在线支付工具3,现金</payMode> <creditTime>信用卡剩余有效期(月)</creditTime> </pickCarmaterials> <insuranceStructInfo> <insurances> <rent_car_insurance> <dailyUnitPrice>2.00</dailyUnitPrice> <serviceCode>insurance-212</serviceCode> <originDailyUnitPrice>2.00</originDailyUnitPrice> <insuranceName>基础服务</insuranceName> <insuranceType>1</insuranceType> <insuranceItems> <insurance_item> <subIncludes> <number>1</number> </subIncludes> <include>true</include> <name>车损保障</name> <from>1500</from> <to>1500000</to> <type>1</type> <percent>30</percent> <bounds>1500</bounds> </insurance_item> </insuranceItems> <required>false</required> <sid>21</sid> </rent_car_insurance> </insurances> </insuranceStructInfo>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|---|---|
-1 | 根据错误提示修改 | 根据错误提示修改 |
isp.http-connection-timeout | 根据错误提示修改 | 根据错误提示修改 |
isp.http-read-timeout | 根据错误提示修改 | 根据错误提示修改 |
sign-check-failture | 根据错误提示修改 | 根据错误提示修改 |
1002 | 根据错误提示修改 | 根据错误提示修改 |
2001 | 根据错误提示修改 | 根据错误提示修改 |
1001 | 根据错误提示修改 | 根据错误提示修改 |
3001 | 根据错误提示修改 | 根据错误提示修改 |
203 | 根据错误提示修改 | 根据错误提示修改 |
4001 | ||
102000303 | ||
http-service-status-error |