> ## Documentation Index
> Fetch the complete documentation index at: https://docs.axisdata.net/llms.txt
> Use this file to discover all available pages before exploring further.

# RatePlanToken Cancel RS

The Cancel functionality for our RatePlanToken product is directly based on our original OTA\_CancelRQ/RS. The request message is is almost identical to the classic model.

## Purpose

This message is returned after a OTA\_CancelRQ. It is used to:

* Return confirmation of a cancellation and its costs.
* Return pre-confirmation of a cancellation and the CancelToken.

## Details and Structure

In the RatePlanToken API, it is important to differentiate the **Quote** and **Commit** for the Cancel request.

### Quote

The **Quote** response is essentially the same as in [OTA\_CancelRS](https://docs.axisdata.net/bookingmgmt/bookCancelRS.md).

The difference is that in the RatePlanToken API, this message returns the "CancelToken" as well.

### Commit

The **Commit** response is also the same as in [OTA\_CancelRS](https://docs.axisdata.net/bookingmgmt/bookCancelRS.md).

The CancelToken is echoed here.

## Complete Examples

```xml Committed expandable theme={null}
<OTA_CancelRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="2008.1" TimeStamp="2025-10-15T14:20:00Z" Status="Committed">
    <Success/>
    <UniqueID Type="36" ID="12345" ID_Context="Internal"/>
    <UniqueID Type="36" ID="test-001" ID_Context="Client" CancelToken="NGDjY1BxMJshnFFtjbCh_FrakddKXJqOLLrrvn66FbmdudA1XpPQoqnSjk8Am1Nt3S4VojCFMoSbqGmQc3Vq6-4mrLpBTJ1574B_ddHw9MEXORWTDjfIxlDx4D7bYw_oJ9PI4M7Hd2g3kCQBMxF8pY70SZI9Cnk2xwG1ftXJOtLp9pp6tzTEYtx3To6prOGR6-TicrosADI_um2ckwimKg">
        <CompanyName Code="TEST"/>
    </UniqueID>
    <CancelRules>
        <CancelRule CancelByDate="2024-01-01T11:22:02"/>
    </CancelRules>
</OTA_CancelRS>
```

```xml Quote expandable theme={null}
<OTA_CancelRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="2008.1" TimeStamp="2025-10-15T14:20:00Z" Status="Pending">
    <Success/>
    <UniqueID Type="36" ID="12345" ID_Context="Internal"/>
    <UniqueID Type="36" ID="test-001" ID_Context="Client" CancelToken="NGDjY1BxMJshnFFtjbCh_FrakddKXJqOLLrrvn66FbmdudA1XpPQoqnSjk8Am1Nt3S4VojCFMoSbqGmQc3Vq6-4mrLpBTJ1574B_ddHw9MEXORWTDjfIxlDx4D7bYw_oJ9PI4M7Hd2g3kCQBMxF8pY70SZI9Cnk2xwG1ftXJOtLp9pp6tzTEYtx3To6prOGR6-TicrosADI_um2ckwimKg">
        <CompanyName Code="TEST"/>
    </UniqueID>
    <CancelRules>
        <!-- Example date windows for informational penalty quote -->
        <CancelRule FromDate="2025-10-20T00:00:00" ToDate="2025-10-21T23:59:59"/>
        <CancelRule FromDate="2025-10-22T00:00:00" ToDate="2025-10-23T23:59:59"/>
    </CancelRules>
</OTA_CancelRS>
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.