租车分销车型基础信息接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
rent_car_b2b_vehicle_info_req | RentCarB2bCarInfoReq | 可选 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
cars | RentCarBasicInfo [] | 车型信息响应 | |
|
|||
successful | Boolean | true | 是否成功 |
ret_code | String | 1001 | 返回错误码 |
ret_msg | String | 参数异常 | 返回错误信息 |
exts | Json | {"key":"value"} | 预留扩展信息,KV对形式 |
1 2 3 4 5 6 7 8 9 10 11 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripRentcarBtbVehicleQueryRequest req = new AlitripRentcarBtbVehicleQueryRequest(); AlitripRentcarBtbVehicleQueryRequest.RentCarB2bCarInfoReq obj1 = new AlitripRentcarBtbVehicleQueryRequest.RentCarB2bCarInfoReq(); obj1.setTraceId( "2147b72e16691938918672871ef815" ); obj1.setPageSize(100L); obj1.setPage(1L); obj1.setExts( "{\"key\":\"value\"}" ); obj1.setChannelId( "80001" ); req.setRentCarB2bVehicleInfoReq(obj1); AlitripRentcarBtbVehicleQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | < alitrip_rentcar_btb_vehicle_query_response > < cars > < rent_car_basic_info > < car_name >陆上公务舱 652T 豪华型</ car_name > < output_type >1</ output_type > < output_volume >2.0</ output_volume > < type >6</ type > < model_year >2021</ model_year > < door_num >5</ door_num > < auto_brand >别克</ auto_brand > < transmission >3</ transmission > < seat_num >7</ seat_num > < fuel_type >1</ fuel_type > < name >GL8</ name > < pics >https://img.alicdn.com/imgextra/i2/O1CN015M5Dvx25i4chLicSF_!!6000000007559-0-tps-800-600.jpg</ pics > < sid >xxx11</ sid > </ rent_car_basic_info > </ cars > < successful >true</ successful > < ret_code >1001</ ret_code > < ret_msg >参数异常</ ret_msg > < exts >{"key":"value"}</ exts > </ alitrip_rentcar_btb_vehicle_query_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|