# Delete override

POST `https://app.iteras.dk/api/customers/deleteoverride/`

The API key must allow "Change subscriber data".

Deletes an override that has not taken effect yet, i.e. a future change or a vacation that has not started.

To end an override that is in effect, use the [update customer override](/api/docs/server/updateoverride.md) endpoint instead.

## Parameters

- `id` (string, required): ID of the customer.
- `override_id` (string, required): ID of the override.

  Find it with the [customer data](/api/docs/server/retrievingcustomers.md) or [create override](/api/docs/server/createoverride.md) endpoint.
- `exclude_from_webhooks` (bool, Defaults to `false`): Set to `true` to keep every event the request causes from being sent to webhooks, invoice and payment events included, e.g. `"exclude_from_webhooks": true`. The events are still added to the history.

## Examples

```http
POST /api/customers/deleteoverride/ HTTP/1.1
Content-Type: application/json
```

```json
{
  "id": "12345",
  "override_id": "77642"
}
```

## Return value

On success the endpoint returns the ID of the deleted override:

```json
{ "override_id": "77642" }
```

## Errors

Invalid requests due to programming error, e.g. invalid JSON or a missing `override_id`, returns 400.

A well-formed operation that cannot be executed returns an HTTP 422 error. Errors that are not specific to a field are returned with the empty string as key, e.g. an unknown override or an override that is already in effect:

```json
{
  "": ["Only an override that has not taken effect can be deleted."]
}
```