# Set a custom rate

`PUT /listings/{listing_id}/custom_rates`

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

Defines a custom rate (an override of recommended pricing) for a date range. A rate_type of `fixed`
defines a fixed rate in the specified currency. A rate_type of `adjustment` defines a percentage-based adjustment to the recommended price.

**Fixed Rate Example**:
Specifying the `currency` as "USD", a day of week value of 500 for `sunday`, 750 for `friday`
and 625 for `saturday` will set the rates for those days during the specified date range to
$500, $750 and $625, respectively.

**Adjustment Rate Example**:
An adjustment value of 115 would mean a 15% increase in price, while a value of 75 would
indicate a decrease of 25% from the recommended price. In cases where both an adjustment and
day of week values are given, the adjustment will act as the default value for the non-specified
days of week. So setting an `adjustment` of 115 and specifying 125 for `sunday`, 145 for `friday`
and 135 for `saturday` would results in a 25% increase for Sunday, a 15% increase for Monday-Thursday,
a 45% increase for Friday and a 35% increase for Saturday.

## Request

`PUT https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/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.

- `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

**Fixed nightly prices for a holiday weekend**

```bash
curl -X PUT 'https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/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 '{
  "start_date": "2027-07-02",
  "end_date": "2027-07-04",
  "rate_type": "fixed",
  "currency": "USD",
  "friday": 450,
  "saturday": 475,
  "sunday": 425
}'
```

**Percentage of the recommended price for a month**

```bash
curl -X PUT 'https://api.usewheelhouse.com/ss_api/v1/listings/{listing_id}/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 '{
  "start_date": "2027-10-01",
  "end_date": "2027-10-31",
  "rate_type": "adjustment",
  "adjustment": 115,
  "friday": 145,
  "saturday": 135,
  "sunday": 125
}'
```

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

## Responses

### 200

Created custom rate.

Body (`application/json`): 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.

Example (fixed):

```json
{
  "start_date": "2027-07-02",
  "end_date": "2027-07-04",
  "currency": "USD",
  "rate_type": "fixed",
  "sunday": 425,
  "monday": null,
  "tuesday": null,
  "wednesday": null,
  "thursday": null,
  "friday": 450,
  "saturday": 475,
  "expires_at": null
}
```

Example (adjustment):

```json
{
  "start_date": "2027-10-01",
  "end_date": "2027-10-31",
  "currency": null,
  "rate_type": "adjustment",
  "sunday": 125,
  "monday": 115,
  "tuesday": 115,
  "wednesday": 115,
  "thursday": 115,
  "friday": 145,
  "saturday": 135,
  "expires_at": null
}
```

### 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.
