CANCEL
Method DestServicesCancelV2
{YOUR.PROVIDER.DOMAIN}/destservices/destservices.asmx?op=DestServicesCancelV2
Node definition Request
| Node | Attribute | Data Type | Description | Value | Mandatory |
|---|---|---|---|---|---|
| DestServicesCancelV2\objRequest | PrimaryLangID | String | Language code | LANGUAGE | Required |
| DestServicesCancelV2\objRequest | TransactionIdentifier | String | This value is returned in the response of the method DestServicesBookV2 and represents the locator of the booking | Required | |
| DestServicesCancelV2\objRequest\CancelBookingItems | Array | Array of booking items to cancel. This only must be informed in partial cancellations. To cancel an entire booking, this node must not be informed. | Optional | ||
| DestServicesCancelV2\objRequest\CancelBookingItems\BookingItemIdentifier | Integer | Identifier of the element to cancel | Required |
Node definition Response
| Node | Attribute | Data Type | Description | Value | Mandatory |
|---|---|---|---|---|---|
| DestServicesCancelV2Result | TransactionIdentifier | String | Locator of the booking | Required | |
| DestServicesCancelV2Result | ResResponseType | String | State of the booking | Commited / Cancelled / Pending / Rejected | Required |
| DestServicesCancelV2Result\CancellationFees | Amount | Decimal | Amount of the penalty | Required | |
| DestServicesCancelV2Result\CancellationFees | CurrencyCode | String | Currency code | CURRENCY | Required |
| DestServicesCancelV2Result\CanceledBookingItems | Array | Array of booking items canceled | Optional | ||
| DestServicesCancelV2Result\CanceledBookingItems\CanceledBookingItem | Canceled item | Optional | |||
| DestServicesCancelV2Result\CanceledBookingItems\CanceledBookingItem | BookingItemIdentifier | Integer | Identifier of the canceled element | Optional | |
| DestServicesCancelV2Result\CanceledBookingItems\CanceledBookingItem | Amount | Decimal | Amount of the cancellation fee of the canceled item | Optional | |
| DestServicesCancelV2Result\CanceledBookingItems\CanceledBookingItem | CurrencyCode | String | Currency code | CURRENCY | Optional |
XML Examples
Cancel REQUEST example
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://xml.ineedtours.com/ws/">
<soapenv:Header/>
<soapenv:Body>
<ws:DestServicesCancelV2>
<ws:objCredentials>
<ws:Source>
<ws:RequestorID Type="DSP" ID="YOUR-USER" MessagePassword="YOUR-PASSWORD"/>
</ws:Source>
</ws:objCredentials>
<ws:objRequest PrimaryLangID="IDLANGUAGE" TransactionIdentifier="D6JL8E">
<CancelBookingItems>
<BookingItemIdentifier>852456</BookingItemIdentifier>
</CancelBookingItems>
</ws:objRequest>
</ws:DestServicesCancelV2>
</soapenv:Body>
</soapenv:Envelope>
Cancel RESPONSE example
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<DestServicesCancelV2Response xmlns="http://xml.ineedtours.com/ws/">
<DestServicesCancelV2Result EchoToken="262" PrimaryLangID="ES" TransactionIdentifier="D6JL8E" ResResponseType="Cancelled">
<Header ResponseTimestamp="2019-01-14T17:40:58.7652637+01:00" MillisecondProcessingTime="8077" Endpoint="demo.xml.com"/>
<CancelPenaltiesStartDate xsi:nil="true"/>
<CancellationFees Amount="0" CurrencyCode="EUR" NumDecimals="2"/>
<CanceledBookingItems>
<CanceledBookingItem BookingItemIdentifier="5890675" Amount="78.900" CurrencyCode="EUR" />
</CanceledBookingItems>
</DestServicesCancelV2Result>
</DestServicesCancelV2Response>
</soap:Body>
</soap:Envelope>