Retrieves the set of supported CancellationTypes.
A CancellationTypesResponse containing the requested CancellationTypes.
This method returns all available CancellationTypes for cancellation of an existing car rental reservation. In result, a CancellationType returned from this method should be used in CancelReservation.
| parameters | GetCancellationTypesP1 |
|---|---|
| token | required |
| languageCode | optional |
| Description : | This variant returns all CancellationTypes available at CarRentalAgentService in the requested language. |
| 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:
|
| E_REQUEST_INVALID | The performed request is invalid or malformed. |
| Warning Code | Description |
|---|---|
| W_LANGUAGE_NOT_SUPPORTED | The requested language code is not supported for localization. Using default language instead. |
Example: Loading CancellationTypes in dutch language.
[C#]
CancellationTypesRequest rq = new CancellationTypesRequest();
rq.Ticket = this.serviceTicket;
rq.LanguageCode = "NL";
CancellationTypesResponse rs = this.service.GetCountries(rq);
foreach (CancellationType cancel_type in rs.CancellationTypeList)
{
this.comboBoxCancellationTypes.Items.Add(cancel_type.Name + " " + cancel_type.CancellationSubType);
}
CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace