# Set multiple custom rates for a given listing

`PUT /listings/{listing_id}/bulk_custom_rates`

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

Creates multiple custom rates for a listing. See description of setCustomRate for details.

## Request

`PUT 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 custom rate to be set.

- `custom_rates` (array of object `custom_rate`, required)
  - `start_date` (string (date), required): The inclusive start of the stay-date range affected by the custom rate (YYYY-MM-DD).
  - `end_date` (string (date), required): The inclusive end of the stay-date range affected by the custom rate (YYYY-MM-DD).
  - `rate_type` (string, required, one of: `fixed`, `adjustment`): Whether the custom rate is percentage-based or a fixed override.
  - `adjustment` (number, min: 1): The percentage by which the price should be adjusted. For example 100 means 100% of the recommended price, i.e. no adjustment. 90 means 90% and thus reduces the recommended price by 10%. Vice versa 110 means 110% and thus increases the recommended price by 10%. This is required if the rate_type is `adjustment`. If no day-specific overrides are given, this value will be used as the adjustment for every day in the date range of the custom rate.
  - `currency` (string, min length: 3, max length: 3): The ISO-4217 3-letter currency code of the price. Required if rate_type is `fixed`.
  - `monday` (number, min: 1): The price applied for all Mondays in the given date range.
  - `tuesday` (number, min: 1): The price applied for all Tuesdays in the given date range.
  - `wednesday` (number, min: 1): The price applied for all Wednesdays in the given date range.
  - `thursday` (number, min: 1): The price applied for all Thursdays in the given date range.
  - `friday` (number, min: 1): The price applied for all Fridays in the given date range.
  - `saturday` (number, min: 1): The price applied for all Saturdays in the given date range.
  - `sunday` (number, min: 1): The price applied for all Sundays in the given date range.
  - `weekend_price` (number, **deprecated**, min: 0): The price applied for nights on the weekend (Fri, Sat).
  - `weekday_price` (number, **deprecated**, min: 0): The price applied for nights during the week (Sun-Thu).
  - `expires_at` (string (date-time)): When the custom rate expires (ISO-8601). Omit for a rate that doesn't expire.

### Example request

```bash
curl -X PUT '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 '{
  "custom_rates": [
    {
      "start_date": "2027-07-02",
      "end_date": "2027-07-04",
      "rate_type": "fixed",
      "currency": "USD",
      "friday": 450,
      "saturday": 475,
      "sunday": 425
    },
    {
      "start_date": "2027-10-01",
      "end_date": "2027-10-31",
      "rate_type": "adjustment",
      "adjustment": 90,
      "friday": 105,
      "saturday": 110
    }
  ]
}'
```

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

## Responses

### 200

Created all custom rates. An empty `custom_rates` array is accepted and returns an empty `updated_custom_rates`; nothing is changed.

Body (`application/json`): object

- `updated_custom_rates` (array of object `custom_rate_response`, required)
  - Fields: see `custom_rate_response` under Schemas.

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

```json
{
  "updated_custom_rates": [
    {
      "start_date": "2026-01-01",
      "end_date": "2026-01-01",
      "rate_type": "fixed",
      "currency": "string",
      "sunday": 0,
      "monday": 0,
      "tuesday": 0,
      "wednesday": 0,
      "thursday": 0,
      "friday": 0,
      "saturday": 0,
      "expires_at": "2026-01-01T00:00:00Z"
    }
  ]
}
```

### 207

Partial success updating custom rates

Body (`application/json`): object

- `updated_custom_rates` (array of object `custom_rate_response`, required)
  - Fields: see `custom_rate_response` under Schemas.
- `errors` (array of object `custom_rate_error`, required)
  - `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

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

```json
{
  "updated_custom_rates": [
    {
      "start_date": "2026-01-01",
      "end_date": "2026-01-01",
      "rate_type": "fixed",
      "currency": "string",
      "sunday": 0,
      "monday": 0,
      "tuesday": 0,
      "wednesday": 0,
      "thursday": 0,
      "friday": 0,
      "saturday": 0,
      "expires_at": "2026-01-01T00:00:00Z"
    }
  ],
  "errors": [
    {
      "start_date": "2026-01-01",
      "end_date": "2026-01-01",
      "http_code": 0,
      "message": "string"
    }
  ]
}
```

### 400

Validation failed

### 401

API key authorization failed

### 403

Listing authorization failed

### 404

Listing not found

### 409

Another request is already in progress for this listing. Retry after the concurrent request completes.

## Schemas

Shared by more than one field above.

### `custom_rate_response`

Type: object `custom_rate_response`

A custom rate as stored. An `adjustment` rate comes back with its percentage on every day; `adjustment`, `weekday_price` and `weekend_price` are never returned.

- `start_date` (string (date), required): The inclusive start of the stay-date range (YYYY-MM-DD).
- `end_date` (string (date), required): The inclusive end of the stay-date range (YYYY-MM-DD).
- `rate_type` (string, required, one of: `fixed`, `adjustment`)
- `currency` (string, required, nullable): The ISO-4217 currency code of a `fixed` rate, `null` for `adjustment` rates.
- `sunday` (number, required, nullable): The price (`fixed`) or percentage of the recommended price (`adjustment`) for Sundays in the range. `null` on a `fixed` rate for a day that wasn't set.
- `monday` (number, required, nullable): The price (`fixed`) or percentage of the recommended price (`adjustment`) for Mondays in the range. `null` on a `fixed` rate for a day that wasn't set.
- `tuesday` (number, required, nullable): The price (`fixed`) or percentage of the recommended price (`adjustment`) for Tuesdays in the range. `null` on a `fixed` rate for a day that wasn't set.
- `wednesday` (number, required, nullable): The price (`fixed`) or percentage of the recommended price (`adjustment`) for Wednesdays in the range. `null` on a `fixed` rate for a day that wasn't set.
- `thursday` (number, required, nullable): The price (`fixed`) or percentage of the recommended price (`adjustment`) for Thursdays in the range. `null` on a `fixed` rate for a day that wasn't set.
- `friday` (number, required, nullable): The price (`fixed`) or percentage of the recommended price (`adjustment`) for Fridays in the range. `null` on a `fixed` rate for a day that wasn't set.
- `saturday` (number, required, nullable): The price (`fixed`) or percentage of the recommended price (`adjustment`) for Saturdays in the range. `null` on a `fixed` rate for a day that wasn't set.
- `expires_at` (string (date-time), required, nullable): When the custom rate expires, or `null` if it doesn't.
