Documentation of the CarRentalAgentService

CarRentalAgentService. Method 

Retrieves the set of supported VehicleTypes.

public VehicleCategoriesResponse (
   VehicleCategoriesRequest request
);

Parameters

VehicleCategoriesRequest
A VehicleTypesRequest containing the necessary request data.

Return Value

A VehicleTypesResponse containing the requested VehicleTypes.

Remarks

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.

List Of defined call-variants

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.

List Of Errors Returned

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:

  • The token is in invalid format.
  • The token is expired.
  • The token was not found.

E_VEHICLE_TYPE_NOT_FOUND No vehicle types are currently supported by service.
E_REQUEST_INVALID The performed request is invalid or malformed.

List Of Warnings Returned

Warning Code Description
W_LANGUAGE_NOT_SUPPORTED The requested language code is not supported for localization. Using default language instead.

See Also

CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace