The component cancellation process has two steps
PreCancel
Cancel
To cancel a component requires the PreCancelComponent call followed by the CancelComponent call.
The precancel component call returns the cancellation cost for the component and a cancellation token required to validate the cancel call.Â
The structure of the XML will be:
The structure of the XML will be:
The structure of the XML will be:
The structure of the XML will be:
<PreCancelComponentRequest>
<LoginDetails>
<Login>...</Login>
<Password>...</Password>
</LoginDetails>
<BookingReference>1018402</BookingReference>
<BookingComponents>
<BookingComponent>
<ComponentBookingID>62</ComponentBookingID>
<ComponentType>Transfer</ComponentType>
</BookingComponent>
</BookingComponents>
</PreCancelComponentRequest>
<PreCancelComponentResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
</ReturnStatus>
<TotalCost>0.00</TotalCost>
<BookingComponents>
<BookingComponent>
<ComponentBookingID>62</ComponentBookingID>
<CancellationCost>0.00</CancellationCost>
<CancellationToken>1731171932</CancellationToken>
<SupplierDetails>
<SupplierID>1</SupplierID>
<CurrencyID>1</CurrencyID>
<Cost>30.0</Cost>
</SupplierDetails>
</BookingComponent>
</BookingComponents>
</PreCancelComponentResponse>
<CancelComponentRequest>
<LoginDetails>
<Login>Login</Login>
<Password>Password</Password>
</LoginDetails>
<BookingReference>1018402</BookingReference>
<Payment>
<PaymentType>Credit Card</PaymentType>
<CCCardHoldersName>Test</CCCardHoldersName>
<CCCardTypeID>1</CCCardTypeID>
<CCCardNumber>xxxx</CCCardNumber>
<CCExpireMonth>xx</CCExpireMonth>
<CCExpireYear>xx</CCExpireYear>
<CCSecurityCode>xxx</CCSecurityCode>
<CCIssueNumber>0</CCIssueNumber>
<Amount>660.56</Amount>
<Surcharge>0.00</Surcharge>
<TotalAmount>660.56</TotalAmount>
</Payment>
<BookingComponents>
<BookingComponent>
<ComponentBookingID>26</ComponentBookingID>
<ComponentType>Transfer</ComponentType>
<CancellationCost>0.00</CancellationCost>
<CancellationToken>1739822552</CancellationToken>
</BookingComponent>
</BookingComponents>
</CancelComponentRequest>
<CancelComponentResponse>
<ReturnStatus>
<Success>true</Success>
<Exceptions />
</ReturnStatus>
<BookingReference>1018402</BookingReference>
<TotalPrice>2936.72</TotalPrice>
<TotalCommission>0.0</TotalCommission>
<VATOnCommission>0.0</VATOnCommission>
<PaymentsDue />
</CancelComponentResponse>