# 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="https://1637184925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LsQ_haI87nzaKJrV84e%2Fuploads%2Fgit-blob-9d97602286b1fd549f7bd139ac0493fbf6b7fc7e%2Fplatforms-xcover-PWO-booking-insurance-opt-out-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://1637184925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LsQ_haI87nzaKJrV84e%2Fuploads%2Fgit-blob-1fd43851f3978019c9153ffd3102c4c5699f6723%2Fplatforms-xcover-PWO-booking-insurance-opt-out-light.png?alt=media" 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 %}
