Retrieves the set of supported VehicleTypes.
A VehicleTypesResponse containing the requested VehicleTypes.
This method return all VehicleTypes available at sunnycars to classify (or categorize) Vehicles. The list of supported VehicleTypes is useful to narrow results in return of the GetRates method.
Attention:
It's possible, but not recommended to use the returned VehicleTypes to implement a Frontend-Filter at your booking-module. Due to the database design, the way sunnycars stores and manages the available offers and the best-buy-algorithm implemented in the GetRates-Method it's possible that not all offers for a single VehicleType are delivered. Therefore it's recommended to use the VehicleTypes-Filter-Mechanism of GetRates-Method and simply let the backend do the job. Normally, using the backend-filter should not result in a lag of performance, due to the excellent technical infrastructure of sunnycars, so it's up to you to decide either absolutely all available offers should be shown in your booking module or to have a slightly better performance and possibly miss some available offers.
parameters | GetVehicleTypesP1 | GetVehicleTypesP2 |
---|---|---|
token | required | required |
languageCode | not applicable | optional |
Description : | This variant returns the all Vehicle-Types for which sunnycars provides offers in the language of the Agency(Operator) the used token has been created for. | This variant returns the all Vehicle-Types for which sunnycars provides offers in the requested language. |
Error Code | Description |
---|---|
E_INTERNAL_SERVICE | An internal service error occured during the process. |
E_TICKET_TOKEN_INVALID | The provided token is invalid. This error occurs if:
|
E_VEHICLE_TYPE_NOT_FOUND | No vehicle types are currently supported by service. |
E_REQUEST_INVALID | The performed request is invalid or malformed. |
Warning Code | Description |
---|---|
W_LANGUAGE_NOT_SUPPORTED | The requested language code is not supported for localization. Using default language instead. |
CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace