# Insurance Opt-Out

The Insurance opt-out workflow describes the API call that must be made in the case that XCover insurance is offered but not selected by the customer. The purpose of utilising the opt-out workflow is so Cover Genius can demonstrate conversion rate to the regulators ensuring the product and pricing is fit for purpose. It also enables XCover machine learning platform Brightwrite to deliver the optimal products at the optimal prices.

<picture><source srcset="/files/3yZo1hDzLtZmTMArmy6p" media="(prefers-color-scheme: dark)"><img src="/files/CT9g5i5i9KyKhugL6dxs" alt="Opt-Out Workflow"></picture>

## Sending Opt-Out Data

<mark style="color:green;">`POST`</mark> `https://api.xcover.com/x/partners/:partner_id/bookings/:quote_package_id/opt_out`

The opt-out request does not require any data to be contained in the payload.

#### Path Parameters

| Name               | Type   | Description          |
| ------------------ | ------ | -------------------- |
| partner\_id        | string | Uniquer Partner Code |
| quote\_package\_id | string | Quote Package ID     |

#### Headers

| Name          | Type   | Description      |
| ------------- | ------ | ---------------- |
| Date          | string | Current Datetime |
| Authorization | string | HMAC Signature   |
| X-Api-Key     | string | API Key          |

{% tabs %}
{% tab title="204 Successfully recorded opt out metrics" %}

```
```

{% endtab %}
{% endtabs %}


---

# 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.covergenius.com/xcover/purchase-workflow-overview/opt-out.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.
