# Delete custom rates for a set of ranges

`DELETE /listings/{listing_id}/bulk_custom_rates`

> Wheelhouse Pro API. Web version: https://docs.usewheelhouse.com/pro/reference/bulk-delete-custom-rate · OpenAPI spec: https://docs.usewheelhouse.com/pro/openapi.yaml · Operation ID: `bulkDeleteCustomRate` · Tag: Listings · Index of all docs pages: https://docs.usewheelhouse.com/llms.txt

This endpoint allows for multiple date ranges to have their custom rates removed, reverting back to
recommended prices for those dates. Note that start_date and end_date of each range are inclusive, and
custom rates will be removed on those dates as well.

## Request

`DELETE https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/bulk_custom_rates`

Authentication: send your integration API key in the `X-Integration-API-Key` header and your user API key in the `X-User-API-Key` header (see https://docs.usewheelhouse.com/pro/authentication.md).

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `listing_id` | string | yes | The integration partner's unique listing identifier. |

### Request body (`application/json`)

An object representing the set of ranges for which to delete custom rates.

- `delete_ranges` (array of object, required)
  - `start_date` (string (date), required)
  - `end_date` (string (date), required)

### Example request

```bash
curl -X DELETE 'https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/bulk_custom_rates' \
  -H 'X-Integration-API-Key: <your integration API key>' \
  -H 'X-User-API-Key: <your user API key>' \
  -H 'Content-Type: application/json' \
  -d '{
  "delete_ranges": [
    {
      "start_date": "2027-07-02",
      "end_date": "2027-07-04"
    },
    {
      "start_date": "2027-10-01",
      "end_date": "2027-10-31"
    }
  ]
}'
```

Path and query parameters are placeholders. The body is a complete example; replace its values with your own.

## Responses

### 204

Successfully removed custom rates for given ranges. No response body

### 207

Removal of custom ranges was only partially successful. Only some ranges removed.

Body (`application/json`): object

- `errors` (array of object `custom_rate_error`, required)
  - Fields: see `custom_rate_error` under Schemas.

Example shape (generated from the schema; placeholder values, not a real response):

```json
{
  "errors": [
    {
      "start_date": "2026-01-01",
      "end_date": "2026-01-01",
      "http_code": 0,
      "message": "string"
    }
  ]
}
```

### 424

Removal of custom ranges failed. No ranges were removed.

Body: same as `207` above.

## Schemas

Shared by more than one field above.

### `custom_rate_error`

Type: object `custom_rate_error`

- `start_date` (string (date), required)
- `end_date` (string (date), required)
- `http_code` (number, required): The http status code this custom rate would have raised, had it been sent via the `custom_rate` endpoint instead of the bulk endpoint.
- `message` (string, required): The error's message
