> For the complete documentation index, see [llms.txt](https://partner-docs.covergenius.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://partner-docs.covergenius.com/rentalcover/endpoints/getallcancelledpolicies.md).

# GetAllCancelledPolicies

**What it does:** Returns a paginated list of all cancelled policies associated with your account.

```
POST /insurances/getAllCancelledPolicies
```

## Example request

{% tabs %}
{% tab title="POST" %}

```shellscript
curl -i -X POST \
  -H "X_API_KEY: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"FromDate": "2025-01-01 00:00:00", "ToDate": "2025-06-30 23:59:59", "Page": 1}' \
  https://api-staging.rentalcover.com/insurances/getAllCancelledPolicies
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
   "MetaData":{
      "TotalItems":1,
      "TotalPages":1,
      "CurrentPage":1,
      "ItemsPerPage":1000,
      "Links":{
         "FirstPage":"https://api-testing.rentalcover.com/insurances/getAllCancelledPolicies/page/1"
      }
   },
   "Bookings":[
      {
         "Booking":{
            "BookingId":"2395636",
            "Reference":"026J-88W5-INS",
            "CancelledOn":"2018-06-28 15:23:39"
         }
      }
   ]
}{
   "MetaData":{
      "TotalItems":1,
      "TotalPages":1,
      "CurrentPage":1,
      "ItemsPerPage":1000,
      "Links":{
         "FirstPage":"https://api-testing.rentalcover.com/insurances/getAllCancelledPolicies/page/1"
      }
   },
   "Bookings":[
      {
         "Booking":{
            "BookingId":"2395636",
            "Reference":"026J-88W5-INS",
            "CancelledOn":"2018-06-28 15:23:39"
         }
      }
   ]
}
```

{% endtab %}
{% endtabs %}

## Request Parameters

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="169.617431640625">Parameter</th><th width="149.5831298828125">Required?</th><th>Description</th></tr></thead><tbody><tr><td><code>FromDate</code></td><td>Optional</td><td>Start of the modification-date filter.</td></tr><tr><td><code>ToDate</code></td><td>Optional</td><td>End of the modification-date filter.</td></tr><tr><td><code>Page</code></td><td>Optional</td><td>Page index. Default: <code>1</code>. Each page contains up to 1,000 items.</td></tr></tbody></table>

{% hint style="info" %}
**Date filter**

`FromDate` and `ToDate` filter by each booking's last-modification date, not by protection start or end date.
{% endhint %}

## Response

### Pagination metadata

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="235.1817626953125">Field</th><th width="149.510498046875">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>MetaData.TotalItems</code></td><td>integer</td><td>Total number of matching cancelled bookings.</td></tr><tr><td><code>MetaData.TotalPages</code></td><td>integer</td><td>Total number of pages.</td></tr><tr><td><code>MetaData.CurrentPage</code></td><td>integer</td><td>Current page index.</td></tr><tr><td><code>MetaData.ItemsPerPage</code></td><td>integer</td><td>Number of items per page (1,000 max).</td></tr></tbody></table>

### Booking items&#x20;

Each entry in the Bookings array

<table data-header-hidden="false" data-header-sticky><thead><tr><th width="282.330078125">Field</th><th width="149.7872314453125">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>Bookings[].Booking.BookingId</code></td><td>string</td><td>Internal booking ID.</td></tr><tr><td><code>Bookings[].Booking.Reference</code></td><td>string</td><td>Booking reference.</td></tr><tr><td><code>Bookings[].Booking.CancelledOn</code></td><td>datetime</td><td>Date and time the protection was cancelled.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://partner-docs.covergenius.com/rentalcover/endpoints/getallcancelledpolicies.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
