Documentation of the CarRentalAgentService

CarRentalAgentService. Method 

Retrieves a single LegitimationToken, that should be used to authenticate/create a Legitimation at "B2B-Light E".

public LegitimationTokenResponse (
   LegitimationTokenRequest request
);

Parameters

LegitimationTokenRequest
A LegitimationTokenRequest containing the necessary request data.

Return Value

A LegitimationTokenResponse containing the requested LegitimationToken.

Remarks

This method isn't allowed for all booking modules. If you feel, that your booking module needs to be allowed to call this method, please contact Sunny Cars. Usually Sunny Cars will inform you, that and how you need to call this method.

List Of defined call-variants

parameters GetLegitimationTokenP1
token required
LanguageCode optional
LegitimationTypeId required


Description : This variant returns the LegitimationToken for the given LegitimationTypeId, whereby your booking-module is identified by the given token. Errors and Warnings are delivered in the given 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_LEGIT_AUTHORISATION_FAILED The authorization-data is invalid. That means either the booking-modules or the Operator, that was used to create the token, isn't allowed to use this method or to create a LegitimationToken for the given LegitimationTypeId.

This error occurs if:

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

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