# Cancellation email

**Add a transparent pixel to your cancellation email so your Flip.to platform can detect when any guest cancels their stay.**

A cancellation pixel can be added to your cancellation email template, which allows Flip.to to find the appropriate reservation, flag it as cancelled, and avoid sending any additional emails to the guest beyond that point.

{% hint style="info" %}
When the email is opened by the user, the pixel is loaded and signals your platform to update your records accordingly.
{% endhint %}

## Pixel snippet

The basic structure of the snippet to be added is:

```html
<img src="https://flip.to/property/cancellation/email/image?parameters"/>
```

### Parameters

Below are the URL parameters that should be appended to the image source URL. All values should be properly URL encoded.

| Name        | Value                                                                                                                                | Description                                                                                                                                                                                                                                                                                       |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| companyCode | <p>Your Flip.to company</p><p>code</p>                                                                                               | Please check with your [Customer Success Manager](/docs/support/customer-success.md) if needed and replace `XX` with your own companyCode.                                                                                                                                                        |
| code        | The property code used by your booking engine                                                                                        | Replace `YY` with your own property booking engine code.                                                                                                                                                                                                                                          |
| crsnumber   | <p>The reservation CRS number,</p><p>if available</p>                                                                                |                                                                                                                                                                                                                                                                                                   |
| pmsnumber   | The reservation PMS number, if available.                                                                                            |                                                                                                                                                                                                                                                                                                   |
| email       | Guest's email address                                                                                                                |                                                                                                                                                                                                                                                                                                   |
| startDate   | Guest’s check-in date                                                                                                                | <p>Dates should be formatted as <strong>yyyy-M-d</strong></p><p>For example: <code>2028-5-15</code> or <code>2028-05-15</code></p>                                                                                                                                                                |
| endDate     | Guest’s check-out date                                                                                                               | <p>Dates should be formatted as <strong>yyyy-M-d</strong></p><p>For example: <code>2028-5-15</code> or <code>2028-05-15</code></p>                                                                                                                                                                |
| dateFormat  | <p><em>Optional</em></p><p>Specifies a different date format for the <code>startDate</code> and <code>endDate</code> parameters.</p> | <p>y default dates should be specified as <strong>yyyy-M-d.</strong> However, you can change the default format by entering the appropriate format here.<br></p><p>For example, if dates are entered as <code>12/31/2028</code> the date format to be specified is <strong>M/d/yyyy</strong>.</p> |

{% code title="Sample" %}

```html
<img src="https://flip.to/property/cancellation/email/image?companycode=XX&code=YY&pmsnumber=12345
&crsnumber=CRS56333&email=john@flip.to&startdate=2014-11-1&enddate=2014-11-2"/>

```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flip.to/docs/integrations/email-marketing/snippets/cancellation-email.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
