Documentation of the CarRentalAgentService

CarRentalAgentService. Method 

Retrieves a car rental Reservation.

public ReservationResponse (
   ReservationRequest request
);

Parameters

ReservationRequest
A ReservationRequest containing the necessary reference data.

Return Value

A ReservationResponse containing the requested Reservation.

Remarks

Use this method to retrieve a car rental Reservation previously made at Sunny Cars. This method typically is used to query the status of a reservation made.

List Of defined call-variants

parameters GetReservationP1 GetReservationP2
token required required
id required required
languageCode not applicable optional



Description : This variant returns a car rental Reservation in the language of the Agency(Operator) the used token has been created for. This variant returns a car rental Reservation 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_RES_ID_INVALID The requested reservation is not known by the system.
E_RESERVATION_NOT_FOUND The requested reservation was not found.
E_NOT_THE_OWNER The Agency(Operator) for which the used token has been created for, is not the owner(creator) of the Reservation identified by the given reservationId.
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