Documentation of the CarRentalAgentService

CarRentalAgentService. Method 

Retrieves a set of RateCodes specific to a formerly requested Rate.

public RateCodeResponse (
   RateCodeRequest request
);

Parameters

RateCodeRequest
A RateCodeRequest containing the necessary reference data.

Return Value

A ReservationResponse containing the requested RateCodes.

Remarks

The RateCode is a string, that is composed of the GDSCode of a Location, the sequential number of a Location located in a lowest level Region and the Code of the Vehicle whose Id was handed over to the CarRentalAgentService in vehicleId. The returned codes are unique for a Vehicle in connection with a RateServiceType at a single Region. It may be used for mapping purposes at client side, because it's not needed for any webservice call.

List Of defined call-variants

parameters GetRateCodesP1
token required
regionId optional
locationId optional
vehicleId required
rateServiceTypeId required
meetingAtAirportPreference optional
meetingAtCounterPreference optional
meetingAtSpecialAddressPreference optional


Description : This variant delivers the RateCodes for the given request-parameters.

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_DEPARTURE_PLACE_NOT_SET Neither the DepartureRegionId nor the DepartureLocationId was set in request-parameters.
E_RATE_CODE_NOT_FOUND The searched RateCodes aren't available in the database, which will mostly be the case if the corresponding Rate doesn't exist. Please verfy, that the parameters handed over by your booking module, do really identify a valid Rate.
E_REQUEST_INVALID The performed request is invalid or malformed.

See Also

CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace