# CancellationGracePeriod

You can save yourself time dealing with some cancellations if you opt-in for Cancellation Exceptions.

There are 2 types of exceptions available:

* Grace period. Waive cancellation fees for guests who cancel their bookings 1, 4, or 24 hours after they book (excluding last-minute bookings made up to 48 hours before check-in).
* Advance cancellation. Waive cancellation fees for guests who cancel their bookings 4, 8, or 12 weeks before check-in. Give guests flexibility, and have enough time to get your rooms rebooked.


Cancellation exceptions are set per-property.

## Fields

| Field | Description | Type | Min/max | Notes |
|  --- | --- | --- | --- | --- |
| [TPA_Extensions](/connectivity/docs/api-reference/tpa_extensions)/`CancellationGracePeriod` | Cancellation exceptions container object. | object | - | - |
| `CancellationGracePeriod`/`@HoursAfterBooking` | Grace period - amount of hours after booking when free cancellation is available. | int | 0..1 | Accepts: `0, 1, 4, 24`. |
| `CancellationGracePeriod`/`@WeeksBeforeCheckIn` | Advance cancellation - amount of weeks before check-in when free cancellation is available. | int | 0..1 | Accepts: `0, 4, 8, 12` |


## XML example


```xml
<HotelDescriptiveContent
  HotelCode="12345"
  HotelDescriptiveContentNotifType="Overlay"
  HotelName="Fake Hotel"
  ID="101010"
  LanguageCode="en">
    ...
  <TPA_Extensions>
    <CancellationGracePeriod
      HoursAfterBooking="24"
      WeeksBeforeCheckIn="4"
    />
  </TPA_Extensions>
    ...
</HotelDescriptiveContent>
```

## Related endpoints

* [/ota/OTA_HotelDescriptiveContentNotif](/connectivity/docs/ota-hoteldescriptivecontentnotif)
* [/ota/OTA_HotelDescriptiveInfo](/connectivity/docs/ota-hoteldescriptiveinfo)