Documentation of the CarRentalAgentService

CarRentalAgentService. Method 

Cancels a car rental Reservation.

public CancelReservationResponse (
   CancelReservationRequest request
);

Parameters

CancelReservationRequest
A CancelReservationRequest containing the necessary reference data.

Return Value

A CancelReservationResponse containing the cancelled Reservation.

Remarks

Use this method to cancel a car rental Reservation previously made at Sunny Cars.

List Of defined call-variants

parameters CancelReservationP1 CancelReservationP2
token required required
id required required
reservationVersion required required
travelAgentCode not applicable optional
travelAgentFirstName not applicable optional
travelAgentLastName not applicable optional
clientIP optional optional
CancellationTypeId optional optional



Description : This variant cancels the car rental reservations, identified by the request-parameters. This variant cancels the car rental reservation, identified by the request-parameters. Thereby the Travel-Agent, that cancels the car rental reservation is logged for backtracking purposes.

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_RESERVATION_NOT_FOUND The requested reservation was not found.
E_RESERVATION_CANCEL_FAILED Could not cancel reservation. Please contact manufacturer to resolve this issue.
E_RESERVATION_CANCELED The given reservation has been cancelled already.
E_CANCELLATION_NOT_ALLOWED The Cancellation of the given reservation is not allowed. Perhaps it can be cancelled by telephone.
E_RES_ID_INVALID The given reservation id is not known byy the system at all.
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_CUST_FROZEN The account of Agency(Operator) for which the used token has been created for, is "frozen" and therefore not allowed to cancel the Reservation identified by the given reservationId.
E_CUST_CLOSED The account of Agency(Operator) for which the used token has been created for, is "closed" and therefore not allowed to cancel the Reservation identified by the given reservationId.
E_REQUEST_INVALID The performed request is invalid or malformed.

See Also

CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace