{
  "openapi": "3.0.0",
  "servers": [
    {
      "url": "https://api.usewheelhouse.com/ss_api/v1",
      "description": "Main (production) server"
    }
  ],
  "info": {
    "license": {
      "name": "All Rights Reserved"
    },
    "description": "## Basic Execution Flow\nFor a minimal direct integration of a proprietary system, we recommend to follow this basic execution flow in order to set up a portfolio and get daily price recommendations.<br/><br/>\n![Basic Flow](https://app.usewheelhouse.com/api/Wheelhouse-Pricing-API-BasicFlow.png)\n## PMS / CM Execution Flow\nTo integrate a property management system or channel manager, we recommend to follow this execution flow in order to connect individual end users, refresh daily price recommendations, and leverage the full capabilities of the Wheelhouse platform.<br/><br/>\n![PMS / CM Execution Flow](https://app.usewheelhouse.com/api/Wheelhouse-Pricing-API-PMS-CM-Flow.png)\n## PMS / CM UX\nFor the integration of a property management system or channel manager, we recommend these UX flows for the typical processes of connecting a new user and (de-)activating pricing for a listing.\n### Connecting\n![Connecting](https://app.usewheelhouse.com/api/Wheelhouse-Pricing-API-1-Connecting.png)\n### Activating Pricing\n![Activating](https://app.usewheelhouse.com/api/Wheelhouse-Pricing-API-2-Activating.png)\n### Deactivating Pricing\n![Deactivating](https://app.usewheelhouse.com/api/Wheelhouse-Pricing-API-3-Deactivating.png)\n",
    "contact": {
      "email": "tech-support@usewheelhouse.com"
    },
    "title": "Wheelhouse Pro API",
    "termsOfService": "http://help.usewheelhouse.com/privacy-and-terms/terms-of-service",
    "version": "v1.0",
    "x-logo": {
      "url": "https://app.usewheelhouse.com/api/logo.png",
      "backgroundColor": "#ffffff",
      "altText": "Wheelhouse logo",
      "href": "https://www.usewheelhouse.com/contact"
    }
  },
  "tags": [
    {
      "name": "Host",
      "description": "https://api.usewheelhouse.com/ss_api/v1/"
    },
    {
      "name": "Rate Limit",
      "description": "Wheelhouse can support <b>any reasonable rate limit</b> that you require.\n\nOn average you can expect 4-6 API calls to update a single listing. For a portfolio with 1,000 listings, your system would\ntherefore likely make 4,000 - 6,000 API calls per day to update a full portfolio update.  At 100 calls per minute, your\nsystem would update these 1,000 listings in ~50 minutes.\n\nTo ensure no undue latency, we recommend using an exponential backoff strategy when encountering a 429 Too Many Requests response from our API. If your traffic\nincreases to the point where you are receiving many 429s a day, we will discuss mitigation strategies, including an increase of the rate limit.\n\n<b>Note</b>: testing keys default to 20 requests / minute to prevent any accidental overloading of the system, and production keys default to 60 requests / minute.\nIf this is an impediment, please [reach out to us](mailto:tech-support@usewheelhouse.com) and we can adjust accordingly.\n"
    },
    {
      "name": "Web Hook Callbacks",
      "description": "We do support webhook callbacks to alert API users e.g. when a listing's price recommndations have been updated or when\na front end user requested a calendar refresh for a listing for which they have granted access to an API customer. Each\nweb hook will provide the event name (as `event`), a boolean flag `user_initiated` that indicates if the webhook was\ninitiated by a user action or through automatic routines, the `external_user_id` of the user the listing belongs to, and\nadditional parameters in the body of the callback.\nWe currently support these web hooks:\n\n* __account_sync_requested__: all listings and data of a user should be refreshed\n* __listing_sync_requested__: a particular listing and its data should be refreshed (parameters: `listing_id`)\n* __listing_recommendations_updated__: updated recommendations for a listing are available (parameters: `listing_id`)\n* __listing_automation_changed__: the automation status of a listing has changed (parameters: `listing_id`, `posting_enabled`)\n* __account_deactivated__: the account has been deactivated on Wheelhouse\n\nFor example, the payload of a call to notify about updated recommendations could look like this:\n\n```json\n{ \"event\": \"listing_recommendations_updated\", \"listing_id\": \"abc_1234\", \"user_initiated\": false, \"external_user_id\": \"user_007\" }\n```\n\nWeb hooks can use separate URLs for the individual events as well as separate URLs for test and production environments.\nPlease reach out to us directly to inquire about the setup of this feature.\n"
    },
    {
      "name": "Users",
      "description": "Registering each end user is a requirement of using our API. It allows us to isolate\nbilling information and may enable future APIs or integrations.\n\nOnce registered, each user will receive a specific API key that must be included\nin requests for that user's listings.\n\nAdditionally, if you have a customer who already has a Wheelhouse account with linked listings, the user can grant\nyou API access to their listings by generating a User API Key here: https://app.usewheelhouse.com/u/account/api_token.\nOnce they have created this key, they give it to you and you can use it in the [X-User-API-Key header](#section/Authentication/UserApiKey) to retrieve and\nupdate their listings and pull price recommendations.\n\nTo register a customer who already has a Wheelhouse account, send their User API Key in the `X-User-API-Key`\nheader when you call `POST /user_registration`. Without it, an email that belongs to an existing Wheelhouse\naccount you did not register is rejected with **409**. Registering a user you already registered again is\nallowed, and does not change their email or password.\n\n<b>Important:</b> A user's id (`external_user_id` in the User payload) MUST be unique across environments. In systems where uniqueness cannot be guaranteed, we recommend prepending the id with the environment. For example, an integrator may be using the primary key in their User database table as the `external_user_id`. If they had separate databases per environment, it would be possible for these ids to collide. Instead, the integrator could send an `external_user_id` of the format `test-{user_primary_key}` and `prod-{user_primary_key}`.\n"
    },
    {
      "name": "Listings",
      "description": "Listing information drives the baseline of our price recommendations. The more detail\nyou can provide, the better our recommendations will be.\n\n<b>Important:</b> A listing id (`id` in the PUT Listing payload) MUST be unique across environments and users. In systems where uniqueness cannot be guaranteed, we recommend prepending the id with the environment and user id, if necessary. For example, an integrator may be using the primary key in their Listing database table as the listing's `id`. If they had separate databases per environment, it would be possible for these ids to collide. Instead, the integrator could send an `id` of the format `test-{listing_primary_key}` and `prod-{listing_primary_key}`.\n\nAnother example would would be if an integrator re-used listing ids between different users. In this case, the integrator could send an `id` of the format `{external_user_id}-{listing_primary_key}` to guarantee uniqueness.\n"
    },
    {
      "name": "Reservations",
      "description": "Reservations drive price anchoring and occupancy statistics for your properties. They\nare instrumental to our ability to make price recommendations.\n\n### During setup\n\nThe reservations create/update endpoint is called at least once per listing\nduring the initial setup of a user's account to create historical reservations.\nIntegrators MUST send us 1 year of historical reservations. Integrators SHOULD\nsend us 2 years of historical reservations on setup.\n\n### At least daily updates\n\n\nOnce the listing is setup and active, this endpoint MUST be called with\nreservation calendar changes. This MAY happen in real time or be batched,\nbut Wheelhouse MUST be notified of changes on the same day they occur.\n\nThe more detail included in the reservation object, the more accurate our recommendations will be.\n"
    },
    {
      "name": "Price Calendars",
      "description": "Price calendars help us keep our system up to date, understand usage, and drive some of\nour internal models for booking probabilities, gap night pricing, and more. They also provide us\nwith information on which stay dates are available, and which ones are blocked as well as what\nasking prices are currently set relative to our recommendation.\n"
    },
    {
      "name": "Price Recommendations",
      "description": ""
    },
    {
      "name": "Listing Preferences",
      "description": "Preferences allow to adapt the Wheelhouse recommendation engine to the host specifically for\neach listing. Read and update detailed pricing preferences for listings, including base price, seasonality,\ndiscounts, min stay rules, min/max price rules, occupancy pacing, custom date ranges, and more.\n"
    },
    {
      "name": "Listing Tags",
      "description": "Tags allow to easily filter and group listings by additional attributes that are not in the standard listing attributes.\nUser-defined and imported tags are accessible via this endpoint. System-managed tags (flags) are exposed separately via the [Listing Flags](#tag/Listing-Flags) endpoints.\n"
    },
    {
      "name": "Listing Flags",
      "description": "Flags are system-managed tags that Wheelhouse sets automatically on listings to convey internal state or signals.\nUnlike user-defined tags, flags are read-only and cannot be modified via the API.\n\nEach flag carries a `category` saying what it means for the listing's pricing: a setup that keeps Wheelhouse\nfrom pricing the listing as recommended (`engine`), a pricing setting worth reviewing (`settings`), a booking\nsignal (`performance`), or context (`info`).\n"
    },
    {
      "name": "Segments",
      "description": "Portfolio segments allow users to group listings by filter criteria. Use these endpoints to list a user's segments\nand to retrieve the listings that belong to a given segment. Segments are defined in the Wheelhouse UI; the API\nexposes read-only access. Authentication requires an Integration or RM API key plus a User API key (or RM key\nproviding both).\n"
    },
    {
      "name": "Changelog",
      "description": "### 2026-12-02\n* Documentation: `GET /listings/{id}/price_recommendations` starts its `data` array at\n  today's date in the listing's time zone, not UTC. No behavior change.\n\n### 2026-11-23\n* Documentation: every write endpoint now has a request example that works as sent, with\n  future dates and explicit values for destructive defaults (e.g. `copy_custom_rates: false`\n  on `PUT /preferences/{id}/copy`). No behavior change.\n* Documentation fix: the response schemas now match what the API returns. No behavior change.\n  The changes a client is most likely to notice:\n  * Preference responses return `minimum_stay_rules_v3`, `minimum_price_rules_v3` and\n    `maximum_price_rules_v3`, which were documented without the `_v3` suffix. Requests accept\n    both names.\n  * Failed listings on `PUT /preferences` are `[listing_id, error_message, status_code]`\n    arrays, and the `failed` values on `PUT /listings/{id}/reservations` are arrays of\n    messages. Both were documented as objects.\n  * Custom rate responses return all seven days (`null` where a fixed rate didn't set one),\n    `currency: null` on adjustment rates, and `expires_at`. They never return `adjustment`,\n    `weekday_price` or `weekend_price`.\n  * `GET /listings/in_market` and `POST /user_registration` don't wrap their response in\n    `data`, and `POST /user_registration` also returns the user's `id`.\n  * Price recommendations include `min_price`, and `max_price` on\n    `GET /listings/{id}/min_max_prices` is `null` on days without a maximum price.\n  * Fields that are always returned are marked required, and fields that can be `null` are\n    marked nullable.\n* Documentation fix: `PUT /listings` requires only `id`, `currency`, `location`,\n  `num_bedrooms`, `num_bathrooms`, `room_type` and `listing_preferences`. `links`,\n  `amenities`, `num_reviews`, `star_rating`, `num_photos` and `security_deposit` were listed\n  as required but never were. No behavior change.\n\n### 2026-11-19\n* **Behavior change:** A positive `min_price`, `max_price` or `minimum_stay` on\n  `PUT /listings` now replaces only the `global` rule for that setting. All other rules for\n  that setting are kept. Previously it also removed them. To change any other rule, use\n  `PUT /preferences/{id}`.\n* **Behavior change:** `GET /preferences/{id}/changelog` is no longer limited to the last 90\n  days. A request returns up to one year, ending at `end_date`, and older history is read by\n  moving `end_date` back.\n* **Behavior change:** `GET /preferences/{id}/changelog` leaves out `Settings changed` events\n  on the `end_date` day, like every other event type, so adjacent ranges no longer return a\n  settings change twice. The default `end_date` (tomorrow) is unaffected.\n* Added `event` to `GET /preferences/{id}/changelog` to return only some event types, e.g.\n  `?event[]=Settings changed&event[]=Custom rates`. Without it, every type is returned as before.\n\n### 2026-11-10\n* `GET /listings/{listing_id}/reservations` takes `date_filter_type=updated_at`, which returns\n  the reservations whose `updated_at` falls from `start_date` (included) to `end_date`\n  (excluded). With this filter type, `start_date` and `end_date` also take ISO 8601 timestamps\n  such as `2026-09-01T00:00:00Z`.\n* `GET /listings/{id}/price_recommendations` returns `events` on each day: the events in the\n  listing's market that run over that date. It is an empty array on a date that no event\n  covers.\n\n### 2026-11-09\n* Added `market_name` to the listing returned by `GET /listings`, `GET /listings/{id}`,\n  `PUT /listings` and `GET /segments/{segment_id}/listings`: the human-readable name of the\n  listing's `market_id`.\n\n### 2026-11-06\n* Documentation fix: added the missing entries dated 2026-03-06, 2026-03-17, 2026-03-27 and\n  2026-07-01 below. The API's behavior is unchanged.\n* Documentation fix: each tag from `GET` and `PUT /listings/{id}/tags` also returns its `id` and `type`\n  (`UserTag` or `ImportedTag`).\n* Documentation fix: `POST /preferences/{id}/preview` returns `201`, not `200`. It always has.\n* Documentation fix: `exclude_inactive` on `GET /listings` defaults to `true`, and on both\n  `GET /listings` and `GET /segments/{segment_id}/listings` it also leaves out listings that\n  are not linked to a channel.\n\n### 2026-11-04\n* Documentation fix: reservation `fees`, `taxes`, `discounts` and `deposits` now explain how\n  Wheelhouse totals each entry, with an example. The API's behavior is unchanged.\n\n### 2026-10-29\n* Add `GET /price_models`, listing the price models customers can pick from, and\n  `price_model_id` on `GET /listings/{id}/price_recommendations` and\n  `POST /preferences/{id}/preview` to price with one of them, now that several can be\n  available at once.\n* **Behavior change:** `price_model=opt_in` returns `400` when more than one opt-in model is\n  available; pass `price_model_id` instead. `price_model=current` prices with the model the\n  listing gets without a pick of its own.\n* Documentation fix: `price_model` has no default. Omitting it has always priced with the model\n  the listing is on.\n\n### 2026-10-27\n* `PUT /listings/{id}/bulk_custom_rates` with an empty `custom_rates` array returns a `200` with an empty\n  `updated_custom_rates`. Previously it failed with a `500`.\n\n### 2026-10-26\n* Add `smooth` to `last_minute_discount`, `far_future_premium` and `seasonality_adjustment`.\n  When `true`, the value eases between rules instead of stepping at each rule's edge.\n\n### 2026-10-23\n* `PUT /listings/{id}/reservations` no longer fails when the `reservations` array contains a `null` entry. The\n  other reservations are saved and the response is a `207` with a `failed` entry for each `null`, keyed by its\n  position in the array (e.g. `reservations[3]`). Previously the whole request failed with a `500`.\n\n### 2026-10-22\n* Add `historical_anchoring_price_source` to listing preferences. It sets which historical price\n  historical anchoring weighs in: `observed` (the listing's price as Wheelhouse saw it on the channel\n  once the date booked), `posted` (the price Wheelhouse last posted for the date before it booked) or\n  `posted_with_fallback` (the posted price where there is one, otherwise the observed price).\n  Preference reads return it, and preference writes and the preview take it. Listings that never\n  chose a source read `observed`, which is how they have been priced so far.\n\n### 2026-10-21\n* `PUT /listings/{id}/reservations` no longer fails when a reservation's nights reach outside the stay dates\n  Wheelhouse stores calendars for (about four years ahead, e.g. a typo'd end date in 2062). The reservation is\n  saved, the nights inside that range are added to the calendar, and the response is a `207` with a\n  `warnings` entry for that reservation naming the supported range. Previously the whole request failed with\n  a `500`, and so did later calendar updates for the listing.\n\n### 2026-10-17\n* Documentation fix: `GET /preferences` takes more than one listing only with `listing_ids` in\n  brackets, for example `?listing_ids[]=A&listing_ids[]=B`. Repeating the key without brackets\n  (`?listing_ids=A&listing_ids=B`) keeps only the last value, so the response contains one listing.\n  The API's behavior is unchanged.\n\n### 2026-10-16\n* With `attribution=true`, `GET /listings/{id}/price_recommendations` and\n  `POST /preferences/{id}/preview` now name the historical price behind each date historical\n  anchoring raised: `historical_anchor_date`, `historical_anchor_price` (in the response\n  `currency`), `historical_anchor_source` (`observed` or `posted`) and `historical_anchor_pct`, the\n  anchoring percentage in effect for the date. The fields are left out on dates anchoring did not\n  raise, and `attr_historical_anchoring` is unchanged.\n\n### 2026-10-14\n* **Behavior change:** `POST /user_registration` no longer takes over an existing Wheelhouse account by\n  email. If the email belongs to a Wheelhouse user you did not register, the request is rejected with\n  **409** and nothing changes; send that user's User API Key in the `X-User-API-Key` header to link\n  them instead. An invalid `X-User-API-Key` is rejected with **401**. Registering a user you already\n  registered still works, but no longer changes their email or password; `email` and `password` are set\n  only when the user is created.\n\n### 2026-10-12\n* Add `historical_anchoring_mode` to listing preferences. `blended`, the default and how every\n  listing has been priced so far, averages the historical price with the recommendation.\n  `anchor_only` takes the percentage of the historical price alone, so 50% of a $1,200 historical\n  price sets a $600 floor, below which the recommendation is raised. Preference reads return it,\n  and preference writes and the preview take it. Existing listings stay on `blended`.\n\n### 2026-10-09\n* Add `category` to each flag returned by `GET /listings/{id}/flags`: `engine`, `info`, `performance`\n  or `settings`, saying what the flag means for the listing's pricing. It is `null` for an older flag\n  that Wheelhouse no longer raises. New flags can be added to any category, so decide how to treat a\n  flag from its `category` rather than from a list of flag names.\n\n### 2026-10-08\n* Integration API keys are now self-serve. Create, rotate and revoke your keys on the\n  [Integration Key](https://app.usewheelhouse.com/u/account/integration_token) page. See\n  [Authentication](#section/Authentication/IntegrationApiKey) for how keys work and how to rotate\n  one without downtime.\n* **Behavior change:** a key's full value is shown only when it is created, and can't be viewed again\n  afterwards.\n\n### 2026-10-07\n* When a write would give a channel account an `integrators_user_id` (or, on a first listing, the\n  Wheelhouse user id) that another credential on the channel already holds, `POST /user_registration`,\n  `PUT /user` and `PUT /listings` now answer `409` with the message\n  `external user id … is already in use on this channel`. Previously `PUT /user` and `PUT /listings`\n  also failed with `409`, but the body was the raw database error, and `POST /user_registration`\n  answered `integrators_user_id … is already registered to another Wheelhouse user`. Accounts linked\n  through OAuth are not affected.\n\n### 2026-10-06\n* Add `include_photos` query parameter to `GET /listings`. **Behavior change:** each listing's\n  `meta.photos` is now returned only when you pass `include_photos=true`; `num_photos` is still returned.\n\n### 2026-09-18\n* Preferences now document and validate `fee_adjustments`: the estimated share of fees\n  guests pay on top of the nightly rate (`total_fee_percentage`, `-100` or more)\n  and whether it is refreshed weekly from the listing's recent reservations\n  (`auto_update`). Every preferences read returns it, `null` when nothing is configured,\n  and `PUT /preferences` and `PUT /preferences/{id}` take it. The object replaces\n  the stored one as a whole, and `null` clears it. **Behavior change:** the object was\n  previously stored as sent, without validation; a `fee_adjustments` that is not an\n  object, or a `total_fee_percentage` below `-100`, is now rejected with **400**.\n\n### 2026-09-17\n* Documentation fix: `custom_type` on `GET /listings/{listing_id}/price_recommendations`\n  and the preferences preview response has always been `null` when the night\n  is a Wheelhouse recommendation, not an empty string. The schema now marks\n  the field nullable and the description matches. No behavior or\n  response-shape change.\n\n### 2026-08-06\n* Add `canceled_at` to the reservation object returned by `GET /listings/{listing_id}/reservations`.\n  It carries the datetime a reservation was cancelled, or `null` if it stands, and is set whenever\n  `status` is `Canceled` — previously the status told you a reservation had been cancelled but not when.\n* Documentation fix: the same response object was documented with a field named `booket_at`.\n  The field the endpoint actually returns is `booked_at`; the typo has been corrected. No behavior change.\n\n### 2026-07-01\n* **Behavior change:** `exclude_inactive` on `GET /listings` defaults to `true`, matching\n  `GET /segments/{segment_id}/listings`. Pass `exclude_inactive=false` to include inactive\n  and unlinked listings.\n\n### 2026-04-20\n* All **PUT** endpoints now return **409 Conflict** when a concurrent request for the same resource is already in progress. Retry the request after the concurrent request completes.\n* Added `GET /listings/{listing_id}/price_calendar` endpoint to fetch the price calendar for a single listing.\n\n### 2026-04-08\n* Add full documentation of preferences API endpoints and parameters.\n* Extension of `GET /listings/{id}/base_price_recommendation` endpoint to include attribution breakdown.\n\n### 2026-03-27\n* **Behavior change:** `exclude_inactive=true` on `GET /listings` and\n  `GET /segments/{segment_id}/listings` also leaves out listings that are not linked to a\n  channel. It previously left out inactive listings only.\n\n### 2026-03-17\n* **Behavior change:** `DELETE /accounts`, `DELETE /listings/{id}`,\n  `DELETE /listings/{listing_id}/custom_rates` and `DELETE /listings/{listing_id}/bulk_custom_rates`\n  (when every range is removed) return `204 No Content` with an empty body. They previously\n  returned `200`.\n* **Behavior change:** `PUT /preferences/{id}/{setting}` returns `204 No Content` with an empty\n  body. It previously returned `200` with the listing's preferences.\n\n### 2026-03-16\n* Add `GET /preferences` endpoint to retrieve preferences for a batch of listings by `listing_ids`.\n* Add `GET /preferences/{id}` endpoint to retrieve preferences for a single listing.\n* Add `GET /preferences/{id}/changelog` endpoint to retrieve recent preference change events for a listing.\n* Document 207 partial-success response for `PUT /listings/{id}/price_calendar` when some `unit_name` values in the payload do not match any units on a multi-unit listing.\n\n### 2026-03-10\n* `min_price`, `max_price`, and `minimum_stay` on `PUT /listings`\n  now ignore a value of `0`. Sending `0` is treated the same as\n  omitting the field — existing rules are preserved. Only positive\n  values update the rule configuration.\n\n### 2026-03-08\n* Add `date_filter_type` query parameter to `GET /listings/{listing_id}/reservations` endpoint.\n  Accepts `stay_date` (default, existing behavior) to filter by reservation stay dates, or `booked_at`\n  to filter by the date the reservation was booked.\n* Add `GET /listings/{id}/flags` endpoint to retrieve system-managed flags for a listing.\n* Tags endpoint (`GET /listings/{id}/tags`) no longer returns system-managed tags (flags). These are now exposed exclusively via the flags endpoint.\n\n### 2026-03-06\n* Add `market_id` to the listing object: the Wheelhouse market the listing is in, or `null`\n  when it is not in one.\n\n### 2026-02-27\n* Add `GET /segments` endpoint to list all portfolio segments for the authenticated user.\n* Add `GET /segments/{segment_id}/listings` endpoint to list listings within a segment. Supports optional\n  `exclude_inactive` query parameter and pagination (per_page, page, offset). Accessible with Integration or RM\n  API token together with User API token.\n\n### 2026-01-26\n* Add `price_model` query parameter to `/preferences/{id}/preview` endpoint to allow for the use of different price model versions.\n* If the `price_model` query parameter is not provided, both the preview and price_recommendations endpoint will use the price model that is currently active for the listing.\n\n### 2026-01-07\n* Add `monthly_seasonality` endpoint to retrieve recommended seasonality factors by month for a listing.\n\n### 2026-01-05\n* Add back `listing_preferences.nickname` to listing and listings responses.\n\n### 2025-12-01\n* Add `price_model` query parameter to `/listings/{id}/price_recommendations` endpoint to allow for the use of different price model versions.\n\n### 2025-11-20\n* Add endpoint for previewing price recommendations for a listing based on hypothetical preference updates.\n\n### 2024-05-08\n* Removed endpoint for bulk fetching `base_price_recommendation` for all listings in account. Fetching base price recommendations is still available on a per-listing basis.\n\n### 2025-04-21\n* Add `max_price` reset behavior to listing endpoint. Passing a value of `null` for ['listing_preference']['max_price'] will reset the global max price rule for this listing, if it exists.\n\n### 2025-04-09\n* Add optional `in_market` field to listing response object when `show_market_coverage` is true.\n\n### 2025-04-08\n* Add `base_price_recommended`, `base_price_conservative`, and `base_price_aggressive` to price recommendations response payload.\n\n### 2025-03-21\n* Update rate limit description to make clear that these limits are arrived at through discussion with the API partner.\n\n### 2025-03-14\n* Update documentation to reflect that 200 is the response status code when calling `PUT /listings/{id}/price_calendar`\n\n### 2025-03-05\n* Make phone number an optional field when creating a user\n\n### 2024-08-28\n* Add 423 status to /price_recommendations endpoint, to indicate cases recommendations are still in the process of being generated.\n\n### 2024-08-16\n* Add endpoint for bulk deletion of a given listing's custom rates.\n\n### 2024-08-15\n* Add endpoint for bulk updating of a given listing's custom rates.\n\n### 2024-08-13\n* Extend custom rate endpoint to include full functionality (eg custom per-day adjustments).\n* Include examples in documentation.\n\n### 2024-07-08\n* Renamed Pricing API to Wheelhouse Pro API.\n\n### 2024-05-08\n* Added endpoint for bulk fetching `base_price_recommendation` for all listings in account.\n\n### 2024-04-23\n* Add endpoint for bulk updating of listing preferences.\n\n### 2024-04-17\n* Add wheelhouse_created_at attribute to listing response object.\n\n### 2024-04-15\n* Added endpoint for switching pricing tiers for a given listing.\n\n### 2024-03-06\n* Address in location object is optional if latitude and longitude, or postal code and country are provided.\n* Added correct enum values for fee object `type` attribute.\n\n### 2024-02-22\n* Added a `base_price_recommendation` endpoint to fetch recommended base price options.\n\n### 2023-07-25\n* Allow `base_price` to be set via the `/preferences/{id}` endpoint.\n\n### 2023-07-25\n* Added endpoint for copying listing preferences from one listing to another.\n\n### 2023-07-17\n* Added min/max price endpoint to fetch daily price limits.\n\n### 2023-06-16\n* Added an endpoint (`/preferences/{id}`) to define detailed custom preferences. This endpoint is experimental and subject to changes in the future.\n\n### 2023-05-30\n* Add num_included_adults, num_included_children, payout_total and cancelled_total to reservation object.\n\n### 2023-05-05\n* Returns a 204 response if the check-in/check-out calendar is fetched for a listing that does not have check-in/check-out enabled.\n\n### 2023-05-05\n* Allow company and portfolio size to be set for a User via the API.\n\n### 2023-05-02\n* Mark base_price attribute of listing as deprecated and ignore value.\n\n### 2023-03-02\n* Correct description of num_max_guests\n\n### 2023-03-02\n* Add an endpoint (`/listings/{id}/recent_changes`) for retrieving the times of the most-recent changes for a listing\n\n### 2023-02-02\n* Clarify that fee[:type] in the listing object is an enum.\n\n### 2023-02-01\n* Added further explanation of partial create/update reservation 207 response\n\n### 2022-12-05\n* Added endpoint to update user information.\n\n### 2022-10-21\n* Added check-in/check-out endpoint to fetch rules.\n\n### 2022-09-28\n* Added `external_user_id` to all webhooks\n\n### 2022-07-28\n* Added experimental endpoint to retrieve reservations of a listing. At this point, the interface\n  (especially the response) is not fixed and might change in the future.\n\n### 2022-06-15\n* Added automation endpoint to allow switching the `automatic_rate_posting_enabled` flag.\n\n### 2022-06-10\n* Added `user_initiated` attribute to webhook payloads to differentiate between a webhook was\n  initiated by a user action and one that was called through automatic routines.\n\n### 2022-06-10\n* Removed duplicate `nickname` attribute from the `Listing#listing_preferences`.\n  Please just use the `Listing#nickname` attribute instead.\n\n### 2022-06-08\n* Added unchanged reservation ids to the response of the `PUT reservations` endpoint in the\n  `unchanged` response field. These indicate that the reservations were already present and\n  required no update.\n\n### 2022-05-06\n* Added capability for custom rates to be percentage based adjustments.\n\n### 2022-02-14\n* Added custom rates endpoints to set and delete custom fixed rates for a listing.\n\n### 2021-12-13\n* Added `external_user_id` as an identifying parameter to web hook callbacks.\n\n### 2021-12-08\n* Fix: Ensure accounts are activated when data is pushed to Wheelhouse.\n* Added web hook for account deactivation.\n* Added global minimum stay to price recommendations response payload.\n\n### 2021-11-26\n* Improved error handling: Aleays differentiating between listings not found (404), listings\n  being inactive (406), and listings being out of market (422).\n\n### 2021-11-17\n* Added the option to request detailed daily attribution for price recommendations.\n* Providing information on the type of a custom rate overwriting price recommendations: `fixed`\n  (i.e. a fixed custom price) or `adjusted` (i.e. a percentage adjustment to the Wheelhouse\n  recommendation).\n\n### 2021-09-03\n* Fix: Correctly raise rate limiting as a 429 response.\n\n### 2021-08-02\n* Deprecated `Listing#meta` atrribute object and lift the relevant attribute to the top level\n  instead. The old `meta` attribute still works as well for now but will evventually be\n  dropped in a future version.\n\n### 2021-07-16\n* Updated basic execution flow-chart to reflect requirements of sending a pricing calendar on\n  initial setup and added optional steps.\n* Added details on available web hooks.\n* Added required fields of `booked_at` and either `nightly_subtotal` or `nightly_prices` on\n  reservations.\n\n### 2021-07-14\n* Added detailed list of accepted values for `room_type`.\n\n### 2021-07-08\n* Added PMS / CM execution flow and UX flow charts.\n\n### 2021-06-14\n* Added endpoint to pull long term discounts.\n* Added endpoint to pull pricing tier information.\n"
    }
  ],
  "security": [
    {
      "IntegrationApiKey": [],
      "UserApiKey": []
    }
  ],
  "components": {
    "securitySchemes": {
      "IntegrationApiKey": {
        "name": "X-Integration-API-Key",
        "in": "header",
        "type": "apiKey",
        "description": "Every integration authenticates with an integration API key. To get started,\n[contact us](mailto:tech-support@usewheelhouse.com) with a description of your use case and we\nwill set up your integration account.\n\n### Managing your keys\n\nOnce your integration account is set up, sign in to Wheelhouse with it and create and revoke keys\nyourself on the [Integration Key](https://app.usewheelhouse.com/u/account/integration_token) page, under Channel Admin in your account settings.\n\n* **Environments.** Each key belongs to the testing or the production environment. Testing keys\n  are available as soon as your account is set up. Production keys become available once we have\n  approved your integration for production. Contact us when you are ready for that review.\n* **Shown once.** A key's full value is shown only when you create it. Copy it into your secret\n  storage right away: you can't view it again later, on the page or through support. If you lose a\n  key, create a new one and revoke the lost one.\n* **Up to 3 active keys per environment.** Revoke a key before creating a fourth.\n* **Expiry.** Testing keys expire 3 months after they are created. Production keys don't expire\n  unless your existing production keys do, in which case a new key expires with the last of them.\n* **Rate limit.** A new key gets the lowest rate limit among your active keys in that\n  environment, so a rotated key keeps the limit you already have. See\n  [Rate Limit](#tag/Rate-Limit) for the defaults.\n* **Revoking is immediate.** Requests made with a revoked key are rejected with `401`.\n\n### Rotating a key without downtime\n\n1. Create a new key in the same environment.\n2. Deploy it to your integration, replacing the old key.\n3. Confirm requests succeed with the new key, then revoke the old key.\n\nWe recommend rotating keys periodically, and immediately if a key may have been exposed.\n"
      },
      "UserApiKey": {
        "name": "X-User-API-Key",
        "in": "header",
        "type": "apiKey",
        "description": "Requests to the API must be made in a specific User's context. When a user is registered, we will return an\nAPI key for that specific user.\n\n**BOTH API key headers are required** to make Wheelhouse Pro API calls, except for the endpoints that\nwork without a user context, such as creating a new end user and checking market coverage\n(`GET /listings/in_market`). Each endpoint lists the keys it needs.\n"
      }
    },
    "schemas": {
      "baseApiResponse": {
        "type": "object",
        "properties": {
          "error_messages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "api_warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "inMarketResponse": {
        "type": "object",
        "required": [
          "in_market",
          "market_name"
        ],
        "properties": {
          "in_market": {
            "description": "True if location is in a market, false otherwise.",
            "type": "boolean"
          },
          "market_name": {
            "description": "Market name if covered by a market, an empty string otherwise.",
            "type": "string"
          }
        }
      },
      "userApiResponse": {
        "type": "object",
        "required": [
          "id",
          "email",
          "first_name",
          "last_name",
          "user_api_key"
        ],
        "properties": {
          "id": {
            "description": "The Wheelhouse user ID.",
            "type": "integer"
          },
          "first_name": {
            "description": "The user's first name. `null` when linking an existing Wheelhouse user who has none.",
            "type": "string",
            "nullable": true
          },
          "last_name": {
            "description": "The user's last name. `null` when linking an existing Wheelhouse user who has none.",
            "type": "string",
            "nullable": true
          },
          "email": {
            "description": "The user's email.",
            "type": "string"
          },
          "user_api_key": {
            "description": "The user specific API key. `null` if the user has no valid user API key.",
            "type": "string",
            "nullable": true
          }
        }
      },
      "listOfStringsApiResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/baseApiResponse"
          },
          {
            "type": "object",
            "required": [
              "data",
              "unchanged",
              "failed"
            ],
            "properties": {
              "data": {
                "description": "List of processed reservation IDs (created or updated)",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "unchanged": {
                "description": "list of unprocessed reservation IDs (reservations were present and required no update)",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "failed": {
                "description": "hash where the key is the ID of the reservation that failed to be created or updated and the value is an array of field error messages. A `null` entry in the request has no ID, so its key is its position in the `reservations` array, e.g. `reservations[3]`",
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "example": {
                  "res-1001": [
                    "end_date: must be after start_date"
                  ],
                  "reservations[3]": [
                    "Reservation is null"
                  ]
                }
              },
              "warnings": {
                "description": "hash where the key is the ID of a reservation that was saved with a caveat and the value is an array of messages, e.g. that some of its nights are outside the stored range of stay dates",
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        ]
      },
      "recommendationsApiResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/baseApiResponse"
          },
          {
            "type": "object",
            "required": [
              "data",
              "base_price",
              "base_price_recommended",
              "base_price_conservative",
              "base_price_aggressive",
              "global_min_stay",
              "automatic_rate_posting_enabled"
            ],
            "properties": {
              "data": {
                "description": "Daily recommendations for prices. Includes min stays as configured by settings.",
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "stay_date",
                    "price",
                    "currency",
                    "custom_type",
                    "min_price",
                    "events"
                  ],
                  "properties": {
                    "stay_date": {
                      "description": "The date of the given price info (YYYY-MM-DD).",
                      "type": "string",
                      "format": "date"
                    },
                    "price": {
                      "description": "The recomended nightly price for this day.",
                      "type": "number"
                    },
                    "currency": {
                      "description": "The ISO-4217 3-letter currency code of the price.",
                      "type": "string"
                    },
                    "min_stay": {
                      "description": "The minimum stay applied to reservations overlapping this day. Omitted unless min stays are configured, and `null` on days no minimum stay rule covers.",
                      "type": "integer",
                      "nullable": true
                    },
                    "min_price": {
                      "description": "The minimum nightly price applied to this day, or `null` when none applies.",
                      "type": "integer",
                      "nullable": true
                    },
                    "custom_type": {
                      "description": "Reflects if this price is based on a custom rate from the user. `null` means this is the Wheelhouse recommendation, otherwise it can be one of `fixed` (i.e. a fixed custom price) or `adjusted` (i.e. a percentage adjustment to the Wheelhouse recommendation).",
                      "type": "string",
                      "nullable": true
                    },
                    "events": {
                      "description": "The events in the listing's market that run over this date. An empty array means no event runs over the date. Several events can run over one date.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "title",
                          "start_date",
                          "end_date"
                        ],
                        "properties": {
                          "title": {
                            "description": "The name of the event.",
                            "type": "string",
                            "example": "Jazz Festival"
                          },
                          "start_date": {
                            "description": "The first date of the event (YYYY-MM-DD).",
                            "type": "string",
                            "format": "date"
                          },
                          "end_date": {
                            "description": "The last date of the event (YYYY-MM-DD), inclusive.",
                            "type": "string",
                            "format": "date"
                          }
                        }
                      }
                    },
                    "attr_seasonality": {
                      "description": "The seasonality attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_local_demand": {
                      "description": "The local demand attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_availability": {
                      "description": "The availability/gap night attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_time": {
                      "description": "The time-based attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_custom_weekend": {
                      "description": "The custom weekend attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_scarcity": {
                      "description": "The scarcity attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_occupancy_pacing": {
                      "description": "The occupancy pacing attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_revenue_pacing": {
                      "description": "The revenue pacing attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_market_health_barometer": {
                      "description": "The market health barometer attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_historical_anchoring": {
                      "description": "The historical anchoring attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_restriction": {
                      "description": "The min/max restriction attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "attr_user_adjustment": {
                      "description": "The user customization (see `custom_type` above) attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                      "type": "integer"
                    },
                    "historical_anchor_date": {
                      "description": "The earlier date whose price historical anchoring held this date's recommendation up to, on the same day of the week, in the same week a year earlier, or two years earlier when that date has no price. Only present if `attribution` query parameter is set to `true` and historical anchoring raised this date's price.",
                      "type": "string",
                      "format": "date"
                    },
                    "historical_anchor_pct": {
                      "description": "The historical anchoring percentage in effect for this date. Present with `historical_anchor_date`.",
                      "type": "number"
                    },
                    "historical_anchor_price": {
                      "description": "The price on `historical_anchor_date` that anchoring weighed in, in this response's `currency`. Present with `historical_anchor_date`.",
                      "type": "integer"
                    },
                    "historical_anchor_source": {
                      "description": "Where `historical_anchor_price` comes from, `observed` (the listing's price as Wheelhouse saw it on the channel once the date booked) or `posted` (the price Wheelhouse last posted for the date before it booked). Present with `historical_anchor_date`.",
                      "type": "string",
                      "enum": [
                        "observed",
                        "posted"
                      ]
                    }
                  }
                }
              },
              "base_price": {
                "description": "The selected base price used to calculate the recommended prices.",
                "type": "integer"
              },
              "base_price_recommended": {
                "description": "The Wheelhouse data-driven recommended base price.",
                "type": "integer"
              },
              "base_price_conservative": {
                "description": "The Wheelhouse data-driven conservative base price.",
                "type": "integer"
              },
              "base_price_aggressive": {
                "description": "The Wheelhouse data-driven aggressive base price.",
                "type": "integer"
              },
              "global_min_stay": {
                "description": "The global min stay setting, or `null` if the listing has no global minimum stay rule.",
                "type": "integer",
                "nullable": true
              },
              "automatic_rate_posting_enabled": {
                "description": "Whether or not user wishes to use the Wheelhouse recommended prices for this listing. Integrators whose users configure prices via the Wheelhouse website should only update prices if this is true.",
                "type": "boolean"
              }
            }
          }
        ]
      },
      "location": {
        "type": "object",
        "description": "Attributes describing a location with enough accuracy to identify a postal code. Prefer more precision.",
        "properties": {
          "country": {
            "description": "The ISO-3166 2 letter country code.",
            "type": "string",
            "minLength": 2,
            "maxLength": 2,
            "nullable": true
          },
          "postal_code": {
            "description": "A regional postal code for within the given country.",
            "type": "string",
            "nullable": true
          },
          "address": {
            "description": "A full mailing address.",
            "type": "string",
            "maxLength": 255,
            "nullable": true
          },
          "latitude": {
            "description": "The latitude coordinate of this location.",
            "type": "number",
            "minimum": -90,
            "maximum": 90,
            "nullable": true
          },
          "longitude": {
            "description": "The longitude coordinate of this location.",
            "type": "number",
            "minimum": -180,
            "maximum": 180,
            "nullable": true
          }
        },
        "anyOf": [
          {
            "required": [
              "latitude",
              "longitude"
            ]
          },
          {
            "required": [
              "country",
              "postal_code"
            ]
          },
          {
            "required": [
              "address"
            ]
          }
        ]
      },
      "meta": {
        "type": "object",
        "deprecated": true,
        "nullable": true,
        "description": "Container for additional non-required attributes that will help price this listing. See new top-level attributes that are recommended to provide this data.",
        "properties": {
          "amenities": {
            "description": "A list of amenities available at this listing",
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "enum": [
                "24_hour_check_in",
                "air_conditioning",
                "baby_bath",
                "baby_monitor",
                "babysitter_recommendations",
                "balcony",
                "bathroom_essentials",
                "bathtub",
                "bbq",
                "beach_essentials",
                "beachfront",
                "bed_linens",
                "bedroom_comforts",
                "bicycles",
                "breakfast",
                "building_staff",
                "cable_or_satellite_tv",
                "carbon_monoxide_detector",
                "ceiling_fans",
                "changing_table",
                "childrens_books_and_toys",
                "childrens_dinnerware",
                "cleaning_before_checkout",
                "coffee_maker",
                "cooking_basics",
                "deck",
                "dishes_and_silverware",
                "dishwasher",
                "dog_friendly",
                "dryer",
                "elderly_accessible",
                "elevator",
                "essentials",
                "ev_charger",
                "extra_pillows_and_blankets",
                "family_kid_friendly",
                "fire_extinguisher",
                "fireplace",
                "fireplace_guards",
                "first_aid_kit",
                "freezer",
                "fresh_linens",
                "fridge",
                "game_console",
                "garage",
                "gym",
                "hair_dryer",
                "hangers",
                "heating",
                "high_chair",
                "host_greets_you",
                "hot_tub",
                "hot_water",
                "internet",
                "iron",
                "jacuzzi",
                "kettle",
                "keypad",
                "kitchen",
                "lake_access",
                "laptop_friendly_workspace",
                "lock_on_bedroom_door",
                "lockbox",
                "long_term_stays_allowed",
                "luggage_dropoff",
                "microwave",
                "outlet_covers",
                "oven",
                "parking",
                "parking_free_on_premises",
                "parking_free_street",
                "parking_paid",
                "parking_paid_on_premises",
                "patio",
                "pets_allowed",
                "pool",
                "pool_cover",
                "pool_toys",
                "private_entrance",
                "private_living_room",
                "private_yard",
                "refrigerator",
                "room_darkening_shades",
                "sauna",
                "self_check_in",
                "shampoo",
                "shared_pool",
                "single_level_home",
                "ski_in_out",
                "smart_lock",
                "smoke_detector",
                "smoking_allowed",
                "step_free_access",
                "stereo",
                "stove",
                "streaming",
                "suitable_for_events",
                "table_corner_guards",
                "towel",
                "travel_crib",
                "tv",
                "washing_machine",
                "water_views",
                "waterfront",
                "window_guards"
              ]
            }
          },
          "num_beds": {
            "description": "The number of actual beds within the listing",
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "num_reviews": {
            "description": "The number of reviews on the listing",
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "num_photos": {
            "description": "The number of photos on the listing",
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "photos": {
            "description": "A list of photos of the listing. Requests must send `regular` for each photo. Responses only carry `thumbnail`.",
            "type": "array",
            "nullable": true,
            "items": {
              "type": "object",
              "properties": {
                "caption": {
                  "description": "The photo's caption",
                  "type": "string",
                  "nullable": true
                },
                "regular": {
                  "description": "An url pointing to a normal web sized photo. Required in requests, not returned in responses.",
                  "type": "string"
                },
                "thumbnail": {
                  "description": "An url pointing to a thumbnail sized photo",
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "security_deposit": {
            "description": "An extra charge held against damage to the unit at booking. In the currency of the listing.",
            "type": "number",
            "minimum": 0,
            "nullable": true
          },
          "source_user_id": {
            "description": "The user id of the user on the integration channel",
            "type": "string",
            "nullable": true
          },
          "thumb_url": {
            "description": "URL of thumbnail image for listing. Default to first photos thumbnail if not specified.",
            "type": "string",
            "nullable": true
          }
        }
      },
      "listing_preference": {
        "type": "object",
        "description": "Settable attributes on the listing that help us compare apples to apples.",
        "required": [
          "num_included_guests",
          "num_max_guests",
          "fees"
        ],
        "properties": {
          "num_included_guests": {
            "description": "The number of guests included in the nightly price of the unit.",
            "type": "integer"
          },
          "num_max_guests": {
            "description": "The maximum number of guests that can stay in the unit.",
            "type": "integer"
          },
          "fees": {
            "description": "A list of known fees associated with booking this listing",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/fee"
            }
          },
          "automatic_rate_posting_enabled": {
            "description": "Whether or not user wishes to use the Wheelhouse recommended prices for this listing. Integrators whose users configure prices via the Wheelhouse website should only update prices if this is true.",
            "type": "boolean"
          },
          "weekly_discount_pct": {
            "description": "The percent discount given to bookings >= 7 days.",
            "type": "number"
          },
          "monthly_discount_pct": {
            "description": "The percent discount given to bookings >= 28 days.",
            "type": "number"
          },
          "base_price": {
            "deprecated": true,
            "description": "The base price used for Wheelhouse price recommendations. Read-only; this cannot be updated via the `PUT /listings` endpoint. `null` until Wheelhouse has a base price for the listing.",
            "type": "number",
            "nullable": true
          },
          "min_price": {
            "description": "The listing's global minimum nightly price. A positive value replaces only the `global` rule in `minimum_price_rules`. All other minimum price rules are kept. `0`, `null` or omitting the field changes nothing. To change any other minimum price rule, use `PUT /preferences/{id}`.",
            "type": "integer"
          },
          "max_price": {
            "description": "The listing's global maximum nightly price. A positive value replaces only the `global` rule in `maximum_price_rules`. `null` removes only the `global` rule. All other maximum price rules are kept. `0` or omitting the field changes nothing. To change any other maximum price rule, use `PUT /preferences/{id}`.",
            "type": "integer",
            "nullable": true
          },
          "minimum_stay": {
            "description": "The listing's global minimum stay, in nights. A positive value replaces only the `global` rule in `minimum_stay_rules`. All other minimum stay rules are kept. `0`, `null` or omitting the field changes nothing. To change any other minimum stay rule, use `PUT /preferences/{id}`.",
            "type": "integer"
          },
          "nickname": {
            "description": "User-editable nickname for the listing set within Wheelhouse. `null` if none is set.",
            "type": "string",
            "nullable": true
          }
        }
      },
      "base_price_attribution": {
        "type": "object",
        "description": "Consolidated signed amounts (in the response `currency`) for the Wheelhouse recommended base price\nbreakdown, grouped to match the in-app \"Recommended Breakdown\" rows. Values are integers (rounded).\n",
        "required": [
          "amenities_fees",
          "bedrooms_bathrooms",
          "guests",
          "location",
          "market_baseline",
          "observed_bookings",
          "occupancy",
          "room_type"
        ],
        "properties": {
          "market_baseline": {
            "description": "Market-wide average listing price.",
            "type": "integer"
          },
          "bedrooms_bathrooms": {
            "description": "Combined impact of bedroom and bathroom count.",
            "type": "integer"
          },
          "room_type": {
            "description": "Room / listing type impact.",
            "type": "integer"
          },
          "guests": {
            "description": "Combined impact of sleeps, extra guest fee, and included-guests positioning.",
            "type": "integer"
          },
          "location": {
            "description": "Location specific impact.",
            "type": "integer"
          },
          "amenities_fees": {
            "description": "Combined impact of amenities, cleaning fee, photo count, and security deposit.",
            "type": "integer"
          },
          "occupancy": {
            "description": "Impact of occupancy positioning vs market.",
            "type": "integer"
          },
          "observed_bookings": {
            "description": "Effect of observed median booking price vs the pure model price.",
            "type": "integer"
          }
        }
      },
      "base_price_recommendation": {
        "type": "object",
        "description": "Recommended and selected base prices, anchoring context, and a consolidated attribution breakdown. Monetary\nfields use the response `currency` (listing currency by default, or the `currency` query parameter); amounts\nare converted from the listing market currency inside Wheelhouse.\n",
        "required": [
          "base_price_recommended",
          "base_price_conservative",
          "base_price_aggressive",
          "base_price_selected",
          "anchor_credibility",
          "anchor_price",
          "base_price_attribution",
          "currency"
        ],
        "properties": {
          "base_price_recommended": {
            "description": "Recommended base nightly price.",
            "type": "integer"
          },
          "base_price_conservative": {
            "description": "Conservative variant.",
            "type": "integer"
          },
          "base_price_aggressive": {
            "description": "Aggressive variant.",
            "type": "integer"
          },
          "base_price_selected": {
            "description": "Currently active base price for the listing (may differ from recommendation if set manually).",
            "type": "integer"
          },
          "anchor_credibility": {
            "description": "Effective anchoring strength as a percentage. Aligns\nwith \"credibility\" shown in the app for observed bookings.\n",
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "anchor_price": {
            "description": "Median observed booking price used in anchoring, when available.",
            "nullable": true,
            "type": "integer"
          },
          "base_price_attribution": {
            "$ref": "#/components/schemas/base_price_attribution"
          },
          "currency": {
            "description": "ISO-4217 code all monetary amounts are expressed in.",
            "type": "string"
          }
        }
      },
      "channel_ids": {
        "type": "object",
        "description": "A mapping of supported channel names to the channel's listing id. We use these to dedupe listings and it improves our demand modeling. For unit type inventory, this can be a comma-separated list to denote all individual units on the channel. Note that this is not used to create channel-specific pricing.",
        "nullable": true,
        "properties": {
          "airbnb": {
            "type": "string",
            "nullable": true
          },
          "tripadvisor": {
            "type": "string",
            "nullable": true
          },
          "vrbo": {
            "type": "string",
            "nullable": true
          },
          "wheelhouse": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "basic_listing": {
        "type": "object",
        "description": "The listing object.",
        "properties": {
          "id": {
            "description": "The integration partner's unique listing identifier. <b>This MUST be unique across environments and users.</b>\n",
            "type": "string"
          },
          "wheelhouse_id": {
            "description": "Wheelhouse's unique listing indentifier. Always set in responses.",
            "type": "integer"
          },
          "market_id": {
            "description": "Wheelhouse market identifier for the listing's geographic market, or `null` if the listing is not in a market.",
            "type": "integer",
            "nullable": true
          },
          "market_name": {
            "description": "Human-readable name of the market identified by `market_id`, e.g. `San Francisco, CA, United States`, or `null` if the listing is not in a market.",
            "type": "string",
            "nullable": true
          },
          "title": {
            "description": "<span style=\"color:red\">(Recommended)</span> The listing's name to show in the UI.",
            "type": "string",
            "nullable": true
          },
          "location": {
            "$ref": "#/components/schemas/location"
          },
          "num_bedrooms": {
            "description": "The number of bedrooms included in the unit. Whole numbers only.",
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "num_beds": {
            "description": "The number of actual beds within the listing",
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "num_bathrooms": {
            "description": "The number of bathrooms included in the unit, e.g. 1 or 1.5.",
            "type": "number",
            "minimum": 0,
            "nullable": true
          },
          "room_type": {
            "description": "Description of the type of room offered. One of `shared` (a room shared with other guests), `private` (a private room in a shared larger accommodation), `apartment` (a whole apartment in a larger building), `entire_place` (a house where the entire building is available to the guest), `hotel_room` (a room in a classic hotel).",
            "type": "string",
            "nullable": true,
            "enum": [
              "shared",
              "private",
              "apartment",
              "entire_place",
              "hotel_room"
            ]
          },
          "property_type": {
            "description": "<span style=\"color:red\">(Recommended)</span> Description of the property this rental is in.",
            "type": "string",
            "nullable": true,
            "enum": [
              "house",
              "cabin",
              "bnb",
              "boat",
              "bus",
              "camping",
              "camper",
              "castle",
              "hostel",
              "hotel",
              "houseboat",
              "island",
              "tower",
              "mill"
            ]
          },
          "currency": {
            "description": "The ISO-4217 currency code this listing uses for pricing.",
            "type": "string",
            "nullable": true
          },
          "security_deposit": {
            "description": "An extra charge held against damage to the unit at booking. In the currency of the listing.",
            "type": "number",
            "minimum": 0,
            "nullable": true
          },
          "star_rating": {
            "description": "The average review rating of the listing. 0 is the lowest possible rating, 5 is the highest possible rating.",
            "type": "number",
            "minimum": 0,
            "maximum": 5,
            "nullable": true
          },
          "num_reviews": {
            "description": "The number of reviews on the listing.",
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "num_photos": {
            "description": "The number of photos on the listing.",
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "thumb_url": {
            "description": "<span style=\"color:red\">(Recommended)</span> URL of thumbnail image for listing. Default to first photos thumbnail if not specified.",
            "type": "string",
            "nullable": true
          },
          "amenities": {
            "description": "A list of amenities available at this listing.",
            "type": "array",
            "nullable": true,
            "items": {
              "type": "string",
              "enum": [
                "24_hour_check_in",
                "air_conditioning",
                "baby_bath",
                "baby_monitor",
                "babysitter_recommendations",
                "balcony",
                "bathroom_essentials",
                "bathtub",
                "bbq",
                "beach_essentials",
                "beachfront",
                "bed_linens",
                "bedroom_comforts",
                "bicycles",
                "breakfast",
                "building_staff",
                "cable_or_satellite_tv",
                "carbon_monoxide_detector",
                "ceiling_fans",
                "changing_table",
                "childrens_books_and_toys",
                "childrens_dinnerware",
                "cleaning_before_checkout",
                "coffee_maker",
                "cooking_basics",
                "deck",
                "dishes_and_silverware",
                "dishwasher",
                "dog_friendly",
                "dryer",
                "elderly_accessible",
                "elevator",
                "essentials",
                "ev_charger",
                "extra_pillows_and_blankets",
                "family_kid_friendly",
                "fire_extinguisher",
                "fireplace",
                "fireplace_guards",
                "first_aid_kit",
                "freezer",
                "fresh_linens",
                "fridge",
                "game_console",
                "garage",
                "gym",
                "hair_dryer",
                "hangers",
                "heating",
                "high_chair",
                "host_greets_you",
                "hot_tub",
                "hot_water",
                "internet",
                "iron",
                "jacuzzi",
                "kettle",
                "keypad",
                "kitchen",
                "lake_access",
                "laptop_friendly_workspace",
                "lock_on_bedroom_door",
                "lockbox",
                "long_term_stays_allowed",
                "luggage_dropoff",
                "microwave",
                "outlet_covers",
                "oven",
                "parking",
                "parking_free_on_premises",
                "parking_free_street",
                "parking_paid",
                "parking_paid_on_premises",
                "patio",
                "pets_allowed",
                "pool",
                "pool_cover",
                "pool_toys",
                "private_entrance",
                "private_living_room",
                "private_yard",
                "refrigerator",
                "room_darkening_shades",
                "sauna",
                "self_check_in",
                "shampoo",
                "shared_pool",
                "single_level_home",
                "ski_in_out",
                "smart_lock",
                "smoke_detector",
                "smoking_allowed",
                "step_free_access",
                "stereo",
                "stove",
                "streaming",
                "suitable_for_events",
                "table_corner_guards",
                "towel",
                "travel_crib",
                "tv",
                "washing_machine",
                "water_views",
                "waterfront",
                "window_guards"
              ]
            }
          },
          "listing_preferences": {
            "description": "The listing's pricing preferences and fee configuration (subset used on listing create/update).",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/listing_preference"
              }
            ]
          },
          "channel_ids": {
            "$ref": "#/components/schemas/channel_ids"
          },
          "description": {
            "description": "The listing's description text.",
            "type": "string",
            "nullable": true
          },
          "nickname": {
            "description": "Listing nickname used as a shortened title.",
            "type": "string",
            "nullable": true
          },
          "base_min_night_stay": {
            "description": "This informs Wheelhouse of the length of the shortest stay this listing accepts.",
            "type": "integer",
            "minimum": 0,
            "nullable": true
          },
          "owner_name": {
            "description": "The listing owner's name to show in the UI.",
            "type": "string",
            "nullable": true
          },
          "is_active": {
            "description": "Whether the listing is active and valid on the integration channel.",
            "type": "boolean",
            "nullable": true
          },
          "source_user_id": {
            "description": "The user id of the user on the integration channel.",
            "type": "string",
            "nullable": true
          },
          "meta": {
            "$ref": "#/components/schemas/meta"
          }
        }
      },
      "listing_response": {
        "allOf": [
          {
            "$ref": "#/components/schemas/basic_listing"
          },
          {
            "type": "object",
            "description": "The listing object.",
            "required": [
              "id",
              "wheelhouse_id",
              "base_min_night_stay",
              "currency",
              "title",
              "owner_name",
              "description",
              "nickname",
              "num_bathrooms",
              "num_bedrooms",
              "room_type",
              "property_type",
              "is_active",
              "channel_ids",
              "location",
              "amenities",
              "num_beds",
              "num_reviews",
              "star_rating",
              "num_photos",
              "security_deposit",
              "source_user_id",
              "thumb_url",
              "listing_preferences",
              "meta",
              "market_id",
              "market_name",
              "channel",
              "links",
              "wheelhouse_created_at"
            ],
            "properties": {
              "channel": {
                "description": "The channel name of the listing.",
                "type": "string"
              },
              "links": {
                "type": "object",
                "description": "Useful links to the Wheelhouse app.",
                "required": [
                  "calendar",
                  "upgrade"
                ],
                "properties": {
                  "calendar": {
                    "description": "Link to the listing calendar page on Wheelhouse.",
                    "type": "string"
                  },
                  "upgrade": {
                    "description": "Link to the upgrade flow for this listing on Wheelhouse.",
                    "type": "string"
                  }
                }
              },
              "wheelhouse_created_at": {
                "description": "The datetime the listing was created in Wheelhouse (ISO-8601).",
                "type": "string",
                "format": "date-time",
                "nullable": true
              }
            }
          }
        ]
      },
      "listing": {
        "required": [
          "id",
          "currency",
          "location",
          "num_bedrooms",
          "num_bathrooms",
          "listing_preferences",
          "room_type"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/basic_listing"
          },
          {
            "type": "object",
            "properties": {
              "meta": {
                "type": "object",
                "nullable": true,
                "properties": {
                  "photos": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "regular"
                      ]
                    }
                  }
                }
              },
              "photos": {
                "description": "A list of photos of the listing.",
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "regular"
                  ],
                  "properties": {
                    "caption": {
                      "description": "The photo's caption.",
                      "type": "string"
                    },
                    "regular": {
                      "description": "An url pointing to a normal web sized photo.",
                      "type": "string"
                    },
                    "thumbnail": {
                      "description": "An url pointing to a thumbnail sized photo.",
                      "type": "string"
                    }
                  }
                }
              },
              "unit_names": {
                "description": "Used for hotel room or \"unit type\" inventory. This should be a comma delimited list of unit names available under this listing. If omitted, we assume there is only 1 unit. This enables scarcity pricing.",
                "type": "string"
              },
              "created_at": {
                "description": "The datetime the listing was created on your platform (ISO-8601).",
                "type": "string",
                "format": "date-time"
              }
            }
          }
        ]
      },
      "nightly_price": {
        "type": "object",
        "description": "Represents a nightly price.",
        "required": [
          "date",
          "price"
        ],
        "properties": {
          "price": {
            "description": "The nightly price.",
            "type": "integer"
          },
          "date": {
            "description": "The stay date (YYYY-MM-DD).",
            "type": "string"
          }
        }
      },
      "fee": {
        "type": "object",
        "description": "A fee associated with booking a listing.\n\nOn a reservation, Wheelhouse totals each entry as `amount × multiplier count × quantity`:\n\n* `amount` is `value` for `FIXED`, or `value × nightly subtotal` for `PERCENTAGE`. The nightly\n  subtotal is `nightly_subtotal`, or the sum of `nightly_prices` when it is missing.\n* `multiplier count` comes from `multiplier`: `1` for `PER_STAY`, the number of nights for\n  `PER_NIGHT`, `num_guests` for `PER_GUEST_PER_STAY`, and so on.\n* `quantity` defaults to `1`.\n\n`multiplier` already counts nights and guests, so leave `quantity` at `1`. Sending the number of\nnights as `quantity` inflates the total; for a fee charged each night, use `PER_NIGHT`.\n\nExample: a 3-night stay with a $100 cleaning fee, a $10 nightly resort fee and a 12.5% tax on\na $600 nightly subtotal ($200 a night).\n\n```json\n\"fees\": [\n  { \"name\": \"Cleaning\", \"type\": \"cleaning\", \"multiplier\": \"PER_STAY\", \"value_type\": \"FIXED\", \"value\": 100, \"quantity\": 1 },\n  { \"name\": \"Resort fee\", \"type\": \"other\", \"multiplier\": \"PER_NIGHT\", \"value_type\": \"FIXED\", \"value\": 10, \"quantity\": 1 }\n],\n\"taxes\": [\n  { \"name\": \"Occupancy tax\", \"type\": \"tax\", \"multiplier\": \"PER_STAY\", \"value_type\": \"PERCENTAGE\", \"value\": 0.125, \"quantity\": 1 }\n]\n```\n\nThese come to $100, $30 (`10 × 3 nights`) and $75 (`0.125 × 600`).\n\n`discounts` are always taken off the nightly subtotal, whatever the sign of `value`.\n",
        "required": [
          "name",
          "multiplier",
          "value_type",
          "value"
        ],
        "properties": {
          "name": {
            "description": "The name of the fee/tax that will appear on line items. E.g. 'cleaning' or 'local hotel tax'.",
            "type": "string"
          },
          "type": {
            "description": "Used to classify commonly-recognized fees (Optional)",
            "type": "string",
            "enum": [
              "cleaning",
              "extra_guest",
              "deposit",
              "discount",
              "tax",
              "withholding",
              "cancellation",
              "channel",
              "other"
            ]
          },
          "multiplier": {
            "description": "What factor to use to quantify this fee/tax.",
            "type": "string",
            "enum": [
              "PER_STAY",
              "PER_NIGHT",
              "PER_GUEST_PER_STAY",
              "PER_GUEST_PER_NIGHT",
              "PER_EXTRA_GUEST_PER_STAY",
              "PER_EXTRA_GUEST_PER_NIGHT"
            ]
          },
          "value_type": {
            "description": "Whether `value` is a fixed amount (`FIXED`) or a share of the reservation's nightly subtotal (`PERCENTAGE`). Pair `PERCENTAGE` with `PER_STAY`; with `PER_NIGHT` the percentage is charged once per night.",
            "type": "string",
            "enum": [
              "FIXED",
              "PERCENTAGE"
            ]
          },
          "value": {
            "description": "For `FIXED`, the amount per unit in the reservation's `currency` (the listing's currency on listing fees). For `PERCENTAGE`, a decimal fraction of the nightly subtotal, so 12.5% is `0.125`, not `12.5`.",
            "type": "number"
          },
          "quantity": {
            "description": "Optional, defaults to `1`. Do not send the number of nights or guests; `multiplier` already counts them. Omit it on listing fees.",
            "type": "integer"
          }
        }
      },
      "user": {
        "type": "object",
        "description": "An integration user. Include as much information as is available.",
        "required": [
          "integrators_user_id",
          "first_name",
          "last_name",
          "email"
        ],
        "properties": {
          "first_name": {
            "description": "The user's first name.",
            "type": "string"
          },
          "last_name": {
            "description": "The user's last name.",
            "type": "string"
          },
          "email": {
            "description": "The email contact for this user. This is a unique identifier across the system.",
            "type": "string"
          },
          "integrators_user_id": {
            "description": "The unique id used to identify this user within the integration partner. <b>This MUST be unique across environments.</b>",
            "type": "string"
          },
          "phone": {
            "description": "The phone number for this user.",
            "type": "string"
          },
          "integrators_affiliate_name": {
            "description": "The name of the affiliate if the end user is through an affiliate.",
            "type": "string"
          },
          "integrators_affiliate_user_id": {
            "description": "The unique id used to identify this user within the integration partner.",
            "type": "string"
          },
          "password": {
            "description": "<span style=\"color:red\">(Recommended)</span> Password for accessing Wheelhouse website. If not specified, user will not have access to Wheelhouse website. Applies only when the user is created; it is ignored for existing users.",
            "type": "string"
          },
          "allow_marketing_emails": {
            "description": "Whether we are allowed to send marketing emails to the customer.",
            "type": "boolean",
            "default": false
          },
          "company": {
            "type": "string",
            "description": "Company affiliation of the user."
          },
          "portfolio_size": {
            "type": "string",
            "description": "Number of listings the user operates.",
            "enum": [
              "0-9",
              "10-49",
              "50-99",
              "100+"
            ]
          }
        }
      },
      "reservation": {
        "type": "object",
        "description": "A reservation booked at a specific listing",
        "required": [
          "id",
          "start_date",
          "end_date",
          "num_guests",
          "num_included_guests",
          "total_price",
          "currency"
        ],
        "allOf": [
          {
            "anyOf": [
              {
                "required": [
                  "nightly_subtotal"
                ]
              },
              {
                "required": [
                  "nightly_prices"
                ]
              }
            ]
          },
          {
            "anyOf": [
              {
                "required": [
                  "booked_at"
                ]
              },
              {
                "required": [
                  "cancelled"
                ],
                "properties": {
                  "cancelled": {
                    "enum": [
                      true
                    ]
                  }
                }
              }
            ]
          }
        ],
        "properties": {
          "id": {
            "description": "The unique id of this reservation on this channel.",
            "type": "string"
          },
          "start_date": {
            "description": "The first night of the booking (YYYY-MM-DD).",
            "type": "string",
            "format": "date"
          },
          "end_date": {
            "description": "The move-out day (YYYY-MM-DD).",
            "type": "string",
            "format": "date"
          },
          "booked_at": {
            "description": "The datetime of when this reservation was made (ISO-8601).",
            "type": "string",
            "format": "date-time"
          },
          "num_guests": {
            "description": "The number of guests coming for this booking.",
            "type": "integer"
          },
          "num_included_guests": {
            "description": "The number of guests included in the base price for this booking.",
            "type": "integer"
          },
          "num_adults": {
            "description": "The number of adults coming for this booking.",
            "type": "integer"
          },
          "num_children": {
            "description": "The number of children coming for this booking.",
            "type": "integer"
          },
          "currency": {
            "description": "The currency paid for this reservation.",
            "type": "string"
          },
          "total_price": {
            "description": "The total price paid **by the guest**.",
            "type": "number"
          },
          "payout_total": {
            "description": "<span style=\"color:red\">(Recommended)</span> The total price paid **to the host** by the channel. Equivalent to Total Revenue for the host. If not included, total revenue will be estimated.",
            "type": "number"
          },
          "nightly_subtotal": {
            "description": "A sum of all nightly room prices, can optionally be provided if `nightly_prices` are unavailable.",
            "type": "number",
            "minimum": 0
          },
          "nightly_prices": {
            "description": "An array of hashes.  Each hash represents one night and will have both a 'price' and a 'date' field.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/nightly_price"
            }
          },
          "taxes": {
            "description": "<span style=\"color:red\">(Recommended)</span> A map of applicable taxes that would appear on an invoice.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/fee"
            }
          },
          "fees": {
            "description": "<span style=\"color:red\">(Recommended)</span> A map of applicable fees that would appear on an invoice.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/fee"
            }
          },
          "deposits": {
            "description": "A map of applicable deposits that would appear on an invoice.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/fee"
            }
          },
          "discounts": {
            "description": "<span style=\"color:red\">(Recommended)</span> A map of applicable discounts that would appear on an invoice.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/fee"
            }
          },
          "cancelled": {
            "description": "<span style=\"color:red\">(Recommended)</span> If the reservation is cancelled or not.",
            "type": "boolean",
            "default": false
          },
          "cancelled_total": {
            "description": "Amount that has been currently refunded to guest due to cancellation. Do not include if the booking has not been cancelled or the amount is unknown.",
            "type": "number"
          },
          "unit_name": {
            "description": "The identifier of the room booked. Can be omitted for non-grouped inventory.",
            "type": "string"
          },
          "source_name": {
            "description": "The name of the channel on which this reservation was booked.",
            "type": "string"
          },
          "confirmation_code": {
            "description": "A code to identify a reservation confirmation.",
            "type": "string"
          }
        }
      },
      "price_calendar": {
        "type": "array",
        "description": "A calendar object describing pricing and availability by stay date.",
        "items": {
          "type": "object",
          "required": [
            "stay_date",
            "price",
            "currency",
            "is_available"
          ],
          "properties": {
            "stay_date": {
              "description": "The date of the given price info (YYYY-MM-DD).",
              "type": "string",
              "format": "date"
            },
            "price": {
              "description": "The nightly price on this day.",
              "type": "number"
            },
            "currency": {
              "description": "The ISO-4217 3-letter currency code of the price.",
              "type": "string"
            },
            "is_available": {
              "description": "Whether or not this room can be booked.",
              "type": "boolean"
            },
            "min_night_stay": {
              "deprecated": true,
              "description": "The minimum stay applied to reservations overlapping this day.",
              "type": "integer"
            },
            "unit_name": {
              "description": "The unit name for this calendar day.\nCan be null for single-unit listings.\nRequired for multi-unit (linked) listings.\n",
              "type": "string",
              "nullable": true
            }
          }
        }
      },
      "calendar_rule_adjacency": {
        "description": "**adjacency** / **one_sided_gap** — Applies when adjacent blocked nights fall within `days_adjacent` of the stay.\nProvide at least one of `value`, `day_of_week_values`, `adjustment`, or `day_of_week_adjustments`.\nDo not send both `adjustment` and `day_of_week_adjustments`.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_adjacency_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day minimums (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "number"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "description": "Single minimum when `day_of_week_values` is not used.",
                "type": "number"
              }
            }
          }
        ]
      },
      "calendar_rule_adjacency_core": {
        "type": "object",
        "properties": {
          "type": {
            "description": "Use `adjacency` or legacy `one_sided_gap` (same behavior).",
            "enum": [
              "adjacency",
              "one_sided_gap"
            ],
            "type": "string"
          },
          "adjustment": {
            "description": "Add to the existing calendar value instead of replacing it.",
            "type": "integer"
          },
          "day_of_week_adjustments": {
            "description": "Per-day adjustments (length 7; index 0 = Sunday). Null skips that weekday.",
            "items": {
              "nullable": true,
              "type": "integer"
            },
            "maxItems": 7,
            "minItems": 7,
            "type": "array"
          },
          "days_adjacent": {
            "description": "Window of adjacent days (negative = prior side, positive = subsequent side).",
            "type": "integer"
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          }
        },
        "required": [
          "type",
          "days_adjacent"
        ]
      },
      "calendar_rule_adjacency_int": {
        "description": "Integer-valued adjacency / one-sided gap rule (same semantics as `calendar_rule_adjacency`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_adjacency_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day minimums (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "integer"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "description": "Single minimum when `day_of_week_values` is not used.",
                "type": "integer"
              }
            }
          }
        ]
      },
      "calendar_rule_base": {
        "description": "Calendar rule discriminated by `type` (see `CalendarRule` / `CalendarRules`). Numeric fields use JSON numbers\n(fractions allowed). For integer-only contexts (min stay, price floors/ceilings), use `integer_calendar_rule`.\n",
        "discriminator": {
          "mapping": {
            "adjacency": "#/components/schemas/calendar_rule_adjacency",
            "custom": "#/components/schemas/calendar_rule_custom",
            "day_of_week": "#/components/schemas/calendar_rule_day_of_week",
            "event": "#/components/schemas/calendar_rule_event",
            "gap": "#/components/schemas/calendar_rule_gap",
            "global": "#/components/schemas/calendar_rule_global",
            "monthly": "#/components/schemas/calendar_rule_monthly",
            "one_sided_gap": "#/components/schemas/calendar_rule_adjacency",
            "seasonal": "#/components/schemas/calendar_rule_seasonal",
            "time_based": "#/components/schemas/calendar_rule_time_based"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_adjacency"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_custom"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_day_of_week"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_event"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_gap"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_global"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_monthly"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_seasonal"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_time_based"
          }
        ]
      },
      "calendar_rule_custom": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_custom_core"
          },
          {
            "type": "object",
            "properties": {
              "value": {
                "description": "Value for dates in range.",
                "type": "number"
              }
            },
            "required": [
              "value"
            ]
          }
        ]
      },
      "calendar_rule_custom_core": {
        "description": "**custom** — Fixed calendar date range. `start_date` and `end_date` inclusive; optional `yearly` repeats each year.\n",
        "properties": {
          "type": {
            "enum": [
              "custom"
            ],
            "type": "string"
          },
          "end_date": {
            "description": "Inclusive end (ISO-8601 date).",
            "format": "date",
            "type": "string"
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          },
          "start_date": {
            "description": "Inclusive start (ISO-8601 date).",
            "format": "date",
            "type": "string"
          },
          "yearly": {
            "description": "When true, repeat the same month/day span every year.",
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "end_date",
          "start_date"
        ],
        "type": "object"
      },
      "calendar_rule_custom_int": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_custom_core"
          },
          {
            "type": "object",
            "properties": {
              "value": {
                "description": "Value for dates in range.",
                "type": "integer"
              }
            },
            "required": [
              "value"
            ]
          }
        ]
      },
      "calendar_rule_day_of_week": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_day_of_week_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "number"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              }
            },
            "required": [
              "day_of_week_values"
            ]
          }
        ]
      },
      "calendar_rule_day_of_week_core": {
        "description": "**day_of_week** — Per weekday (7 values, Sunday-first). Optional `months` limits to those month ordinals.\nMust not combine with `days_before` / `days_after` (use `time_based` for that).\n",
        "properties": {
          "type": {
            "enum": [
              "day_of_week"
            ],
            "type": "string"
          },
          "months": {
            "description": "When set, restrict to these month ordinals (1–12).",
            "items": {
              "maximum": 12,
              "minimum": 1,
              "type": "integer"
            },
            "minItems": 1,
            "type": "array"
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "calendar_rule_day_of_week_int": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_day_of_week_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "integer"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              }
            },
            "required": [
              "day_of_week_values"
            ]
          }
        ]
      },
      "calendar_rule_event": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_event_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "number"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "type": "number"
              }
            }
          }
        ]
      },
      "calendar_rule_event_core": {
        "description": "**event** — Tied to a custom event date range. Set `id` to the custom range. Provide `value` or `day_of_week_values`, not both.\n",
        "properties": {
          "type": {
            "enum": [
              "event"
            ],
            "type": "string"
          },
          "id": {
            "description": "Custom event / date-range identifier.",
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          }
        },
        "required": [
          "type",
          "id"
        ],
        "type": "object"
      },
      "calendar_rule_event_int": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_event_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "integer"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "type": "integer"
              }
            }
          }
        ]
      },
      "calendar_rule_gap": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_gap_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day gap minimums (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "number"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "description": "Gap minimum stay (integer in typical min-stay rules).",
                "type": "number"
              }
            }
          }
        ]
      },
      "calendar_rule_gap_core": {
        "description": "**gap** — When `gap_enabled` is true, applies a minimum stay only for “gap” nights that cannot fit the normal min stay.\nProvide `value` or `day_of_week_values` for the gap minimum. Optional `days_before` / `days_after` scope the rule in time.\n",
        "properties": {
          "type": {
            "enum": [
              "gap"
            ],
            "type": "string"
          },
          "days_after": {
            "type": "integer"
          },
          "days_before": {
            "type": "integer"
          },
          "gap_enabled": {
            "enum": [
              true
            ],
            "type": "boolean"
          },
          "gap_flexibility": {
            "description": "Reduces effective min stay in the gap by this many nights.",
            "type": "integer"
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          }
        },
        "required": [
          "type",
          "gap_enabled"
        ],
        "type": "object"
      },
      "calendar_rule_gap_int": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_gap_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day gap minimums (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "integer"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "description": "Gap minimum stay (integer in typical min-stay rules).",
                "type": "integer"
              }
            }
          }
        ]
      },
      "calendar_rule_global": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_global_core"
          },
          {
            "type": "object",
            "properties": {
              "value": {
                "description": "Default value (non-negative).",
                "type": "number"
              }
            },
            "required": [
              "value"
            ]
          }
        ]
      },
      "calendar_rule_global_core": {
        "description": "**global** — Single default for the calendar in this rule set. Must not set `day_of_week_values`.\n",
        "properties": {
          "type": {
            "enum": [
              "global"
            ],
            "type": "string"
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "calendar_rule_global_int": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_global_core"
          },
          {
            "type": "object",
            "properties": {
              "value": {
                "description": "Default value (non-negative).",
                "type": "integer"
              }
            },
            "required": [
              "value"
            ]
          }
        ]
      },
      "calendar_rule_monthly": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_monthly_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "number"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "end_value": {
                "description": "Value at month end for linear interpolation when `step` is false.",
                "type": "number"
              },
              "start_value": {
                "description": "Value at month start for linear interpolation when `step` is false.",
                "type": "number"
              },
              "value": {
                "description": "Single value for the month or peak value when interpolating.",
                "type": "number"
              }
            }
          }
        ]
      },
      "calendar_rule_monthly_core": {
        "description": "**monthly** — Limited to specific `months`. Provide `value` or `day_of_week_values`, not both.\nFor linear interpolation (`step: false`), set `start_value` and `end_value` with the peak in `value`.\n",
        "properties": {
          "type": {
            "enum": [
              "monthly"
            ],
            "type": "string"
          },
          "months": {
            "description": "Month ordinals (1–12); at least one.",
            "items": {
              "maximum": 12,
              "minimum": 1,
              "type": "integer"
            },
            "minItems": 1,
            "type": "array"
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          },
          "step": {
            "description": "When true, stepped monthly values; when false, linear interpolation using `start_value`, `value` (peak), and `end_value`. Ignored in `seasonality_adjustment` when `smooth` is `true`.",
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "months"
        ],
        "type": "object"
      },
      "calendar_rule_monthly_int": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_monthly_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "integer"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "end_value": {
                "description": "Value at month end for linear interpolation when `step` is false.",
                "type": "integer"
              },
              "start_value": {
                "description": "Value at month start for linear interpolation when `step` is false.",
                "type": "integer"
              },
              "value": {
                "description": "Single value for the month or peak value when interpolating.",
                "type": "integer"
              }
            }
          }
        ]
      },
      "calendar_rule_seasonal": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_seasonal_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "number"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "type": "number"
              }
            }
          }
        ]
      },
      "calendar_rule_seasonal_core": {
        "description": "**seasonal** — Tied to a custom seasonal date range. Set `id` to the custom range. Provide `value` or `day_of_week_values`, not both.\n",
        "properties": {
          "type": {
            "enum": [
              "seasonal"
            ],
            "type": "string"
          },
          "id": {
            "description": "Custom seasonal date-range identifier.",
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          }
        },
        "required": [
          "type",
          "id"
        ],
        "type": "object"
      },
      "calendar_rule_seasonal_int": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_seasonal_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "integer"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "type": "integer"
              }
            }
          }
        ]
      },
      "calendar_rule_time_based": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_time_based_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "number"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "type": "number"
              }
            }
          }
        ]
      },
      "calendar_rule_time_based_core": {
        "description": "**time_based** — Relative to “today” for the listing. At least one of `days_before` or `days_after` must be set.\nProvide `value` or `day_of_week_values`, not both. Optional `months` scopes by calendar month.\n",
        "properties": {
          "type": {
            "enum": [
              "time_based"
            ],
            "type": "string"
          },
          "days_after": {
            "description": "Applies on/after “today + days_after”.",
            "type": "integer"
          },
          "days_before": {
            "description": "Applies within “today + days_before”.",
            "type": "integer"
          },
          "months": {
            "description": "When set, restrict to these month ordinals (1–12).",
            "items": {
              "maximum": 12,
              "minimum": 1,
              "type": "integer"
            },
            "minItems": 1,
            "type": "array"
          },
          "priority": {
            "description": "Precedence among rules of the same kind (higher wins).",
            "type": "integer"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "calendar_rule_time_based_int": {
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_time_based_core"
          },
          {
            "type": "object",
            "properties": {
              "day_of_week_values": {
                "description": "Per-day values (length 7; index 0 = Sunday). Null skips that weekday.",
                "items": {
                  "nullable": true,
                  "type": "integer"
                },
                "maxItems": 7,
                "minItems": 7,
                "type": "array"
              },
              "value": {
                "type": "integer"
              }
            }
          }
        ]
      },
      "float_calendar_rule": {
        "description": "Floating-point calendar rules (discounts, premiums, seasonality factors, etc.). Same shapes as `calendar_rule_base`.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_base"
          }
        ]
      },
      "gap_night": {
        "type": "object",
        "description": "Gap night pricing strategy: discounts open stretches between bookings. When `type` is `CUS`, provide `custom`\nrules; the server rejects `CUS` without `custom`. In a request the `custom` array replaces the stored one.\n\nGap night pricing does not apply to listings with more than one unit. The setting is still saved, and\nthe response carries a `not_supported_for_multi_unit` warning.\n",
        "required": [
          "type"
        ],
        "properties": {
          "custom": {
            "description": "Per-gap custom rules. Required when `type` is `CUS` (may be an empty array). Each entry targets a gap length,\nweekday set, and optional one-sided adjacency (`left` / `right`).\n",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/gap_night_custom_rule"
            }
          },
          "type": {
            "description": "Preset strategy (`CON`, `REC`, `AGG`) or custom (`CUS`) gap-night rules.",
            "type": "string",
            "enum": [
              "AGG",
              "CON",
              "CUS",
              "REC"
            ]
          }
        }
      },
      "gap_night_custom_rule": {
        "type": "object",
        "description": "One custom gap-night rule. `adjustment` is a price multiplier greater than 0 and at most 10 (`0.8` is a 20%\ndiscount). `day_of_week` uses 0 = Sunday through 6 = Saturday, unique values only, length 1–7. When several\nrules match a night, rules without `adjacent` are checked first, then `left`, then `right`. Within those,\nthe rule with the smallest `gap` that still covers the gap wins, and among rules sharing that `gap` the\nlargest `adjustment` wins.\n",
        "required": [
          "adjustment",
          "day_of_week",
          "gap"
        ],
        "properties": {
          "adjacent": {
            "description": "Omit to match open nights with an unavailable night on both sides (\"In between\"). `left` matches the\nfirst `gap` open nights after an unavailable night (\"Only after\"); `right` matches the last `gap` open\nnights before one (\"Only before\").\n",
            "type": "string",
            "enum": [
              "left",
              "right"
            ]
          },
          "adjustment": {
            "description": "Price multiplier; greater than 0 and at most 10. `0.8` is a 20% discount.",
            "type": "number"
          },
          "day_of_week": {
            "description": "Weekdays this rule applies to (0–6, each at most once).",
            "type": "array",
            "items": {
              "type": "integer",
              "maximum": 6,
              "minimum": 0
            },
            "maxItems": 7,
            "minItems": 1
          },
          "gap": {
            "description": "Applies to gaps of this many nights or fewer.",
            "type": "integer"
          }
        }
      },
      "integer_calendar_rule": {
        "description": "Integer calendar rules (minimum stay, min/max price caps, local events, check-in/out, long-term discounts, etc.).\n",
        "discriminator": {
          "mapping": {
            "adjacency": "#/components/schemas/calendar_rule_adjacency_int",
            "custom": "#/components/schemas/calendar_rule_custom_int",
            "day_of_week": "#/components/schemas/calendar_rule_day_of_week_int",
            "event": "#/components/schemas/calendar_rule_event_int",
            "gap": "#/components/schemas/calendar_rule_gap_int",
            "global": "#/components/schemas/calendar_rule_global_int",
            "monthly": "#/components/schemas/calendar_rule_monthly_int",
            "one_sided_gap": "#/components/schemas/calendar_rule_adjacency_int",
            "seasonal": "#/components/schemas/calendar_rule_seasonal_int",
            "time_based": "#/components/schemas/calendar_rule_time_based_int"
          },
          "propertyName": "type"
        },
        "oneOf": [
          {
            "$ref": "#/components/schemas/calendar_rule_adjacency_int"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_custom_int"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_day_of_week_int"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_event_int"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_gap_int"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_global_int"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_monthly_int"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_seasonal_int"
          },
          {
            "$ref": "#/components/schemas/calendar_rule_time_based_int"
          }
        ]
      },
      "fee_adjustments": {
        "type": "object",
        "description": "UI: 'Asking Rate (+Est. Fees)' — The estimated share of fees guests pay on top of the nightly rate, as a\npercentage of that rate. A response carries `null` when nothing is configured, otherwise both keys. In a\nrequest the object replaces the stored one as a whole, so send both keys; `null` clears the setting.\n",
        "properties": {
          "total_fee_percentage": {
            "description": "Fees as a percentage of the nightly rate, `-100` or more. `15` means guests pay about 15% on top of the nightly rate in fees; there is no upper bound, since fees can exceed the nightly rate on short stays. Omitted means `0`.",
            "type": "number"
          },
          "auto_update": {
            "description": "When `true`, `total_fee_percentage` is recalculated weekly from the fees on the listing's recent reservations, replacing whatever was set. Defaults to `false` when omitted.",
            "type": "boolean"
          }
        }
      },
      "occupancy_pacing": {
        "type": "object",
        "description": "Occupancy pacing matrix configuration. `{}` means pacing is off, which is the default for a new listing.\nWhen `occupancy_pacing` is sent as a non-empty object, `adjusted` and `pacing` are required, and `pacing`\nmust include a matrix with `type` `global` (otherwise the request is rejected with 400). In a request the\nobject replaces the stored one as a whole; omit it to leave pacing unchanged.\n\nFor each lead-time column, occupancy is measured across that whole window and the matching row's\npercentage is applied to every date in it. A row covers occupancy above `min` up to and including\n`max` (`min` `0` includes 0%); the first matching row wins, and dates outside every column or row are\nunchanged. The adjusted price still respects the listing's minimum and maximum price rules.\n\nExample: when the next 0–6 days are at most 10% booked, those days drop 10%; 10–20% booked, 5%.\n\n```json\n{\n  \"adjusted\": true,\n  \"pacing\": [{\n    \"type\": \"global\",\n    \"columns\": [{\"days_min\": 0, \"days_max\": 6}, {\"days_min\": 7, \"days_max\": 13}],\n    \"rows\": [{\"min\": 0, \"max\": 10}, {\"min\": 10, \"max\": 20}],\n    \"values\": [[-10, -20], [-5, -10]]\n  }]\n}\n```\n",
        "properties": {
          "adjusted": {
            "description": "When true, occupancy is computed as booked nights divided by bookable (unblocked) nights; when false,\nagainst calendar days × units.\n",
            "type": "boolean"
          },
          "pacing": {
            "description": "Pacing matrices. Must include one with `type` `global`, which is the one applied; others are ignored.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/occupancy_pacing_matrix"
            }
          }
        }
      },
      "occupancy_pacing_column": {
        "type": "object",
        "description": "Lead-time window (days from today) for one column of the pacing matrix.",
        "required": [
          "days_max",
          "days_min"
        ],
        "properties": {
          "days_max": {
            "description": "Inclusive end of lead-time window (0–1000). Must be greater than or equal to `days_min`.",
            "type": "integer",
            "maximum": 1000,
            "minimum": 0
          },
          "days_min": {
            "description": "Inclusive start of lead-time window (0–1000).",
            "type": "integer",
            "maximum": 1000,
            "minimum": 0
          }
        }
      },
      "occupancy_pacing_matrix": {
        "type": "object",
        "description": "One pacing matrix (rows × columns of adjustment percentages).",
        "required": [
          "columns",
          "rows",
          "type",
          "values"
        ],
        "properties": {
          "columns": {
            "description": "Lead-time column definitions; count must match each row in `values`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/occupancy_pacing_column"
            }
          },
          "rows": {
            "description": "Occupancy percentage bands, one per row of `values`; each `min`/`max` is 0–100.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/occupancy_pacing_row"
            }
          },
          "type": {
            "description": "Rule discriminator; `global` is used for the active pacing matrix.",
            "type": "string"
          },
          "values": {
            "description": "Price adjustments as whole percentages (`-10` is a 10% decrease, `10` a 10% increase), each ≥ -100.\nOne array per entry in `rows`, each holding one value per entry in `columns`; any other shape is\nrejected with 400.\n",
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            }
          }
        }
      },
      "occupancy_pacing_row": {
        "type": "object",
        "description": "Occupancy percentage band for one row of the pacing matrix.",
        "required": [
          "max",
          "min"
        ],
        "properties": {
          "max": {
            "description": "Upper bound of the band (0–100 inclusive).",
            "type": "integer",
            "maximum": 100,
            "minimum": 0
          },
          "min": {
            "description": "Lower bound of the band (0–100 inclusive).",
            "type": "integer",
            "maximum": 100,
            "minimum": 0
          }
        }
      },
      "custom_date_range": {
        "type": "object",
        "description": "A named seasonal or event window used by calendar rules (e.g. min stay, pricing). Calendar rules\nreference these entries by `id`. Type must be `seasonal` or `event`.\n",
        "required": [
          "date_ranges",
          "name",
          "type",
          "yearly"
        ],
        "properties": {
          "date_ranges": {
            "description": "One or more inclusive calendar spans. Each span must include `start_date` and `end_date`, and\n`start_date` must be on or before `end_date`.\n",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/custom_date_range_segment"
            }
          },
          "id": {
            "description": "Stable identifier for this range, referenced by calendar rules. Omit only when creating a new range;\nrequired for a valid saved preference.\n",
            "type": "string"
          },
          "name": {
            "description": "Display name for the season or event.",
            "type": "string"
          },
          "type": {
            "description": "Whether this range represents a recurring season or a dated event.",
            "type": "string",
            "enum": [
              "event",
              "seasonal"
            ]
          },
          "yearly": {
            "description": "When true, the date spans repeat each calendar year (same month/day pattern).",
            "type": "boolean"
          }
        }
      },
      "custom_date_range_segment": {
        "type": "object",
        "description": "Inclusive calendar span within a custom date range.",
        "required": [
          "end_date",
          "start_date"
        ],
        "properties": {
          "end_date": {
            "description": "Inclusive end (ISO-8601 date).",
            "format": "date",
            "type": "string"
          },
          "start_date": {
            "description": "Inclusive start (ISO-8601 date).",
            "format": "date",
            "type": "string"
          }
        }
      },
      "supported_settings": {
        "type": "object",
        "readOnly": true,
        "description": "Which listing preference settings this listing's channel can act on. A setting reported `false` is discarded on write rather than posted to the channel, so check this before sending it. Reflects any per-account early access, so two listings on the same channel can differ.",
        "properties": {
          "checkin_checkout": {
            "description": "Whether `checkin_checkout` rules can be set.",
            "type": "boolean"
          },
          "min_stays": {
            "description": "Whether minimum stay settings (`min_min_stay`, `min_stays_enabled`, `minimum_stay_rules`) can be set.",
            "type": "boolean"
          },
          "long_term_discounts": {
            "description": "Whether long-term discounts (`long_term_discounts`, `weekly_discount`, `monthly_discount`) can be set at all.",
            "type": "boolean"
          },
          "long_term_discount_type": {
            "description": "The form of long-term discount the channel accepts. `disabled` takes none; `simple` stores only flat `weekly_discount` and `monthly_discount` values: global 7 and 28 night rules in a `rules` object are converted into those two values, and any other rule is dropped; `rules` additionally takes the 7 and 28 night tiers; `complex` takes arbitrary tiers.",
            "type": "string",
            "enum": [
              "disabled",
              "simple",
              "rules",
              "complex"
            ]
          }
        }
      },
      "preference_warning": {
        "type": "object",
        "readOnly": true,
        "description": "One setting in the request that was not applied, or that has no effect on this listing.",
        "properties": {
          "setting": {
            "description": "The setting group the warning is about.",
            "type": "string",
            "enum": [
              "checkin_checkout",
              "gap_night",
              "min_stays",
              "long_term_discounts"
            ]
          },
          "reason": {
            "description": "`not_supported_by_channel` — the channel has no such feature and everything sent for it was dropped. `partially_supported_by_channel` — the channel has the feature but accepts a narrower form than what was sent, and only the excess was dropped. `not_supported_for_multi_unit` — the setting is stored but has no effect on price, because the listing has more than one unit.",
            "type": "string",
            "enum": [
              "not_supported_by_channel",
              "partially_supported_by_channel",
              "not_supported_for_multi_unit"
            ]
          },
          "message": {
            "description": "A human-readable explanation of what was ignored and why.",
            "type": "string"
          },
          "attributes": {
            "description": "The request attributes this warning covers, in dot notation for nested ones (e.g. `long_term_discounts.rules.14`).",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "preference_error": {
        "description": "One listing that failed, as a `[listing_id, error_message, status_code]` array. `listing_id` is the integration partner's unique listing identifier and `status_code` the HTTP status code applicable to the error.",
        "type": "array",
        "minItems": 3,
        "maxItems": 3,
        "items": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ]
        },
        "example": [
          "12345",
          "You do not have permission to access listing 12345",
          403
        ]
      },
      "listing_preference_response": {
        "type": "object",
        "description": "The full set of pricing preferences for a listing. Aligns with the Revenue Management API\n`listing_preference_response` schema (including calendar rule shapes documented under\n`float_calendar_rule` and `integer_calendar_rule`). May include additional Pro-only fields.\n",
        "required": [
          "listing_id",
          "partner_listing_id",
          "currency",
          "automatic_rate_posting_enabled",
          "base_price",
          "base_price_adjustment",
          "monthly_discount",
          "weekly_discount",
          "nickname",
          "last_minute_discount",
          "far_future_premium",
          "seasonality_adjustment",
          "day_of_week",
          "gap_night",
          "minimum_stay_rules_v3",
          "min_stays_enabled",
          "minimum_price_rules_v3",
          "maximum_price_rules_v3",
          "checkin_checkout",
          "long_term_discounts",
          "occupancy_pacing",
          "fee_adjustments",
          "demand_sensitivity_rules",
          "historical_anchoring_price_source",
          "historical_anchoring_mode",
          "historical_anchoring_rules",
          "custom_date_ranges",
          "min_min_price",
          "min_min_stay",
          "apply_gap_night_rules_to_overrides",
          "supported_settings",
          "update_from",
          "update_from_id",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "listing_id": {
            "description": "The Wheelhouse internal listing ID.",
            "type": "integer",
            "readOnly": true
          },
          "partner_listing_id": {
            "description": "The channel's listing ID.",
            "type": "string",
            "readOnly": true
          },
          "currency": {
            "description": "The ISO-4217 3-letter currency code used for prices in this listing's preferences.",
            "type": "string",
            "readOnly": true
          },
          "automatic_rate_posting_enabled": {
            "description": "Whether automated price posting is enabled for this listing.",
            "type": "boolean"
          },
          "base_price": {
            "description": "The manually set base price. If set, overrides Wheelhouse recommendations. `null` if no base price is set manually.",
            "type": "number",
            "nullable": true
          },
          "base_price_adjustment": {
            "description": "Multiplier applied to the Wheelhouse recommended base price, e.g. `0.9`, `1.0` or `1.1` for the presets. `null` when `base_price` is set.",
            "type": "number",
            "nullable": true
          },
          "monthly_discount": {
            "description": "Monthly discount as a whole percentage (`10` is a 10% discount, not `0.10` or `90`). On listings that accept length-of-stay premiums (every listing whose `supported_settings.long_term_discount_type` is `complex`, and some with `rules`), values are signed instead, so `-10` is a 10% discount and `10` a 10% premium. This is a simplified setting for a single discount that applies to all bookings >= 28 days. Alternatively a channel can use the full daily discount rules under `long_term_discounts`.",
            "type": "integer",
            "default": 0
          },
          "weekly_discount": {
            "description": "Weekly discount as a whole percentage (`10` is a 10% discount, not `0.10` or `90`). On listings that accept length-of-stay premiums (every listing whose `supported_settings.long_term_discount_type` is `complex`, and some with `rules`), values are signed instead, so `-10` is a 10% discount and `10` a 10% premium. This is a simplified setting for a single discount that applies to all bookings >= 7 days. Alternatively a channel can use the full daily discount rules under `long_term_discounts`.",
            "type": "integer",
            "default": 0
          },
          "nickname": {
            "description": "Listing nickname, `null` if none is set.",
            "type": "string",
            "nullable": true
          },
          "last_minute_discount": {
            "description": "Last-minute discount configuration.",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "rules": {
                "description": "Calendar rules when `type` is `CUS`.",
                "items": {
                  "$ref": "#/components/schemas/float_calendar_rule"
                },
                "type": "array"
              },
              "smooth": {
                "description": "Only used when `type` is `CUS`. When `true`, the adjustment eases gradually from one rule to the next instead of jumping at each rule's edge. `custom` rules still apply exactly. Defaults to `false` (stepped).",
                "type": "boolean",
                "default": false
              }
            }
          },
          "far_future_premium": {
            "description": "Far-future premium configuration.",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "rules": {
                "description": "Calendar rules when `type` is `CUS`.",
                "items": {
                  "$ref": "#/components/schemas/float_calendar_rule"
                },
                "type": "array"
              },
              "smooth": {
                "description": "Only used when `type` is `CUS`. When `true`, the adjustment eases gradually from one rule to the next instead of jumping at each rule's edge. `custom` rules still apply exactly. Defaults to `false` (stepped).",
                "type": "boolean",
                "default": false
              }
            }
          },
          "seasonality_adjustment": {
            "description": "Seasonality adjustment configuration.",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "rules": {
                "description": "Calendar rules when `type` is `CUS`.",
                "items": {
                  "$ref": "#/components/schemas/float_calendar_rule"
                },
                "type": "array"
              },
              "smooth": {
                "description": "Only used when `type` is `CUS`. When `true`, the adjustment eases gradually from one rule to the next instead of jumping at each rule's edge, and monthly rules' `step`, `start_value` and `end_value` are ignored. Defaults to `false` (stepped).",
                "type": "boolean",
                "default": false
              }
            }
          },
          "day_of_week": {
            "description": "Day-of-week pricing factor configuration. Replaces `weekend_factor`.\n\n- `REC` applies the market's day-of-week pattern.\n- `CON` and `AGG` adjust that pattern conservatively or aggressively. Sent without `rules`, they\n  store the matching preset `day_of_week` rule.\n- `CUS` takes your own `rules`, whose values are price multipliers (`1.1` is 10% higher).\n",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "rules": {
                "description": "Calendar rules. `CUS` uses these and has no effect without them; optional for `CON` and `AGG`.",
                "items": {
                  "$ref": "#/components/schemas/float_calendar_rule"
                },
                "type": "array"
              }
            }
          },
          "gap_night": {
            "$ref": "#/components/schemas/gap_night"
          },
          "minimum_stay_rules_v3": {
            "description": "Minimum stay rules. Requests may send this as `minimum_stay_rules` too.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "min_stays_enabled": {
            "description": "Whether minimum stay rules are enabled.",
            "type": "boolean"
          },
          "minimum_price_rules_v3": {
            "description": "Minimum price rules. Requests may send this as `minimum_price_rules` too.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "maximum_price_rules_v3": {
            "description": "Maximum price rules. Requests may send this as `maximum_price_rules` too.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "checkin_checkout": {
            "description": "Which days guests may check in and check out. Rule values are allow flags: `1` allows the day and\n`0` blocks it. A `day_of_week` rule's `day_of_week_values` has 7 entries, index 0 = Sunday. Where rules\noverlap, the more specific rule type wins (for example a date-specific `custom` rule over a\n`day_of_week` rule); between rules of the same type, the later one in the array wins.\n\nIn a request the object replaces the stored one as a whole: send `active` and both\n`check_in_rules` and `check_out_rules` (a request missing either array is rejected with 400). An\nempty `check_out_rules` leaves check-out unrestricted. Only applied when the listing's channel\nsupports it (see `supported_settings.checkin_checkout`).\n\nExample, check-in on Friday and Saturday only, check-out any day:\n\n```json\n{\n  \"active\": true,\n  \"auto_adjust\": false,\n  \"check_in_rules\": [{\"type\": \"day_of_week\", \"day_of_week_values\": [0, 0, 0, 0, 0, 1, 1]}],\n  \"check_out_rules\": [{\"type\": \"day_of_week\", \"day_of_week_values\": [1, 1, 1, 1, 1, 1, 1]}]\n}\n```\n\n`null` if check-in/check-out rules were never set.\n",
            "type": "object",
            "nullable": true,
            "properties": {
              "active": {
                "description": "Whether the check-in/check-out rules are enforced. Stored as `false` when omitted.",
                "type": "boolean"
              },
              "auto_adjust": {
                "description": "When `true`, Wheelhouse opens additional check-in and check-out days around unavailable nights so that open stretches between bookings can still be booked, even on days the rules would otherwise block.",
                "type": "boolean"
              },
              "check_in_rules": {
                "description": "Check-in allow rules (`1` allowed, `0` blocked) as integer calendar rules.",
                "items": {
                  "$ref": "#/components/schemas/integer_calendar_rule"
                },
                "type": "array"
              },
              "check_out_rules": {
                "description": "Check-out allow rules (`1` allowed, `0` blocked) as integer calendar rules.",
                "items": {
                  "$ref": "#/components/schemas/integer_calendar_rule"
                },
                "type": "array"
              }
            }
          },
          "long_term_discounts": {
            "description": "Rule-based long-term discount configuration. This is a more powerful and flexible way to set discounts for bookings >= 7 days and >= 28 days. Alternatively a channel can use the simplified settings under `monthly_discount` and `weekly_discount`. Rule values are whole percentages on the same scale as those settings (`10` is a 10% discount). On listings that accept length-of-stay premiums (every listing whose `supported_settings.long_term_discount_type` is `complex`, and some with `rules`), values are signed instead, so `-10` is a 10% discount and `10` a 10% premium. Nothing is applied while `active` is `false`.",
            "type": "object",
            "properties": {
              "active": {
                "type": "boolean"
              },
              "weekly_rules": {
                "deprecated": true,
                "description": "Weekly discount rules (integer calendar rules).",
                "items": {
                  "$ref": "#/components/schemas/integer_calendar_rule"
                },
                "type": "array"
              },
              "monthly_rules": {
                "deprecated": true,
                "description": "Monthly discount rules (integer calendar rules).",
                "items": {
                  "$ref": "#/components/schemas/integer_calendar_rule"
                },
                "type": "array"
              },
              "rules": {
                "description": "LOS-keyed rules (integer calendar rules). Keys are length-of-stay thresholds (e.g. \"7\", \"28\"); values are arrays of integer calendar rules.",
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/integer_calendar_rule"
                  }
                }
              }
            },
            "default": {
              "active": false,
              "weekly_rules": [],
              "monthly_rules": [],
              "rules": {}
            }
          },
          "occupancy_pacing": {
            "description": "Occupancy pacing configuration.",
            "allOf": [
              {
                "$ref": "#/components/schemas/occupancy_pacing"
              }
            ],
            "default": {}
          },
          "fee_adjustments": {
            "description": "Estimated fee share applied on top of the nightly rate. `null` when nothing is configured, otherwise both keys are present; in a request the object replaces the stored one as a whole, and `null` clears it.",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/fee_adjustments"
              }
            ]
          },
          "demand_sensitivity_rules": {
            "description": "Local events rules. Shown as Demand sensitivity before day of week became its own setting; the field name is unchanged.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "historical_anchoring_price_source": {
            "description": "Which historical price historical anchoring weighs in. `observed`, the default, is the listing's price as Wheelhouse saw it on the channel once the date booked. `posted` is the price Wheelhouse last posted for the date before it booked, so dates Wheelhouse never posted a price for are not anchored. `posted_with_fallback` uses the posted price where there is one and the observed price otherwise.",
            "type": "string",
            "enum": [
              "observed",
              "posted",
              "posted_with_fallback"
            ],
            "default": "observed"
          },
          "historical_anchoring_mode": {
            "description": "How a historical anchoring percentage turns the historical price into a floor for the recommendation. `blended` averages the historical price with the recommendation, using the percentage as the weight on the historical price: at 50%, a $1,200 historical price and a $400 recommendation give $800. `anchor_only` takes the percentage of the historical price alone, so at 50% the floor is $600: a $400 recommendation rises to $600 and a $700 one stays at $700. Either only ever raises a price, and from 100% up both give the same price.",
            "type": "string",
            "enum": [
              "blended",
              "anchor_only"
            ],
            "default": "blended"
          },
          "historical_anchoring_rules": {
            "description": "Historical anchoring rules.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "custom_date_ranges": {
            "description": "Custom date range overrides for pricing rules. [CDR Rules]",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/custom_date_range"
            },
            "default": []
          },
          "min_min_price": {
            "description": "The absolute minimum price floor.",
            "type": "number",
            "default": 0
          },
          "min_min_stay": {
            "description": "The absolute minimum stay floor.",
            "type": "integer",
            "default": 0
          },
          "update_from": {
            "description": "The source used when the preferences were last updated.",
            "type": "string",
            "readOnly": true
          },
          "update_from_id": {
            "description": "The ID of the entity used when preferences were last updated, `null` if none.",
            "type": "integer",
            "nullable": true,
            "readOnly": true
          },
          "apply_gap_night_rules_to_overrides": {
            "description": "When `true`, gap night minimum stay rules take priority over `custom` (date override) minimum stay rules. When `false`, `custom` rules win.",
            "type": "boolean",
            "readOnly": true
          },
          "supported_settings": {
            "$ref": "#/components/schemas/supported_settings"
          },
          "warnings": {
            "description": "Settings from the request that weren't applied, or that have no effect on this listing. Present on write responses (empty when nothing was dropped), absent on reads.",
            "type": "array",
            "readOnly": true,
            "items": {
              "$ref": "#/components/schemas/preference_warning"
            }
          },
          "created_at": {
            "description": "When the listing preferences were created (ISO-8601).",
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "updated_at": {
            "description": "When the listing preferences were last updated (ISO-8601).",
            "type": "string",
            "format": "date-time",
            "readOnly": true
          }
        }
      },
      "listing_preference_request": {
        "type": "object",
        "description": "The pricing preferences to set for a listing. All fields are optional; only provided fields will be updated (same semantics as the Revenue Management API `listing_preference_request`).",
        "properties": {
          "automatic_rate_posting_enabled": {
            "description": "Whether automated price posting is enabled for this listing.",
            "type": "boolean"
          },
          "currency": {
            "description": "The ISO-4217 3-letter currency code used for prices in this listing's preferences. If not provided, the listing's currency will be used.",
            "type": "string"
          },
          "base_price": {
            "description": "The manually set base price, a whole number of at least 1. If set, overrides Wheelhouse's data-driven recommendation. `null` clears it.",
            "type": "integer",
            "minimum": 1,
            "nullable": true
          },
          "base_price_adjustment": {
            "description": "Multiplier applied to the Wheelhouse recommended base price, e.g. `0.9`, `1.0` or `1.1` for the presets. Only used if `base_price` is not set. Must not be `0`.",
            "type": "number",
            "nullable": true
          },
          "monthly_discount": {
            "description": "Monthly discount as a whole percentage (`10` is a 10% discount, not `0.10` or `90`). On listings that accept length-of-stay premiums (every listing whose `supported_settings.long_term_discount_type` is `complex`, and some with `rules`), values are signed instead, so `-10` is a 10% discount and `10` a 10% premium. This is a simplified setting for a single discount that applies to all bookings >= 28 days. Alternatively a channel can use the full daily discount rules under `long_term_discounts`.",
            "type": "integer",
            "default": 0
          },
          "weekly_discount": {
            "description": "Weekly discount as a whole percentage (`10` is a 10% discount, not `0.10` or `90`). On listings that accept length-of-stay premiums (every listing whose `supported_settings.long_term_discount_type` is `complex`, and some with `rules`), values are signed instead, so `-10` is a 10% discount and `10` a 10% premium. This is a simplified setting for a single discount that applies to all bookings >= 7 days. Alternatively a channel can use the full daily discount rules under `long_term_discounts`.",
            "type": "integer",
            "default": 0
          },
          "nickname": {
            "description": "Listing nickname. Overrides the listing's default nickname.",
            "type": "string"
          },
          "last_minute_discount": {
            "required": [
              "type"
            ],
            "description": "Last-minute discount configuration.",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "rules": {
                "description": "Calendar rules when `type` is `CUS`.",
                "items": {
                  "$ref": "#/components/schemas/float_calendar_rule"
                },
                "type": "array"
              },
              "smooth": {
                "description": "Only used when `type` is `CUS`. When `true`, the adjustment eases gradually from one rule to the next instead of jumping at each rule's edge. `custom` rules still apply exactly. Defaults to `false` (stepped).",
                "type": "boolean",
                "default": false
              }
            }
          },
          "far_future_premium": {
            "required": [
              "type"
            ],
            "description": "Far-future premium configuration.",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "rules": {
                "description": "Calendar rules when `type` is `CUS`.",
                "items": {
                  "$ref": "#/components/schemas/float_calendar_rule"
                },
                "type": "array"
              },
              "smooth": {
                "description": "Only used when `type` is `CUS`. When `true`, the adjustment eases gradually from one rule to the next instead of jumping at each rule's edge. `custom` rules still apply exactly. Defaults to `false` (stepped).",
                "type": "boolean",
                "default": false
              }
            }
          },
          "seasonality_adjustment": {
            "required": [
              "type"
            ],
            "description": "Seasonality adjustment configuration.",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "rules": {
                "description": "Calendar rules when `type` is `CUS`. Required with `CUS`.",
                "items": {
                  "$ref": "#/components/schemas/float_calendar_rule"
                },
                "type": "array"
              },
              "smooth": {
                "description": "Only used when `type` is `CUS`. When `true`, the adjustment eases gradually from one rule to the next instead of jumping at each rule's edge, and monthly rules' `step`, `start_value` and `end_value` are ignored. Defaults to `false` (stepped).",
                "type": "boolean",
                "default": false
              }
            }
          },
          "day_of_week": {
            "description": "Day-of-week pricing factor configuration. Replaces `weekend_factor`.\n\n- `REC` applies the market's day-of-week pattern.\n- `CON` and `AGG` adjust that pattern conservatively or aggressively. Sent without `rules`, they\n  store the matching preset `day_of_week` rule.\n- `CUS` takes your own `rules`, whose values are price multipliers (`1.1` is 10% higher).\n",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "rules": {
                "description": "Calendar rules. `CUS` uses these and has no effect without them; optional for `CON` and `AGG`.",
                "items": {
                  "$ref": "#/components/schemas/float_calendar_rule"
                },
                "type": "array"
              }
            }
          },
          "gap_night": {
            "$ref": "#/components/schemas/gap_night"
          },
          "weekend_factor": {
            "deprecated": true,
            "description": "Deprecated; use `day_of_week`, which accepts the same presets. Still accepted and converted to\n`day_of_week`. When both are sent, `weekend_factor` wins. Not returned on reads.\n",
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "CON",
                  "REC",
                  "AGG",
                  "CUS"
                ]
              },
              "custom": {
                "description": "Custom weekend curve when `type` is `CUS` (number or array of numbers).",
                "oneOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "number"
                    }
                  }
                ]
              }
            }
          },
          "minimum_stay_rules": {
            "description": "Minimum stay rules.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "min_stays_enabled": {
            "description": "Whether minimum stay rules are enabled.",
            "type": "boolean"
          },
          "minimum_price_rules": {
            "description": "Minimum price rules.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "maximum_price_rules": {
            "description": "Maximum price rules.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "checkin_checkout": {
            "description": "Which days guests may check in and check out. Rule values are allow flags: `1` allows the day and\n`0` blocks it. A `day_of_week` rule's `day_of_week_values` has 7 entries, index 0 = Sunday. Where rules\noverlap, the more specific rule type wins (for example a date-specific `custom` rule over a\n`day_of_week` rule); between rules of the same type, the later one in the array wins.\n\nIn a request the object replaces the stored one as a whole: send `active` and both\n`check_in_rules` and `check_out_rules` (a request missing either array is rejected with 400). An\nempty `check_out_rules` leaves check-out unrestricted. Only applied when the listing's channel\nsupports it (see `supported_settings.checkin_checkout`).\n\nExample, check-in on Friday and Saturday only, check-out any day:\n\n```json\n{\n  \"active\": true,\n  \"auto_adjust\": false,\n  \"check_in_rules\": [{\"type\": \"day_of_week\", \"day_of_week_values\": [0, 0, 0, 0, 0, 1, 1]}],\n  \"check_out_rules\": [{\"type\": \"day_of_week\", \"day_of_week_values\": [1, 1, 1, 1, 1, 1, 1]}]\n}\n```\n",
            "type": "object",
            "properties": {
              "active": {
                "description": "Whether the check-in/check-out rules are enforced. Stored as `false` when omitted.",
                "type": "boolean"
              },
              "auto_adjust": {
                "description": "When `true`, Wheelhouse opens additional check-in and check-out days around unavailable nights so that open stretches between bookings can still be booked, even on days the rules would otherwise block.",
                "type": "boolean"
              },
              "check_in_rules": {
                "description": "Check-in allow rules (`1` allowed, `0` blocked) as integer calendar rules.",
                "items": {
                  "$ref": "#/components/schemas/integer_calendar_rule"
                },
                "type": "array"
              },
              "check_out_rules": {
                "description": "Check-out allow rules (`1` allowed, `0` blocked) as integer calendar rules.",
                "items": {
                  "$ref": "#/components/schemas/integer_calendar_rule"
                },
                "type": "array"
              }
            }
          },
          "long_term_discounts": {
            "description": "Rule-based long-term discount configuration. This is a more powerful and flexible way to set discounts for bookings >= 7 days and >= 28 days. Alternatively a channel can use the simplified settings under `monthly_discount` and `weekly_discount`. Rule values are whole percentages on the same scale as those settings (`10` is a 10% discount). On listings that accept length-of-stay premiums (every listing whose `supported_settings.long_term_discount_type` is `complex`, and some with `rules`), values are signed instead, so `-10` is a 10% discount and `10` a 10% premium. Nothing is applied while `active` is `false`.",
            "type": "object",
            "required": [
              "active"
            ],
            "properties": {
              "active": {
                "type": "boolean"
              },
              "weekly_rules": {
                "deprecated": true,
                "description": "Weekly discount rules (integer calendar rules).",
                "items": {
                  "$ref": "#/components/schemas/integer_calendar_rule"
                },
                "type": "array"
              },
              "monthly_rules": {
                "deprecated": true,
                "description": "Monthly discount rules (integer calendar rules).",
                "items": {
                  "$ref": "#/components/schemas/integer_calendar_rule"
                },
                "type": "array"
              },
              "rules": {
                "description": "LOS-keyed rules (integer calendar rules). Keys are length-of-stay thresholds (e.g. \"7\", \"28\"); values are arrays of integer calendar rules.",
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/integer_calendar_rule"
                  }
                }
              }
            },
            "default": {
              "active": false,
              "weekly_rules": [],
              "monthly_rules": [],
              "rules": {}
            }
          },
          "occupancy_pacing": {
            "description": "Occupancy pacing configuration.",
            "allOf": [
              {
                "$ref": "#/components/schemas/occupancy_pacing"
              }
            ],
            "default": {}
          },
          "fee_adjustments": {
            "description": "Estimated fee share applied on top of the nightly rate. `null` when nothing is configured, otherwise both keys are present; in a request the object replaces the stored one as a whole, and `null` clears it.",
            "nullable": true,
            "allOf": [
              {
                "$ref": "#/components/schemas/fee_adjustments"
              }
            ]
          },
          "demand_sensitivity_rules": {
            "description": "Local events rules. Shown as Demand sensitivity before day of week became its own setting; the field name is unchanged.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "historical_anchoring_price_source": {
            "description": "Which historical price historical anchoring weighs in. `observed`, the default, is the listing's price as Wheelhouse saw it on the channel once the date booked. `posted` is the price Wheelhouse last posted for the date before it booked, so dates Wheelhouse never posted a price for are not anchored. `posted_with_fallback` uses the posted price where there is one and the observed price otherwise.",
            "type": "string",
            "enum": [
              "observed",
              "posted",
              "posted_with_fallback"
            ]
          },
          "historical_anchoring_mode": {
            "description": "How a historical anchoring percentage turns the historical price into a floor for the recommendation. `blended` averages the historical price with the recommendation, using the percentage as the weight on the historical price: at 50%, a $1,200 historical price and a $400 recommendation give $800. `anchor_only` takes the percentage of the historical price alone, so at 50% the floor is $600: a $400 recommendation rises to $600 and a $700 one stays at $700. Either only ever raises a price, and from 100% up both give the same price.",
            "type": "string",
            "enum": [
              "blended",
              "anchor_only"
            ]
          },
          "historical_anchoring_rules": {
            "description": "Historical anchoring rules.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/integer_calendar_rule"
            },
            "default": []
          },
          "custom_date_ranges": {
            "description": "Custom date range overrides for pricing rules. [CDR Rules]",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/custom_date_range"
            },
            "default": []
          },
          "min_min_price": {
            "description": "The absolute minimum price floor.",
            "type": "number",
            "default": 0
          },
          "min_min_stay": {
            "description": "The absolute minimum stay floor.",
            "type": "integer",
            "default": 0
          }
        }
      },
      "custom_rate": {
        "type": "object",
        "required": [
          "start_date",
          "end_date",
          "rate_type"
        ],
        "properties": {
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "The inclusive start of the stay-date range affected by the custom rate (YYYY-MM-DD)."
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "The inclusive end of the stay-date range affected by the custom rate (YYYY-MM-DD)."
          },
          "rate_type": {
            "type": "string",
            "enum": [
              "fixed",
              "adjustment"
            ],
            "description": "Whether the custom rate is percentage-based or a fixed override."
          },
          "adjustment": {
            "type": "number",
            "minimum": 1,
            "description": "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": {
            "description": "The ISO-4217 3-letter currency code of the price. Required if rate_type is `fixed`.",
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "monday": {
            "type": "number",
            "minimum": 1,
            "description": "The price applied for all Mondays in the given date range."
          },
          "tuesday": {
            "type": "number",
            "minimum": 1,
            "description": "The price applied for all Tuesdays in the given date range."
          },
          "wednesday": {
            "type": "number",
            "minimum": 1,
            "description": "The price applied for all Wednesdays in the given date range."
          },
          "thursday": {
            "type": "number",
            "minimum": 1,
            "description": "The price applied for all Thursdays in the given date range."
          },
          "friday": {
            "type": "number",
            "minimum": 1,
            "description": "The price applied for all Fridays in the given date range."
          },
          "saturday": {
            "type": "number",
            "minimum": 1,
            "description": "The price applied for all Saturdays in the given date range."
          },
          "sunday": {
            "type": "number",
            "minimum": 1,
            "description": "The price applied for all Sundays in the given date range."
          },
          "weekend_price": {
            "type": "number",
            "minimum": 0,
            "deprecated": true,
            "description": "The price applied for nights on the weekend (Fri, Sat)."
          },
          "weekday_price": {
            "type": "number",
            "minimum": 0,
            "deprecated": true,
            "description": "The price applied for nights during the week (Sun-Thu)."
          },
          "expires_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the custom rate expires (ISO-8601). Omit for a rate that doesn't expire."
          }
        }
      },
      "custom_rate_response": {
        "type": "object",
        "description": "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.",
        "required": [
          "start_date",
          "end_date",
          "rate_type",
          "currency",
          "sunday",
          "monday",
          "tuesday",
          "wednesday",
          "thursday",
          "friday",
          "saturday",
          "expires_at"
        ],
        "properties": {
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "The inclusive start of the stay-date range (YYYY-MM-DD)."
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "The inclusive end of the stay-date range (YYYY-MM-DD)."
          },
          "rate_type": {
            "type": "string",
            "enum": [
              "fixed",
              "adjustment"
            ]
          },
          "currency": {
            "type": "string",
            "nullable": true,
            "description": "The ISO-4217 currency code of a `fixed` rate, `null` for `adjustment` rates."
          },
          "sunday": {
            "type": "number",
            "nullable": true,
            "description": "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": {
            "type": "number",
            "nullable": true,
            "description": "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": {
            "type": "number",
            "nullable": true,
            "description": "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": {
            "type": "number",
            "nullable": true,
            "description": "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": {
            "type": "number",
            "nullable": true,
            "description": "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": {
            "type": "number",
            "nullable": true,
            "description": "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": {
            "type": "number",
            "nullable": true,
            "description": "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": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the custom rate expires, or `null` if it doesn't."
          }
        }
      },
      "custom_rate_error": {
        "type": "object",
        "required": [
          "message",
          "http_code",
          "start_date",
          "end_date"
        ],
        "properties": {
          "start_date": {
            "type": "string",
            "format": "date"
          },
          "end_date": {
            "type": "string",
            "format": "date"
          },
          "http_code": {
            "description": "The http status code this custom rate would have raised, had it been sent via the `custom_rate` endpoint instead of the bulk endpoint.",
            "type": "number"
          },
          "message": {
            "description": "The error's message",
            "type": "string"
          }
        }
      }
    }
  },
  "paths": {
    "/user_registration": {
      "post": {
        "summary": "Create a new end user",
        "tags": [
          "Users"
        ],
        "operationId": "createUser",
        "description": "Registers a new user, or registers again a user you have already registered.\n\nA user you have already registered is found by their `integrators_user_id` first, and only then by\n`email`. When the `integrators_user_id` matches, that user is returned and the `email` you send is\nnot used.\n\nTo register a customer who already has a Wheelhouse account, include their User API Key in the\n`X-User-API-Key` header. Their account is linked to your integration and their profile and password\nare left unchanged.\n\n`email` and `password` are set only when the user is created. An existing user's email and password\nare never changed by this endpoint.\n",
        "security": [
          {
            "IntegrationApiKey": []
          },
          {
            "IntegrationApiKey": [],
            "UserApiKey": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "A user",
          "content": {
            "application/json": {
              "example": {
                "integrators_user_id": "pm-10482",
                "first_name": "Jane",
                "last_name": "Doe",
                "email": "jane.doe@example.com",
                "phone": "+1 512 555 0142",
                "company": "Doe Vacation Rentals",
                "portfolio_size": "10-49",
                "allow_marketing_emails": false
              },
              "schema": {
                "$ref": "#/components/schemas/user"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully created user",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/userApiResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed, or the `X-User-API-Key` is invalid"
          },
          "403": {
            "description": "The user already connects this integration to Wheelhouse directly from their Wheelhouse account, so it cannot also be managed through the API."
          },
          "409": {
            "description": "The email belongs to an existing Wheelhouse account you did not register (send that user's User API Key in the `X-User-API-Key` header to link them), or the `integrators_user_id` is already registered to another Wheelhouse user."
          }
        }
      }
    },
    "/user": {
      "put": {
        "summary": "Update user info",
        "tags": [
          "Users"
        ],
        "operationId": "updateUser",
        "requestBody": {
          "required": true,
          "description": "User info",
          "content": {
            "application/json": {
              "example": {
                "integrators_user_id": "pm-10482"
              },
              "schema": {
                "type": "object",
                "required": [
                  "integrators_user_id"
                ],
                "properties": {
                  "integrators_user_id": {
                    "description": "The unique id used to identify this user within the integration partner. <b>This MUST be unique across environments.</b>",
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully updated user"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Channel account not found"
          },
          "409": {
            "description": "Another request is already in progress for this resource (retry after the concurrent request completes), or the integrators_user_id is already in use on this channel (nothing is changed)."
          }
        }
      }
    },
    "/accounts": {
      "delete": {
        "summary": "Deactivate channel account",
        "description": "This will set the integration account to inactive on the Wheelhouse UI and will stop it from being processed on a daily basis.",
        "tags": [
          "Users"
        ],
        "operationId": "deactivateAccount",
        "responses": {
          "204": {
            "description": "Delete succeeded"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "404": {
            "description": "Channel account not found"
          }
        }
      }
    },
    "/listings": {
      "get": {
        "summary": "Retrieve all listings associated with a user.",
        "tags": [
          "Listings"
        ],
        "operationId": "getListings",
        "parameters": [
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "integer"
            },
            "description": "The number of items to skip before starting to collect the result set. (Optional)"
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            },
            "description": "The page of listings to retrieve. (Optional)"
          },
          {
            "in": "query",
            "name": "per_page",
            "schema": {
              "type": "integer"
            },
            "description": "Number of listings per page. Default is 50. (Optional)"
          },
          {
            "in": "query",
            "name": "exclude_inactive",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "Exclude inactive listings, and listings not linked to a channel, from the response. (Optional)"
          },
          {
            "in": "query",
            "name": "include_photos",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Include each listing's photos in `meta.photos`. Default is false. `num_photos` is returned either way. (Optional)"
          }
        ],
        "responses": {
          "200": {
            "description": "Array of listings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/listing_response"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          }
        }
      },
      "put": {
        "summary": "Create or update a listing",
        "tags": [
          "Listings"
        ],
        "operationId": "putListing",
        "requestBody": {
          "required": true,
          "description": "A listing",
          "content": {
            "application/json": {
              "example": {
                "id": "12345",
                "title": "Sunny 3BR Craftsman near South Congress",
                "nickname": "SoCo Craftsman",
                "currency": "USD",
                "location": {
                  "address": "1100 S Congress Ave, Austin, TX 78704",
                  "postal_code": "78704",
                  "country": "US",
                  "latitude": 30.2512,
                  "longitude": -97.7489
                },
                "num_bedrooms": 3,
                "num_beds": 4,
                "num_bathrooms": 2,
                "room_type": "entire_place",
                "property_type": "house",
                "base_min_night_stay": 2,
                "is_active": true,
                "amenities": [
                  "air_conditioning",
                  "internet",
                  "kitchen",
                  "parking"
                ],
                "star_rating": 4.8,
                "num_reviews": 112,
                "num_photos": 24,
                "security_deposit": 300,
                "thumb_url": "https://example.com/photos/12345/thumb.jpg",
                "listing_preferences": {
                  "num_included_guests": 4,
                  "num_max_guests": 6,
                  "fees": [
                    {
                      "name": "Cleaning fee",
                      "type": "cleaning",
                      "multiplier": "PER_STAY",
                      "value_type": "FIXED",
                      "value": 150
                    }
                  ]
                },
                "show_market_coverage": true
              },
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/listing"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "show_market_coverage": {
                        "type": "boolean",
                        "description": "When true, the response will include an `in_market` field indicating whether the listing is in a market covered by Wheelhouse."
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated listing",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/listing_response"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "in_market": {
                          "type": "boolean",
                          "description": "Present only when `show_market_coverage` is true. Indicates whether the listing is in a market covered by Wheelhouse and is thus eligible for Wheelhouse price recommendations."
                        }
                      }
                    }
                  ]
                }
              }
            },
            "links": {
              "getListingByID": {
                "operationId": "getListing",
                "parameters": {
                  "id": "$response.body#/id"
                },
                "description": "The `id` value returned in the listing response can be used to get or delete listings"
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "409": {
            "description": "Another request is already in progress for this listing (retry after the concurrent request completes), or, on the first listing for a user with no account on this channel, that user's id is already in use on this channel."
          }
        }
      }
    },
    "/listings/{id}": {
      "get": {
        "summary": "Get a listing",
        "tags": [
          "Listings"
        ],
        "operationId": "getListing",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "schema": {
              "type": "string"
            },
            "description": "Channel name of the listing. Can be omitted if you request a listing you created, but required if you request a listing from another channel. See return value of the [/listings](#operation/getListings) endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "The listing",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listing_response"
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      },
      "delete": {
        "summary": "Delete a listing",
        "description": "This will set a listing to inactive on the Wheelhouse UI and will stop it from being processed on a daily basis.",
        "tags": [
          "Listings"
        ],
        "operationId": "deleteListing",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Delete succeeded"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      }
    },
    "/listings/{id}/pricing_tier": {
      "get": {
        "summary": "Get pricing tier info for a listing",
        "tags": [
          "Listings"
        ],
        "operationId": "getListingPricingTier",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "schema": {
              "type": "string"
            },
            "description": "Channel name of the listing. Can be omitted if you request a listing you created, but required if you request a listing from another channel. See return value of the [/listings](#operation/getListings) endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Pricing tier information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "name",
                    "horizon"
                  ],
                  "properties": {
                    "name": {
                      "type": "string",
                      "enum": [
                        "Free",
                        "Pro Flex",
                        "Pro Flat",
                        "Pro Trial",
                        "Pro Onboarding",
                        "Pro SS API"
                      ],
                      "description": "Name of the Wheelhouse pricing tier."
                    },
                    "horizon": {
                      "type": "integer",
                      "minimum": 0,
                      "description": "Number of calendar days for which recommendations are provided."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "424": {
            "description": "Listing cannot change pricing tiers: no billing information available"
          }
        }
      }
    },
    "/listings/{id}/recent_changes": {
      "get": {
        "summary": "Get times of latest changes for a listing",
        "description": "Note that this endpoint is `experimental` and might change in the future!",
        "tags": [
          "Listings"
        ],
        "operationId": "getListingRecentChanges",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "schema": {
              "type": "string"
            },
            "description": "Channel name of the listing. Can be omitted if you request a listing you created, but required if you request a listing from another channel. See return value of the [/listings](#operation/getListings) endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Times of latest changes in UTC",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "settings",
                    "rates"
                  ],
                  "properties": {
                    "settings": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Time of last settings change in UTC."
                    },
                    "rates": {
                      "type": "string",
                      "format": "date-time",
                      "nullable": true,
                      "description": "Time of last custom rates change in UTC. `null` if the listing has never had a custom rate."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      }
    },
    "/listings/in_market": {
      "get": {
        "summary": "Check location coverage",
        "description": "Determine whether a given location is in an active Wheelhouse market.",
        "tags": [
          "Listings"
        ],
        "operationId": "getListingsInMarket",
        "security": [
          {
            "IntegrationApiKey": []
          }
        ],
        "parameters": [
          {
            "in": "query",
            "name": "country",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 2
            },
            "required": true,
            "description": "The ISO-3166 2 letter country code."
          },
          {
            "in": "query",
            "name": "postal_code",
            "schema": {
              "type": "string"
            },
            "required": true,
            "description": "A regional postal code for within the given country."
          },
          {
            "in": "query",
            "name": "latitude",
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90
            },
            "required": true,
            "description": "The latitude coordinate of this location."
          },
          {
            "in": "query",
            "name": "longitude",
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            },
            "required": true,
            "description": "The longitude coordinate of this location."
          }
        ],
        "responses": {
          "200": {
            "description": "Market information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/inMarketResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          }
        }
      }
    },
    "/listings/{id}/reservations": {
      "put": {
        "summary": "Create or update a batch of reservations",
        "description": "This endpoint accepts a list of reservation objects and returns a list of processed reservation IDs.\nThe `unchanged` response field additionaly indicates reservations that were already present and\nrequired no update.\n\n### Errors\n\nIf Wheelhouse errors or otherwise fails to return the reservation IDs that were created or updated,\nintegrators MUST resend them after some period of time. DO NOT repeatedly call this endpoint if it is failing.\n",
        "tags": [
          "Reservations"
        ],
        "operationId": "updateReservations",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "reservations",
          "content": {
            "application/json": {
              "example": {
                "reservations": [
                  {
                    "id": "RES-20481",
                    "confirmation_code": "HM4KQ2X9TZ",
                    "source_name": "Airbnb",
                    "start_date": "2027-03-12",
                    "end_date": "2027-03-15",
                    "booked_at": "2026-11-02T14:32:00Z",
                    "num_guests": 4,
                    "num_included_guests": 4,
                    "num_adults": 3,
                    "num_children": 1,
                    "currency": "USD",
                    "nightly_prices": [
                      {
                        "date": "2027-03-12",
                        "price": 200
                      },
                      {
                        "date": "2027-03-13",
                        "price": 200
                      },
                      {
                        "date": "2027-03-14",
                        "price": 200
                      }
                    ],
                    "fees": [
                      {
                        "name": "Cleaning fee",
                        "type": "cleaning",
                        "multiplier": "PER_STAY",
                        "value_type": "FIXED",
                        "value": 100,
                        "quantity": 1
                      }
                    ],
                    "taxes": [
                      {
                        "name": "Occupancy tax",
                        "type": "tax",
                        "multiplier": "PER_STAY",
                        "value_type": "PERCENTAGE",
                        "value": 0.125,
                        "quantity": 1
                      }
                    ],
                    "total_price": 775,
                    "payout_total": 679,
                    "cancelled": false
                  }
                ]
              },
              "schema": {
                "type": "object",
                "required": [
                  "reservations"
                ],
                "properties": {
                  "reservations": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "$ref": "#/components/schemas/reservation"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully created or updated all reservations",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listOfStringsApiResponse"
                }
              }
            }
          },
          "207": {
            "description": "Partial success creating or updating reservations. Either some reservations failed (see `failed`), or\nsome were saved but have nights outside the stay dates Wheelhouse stores calendars for, which were not\nadded to the calendar (see `warnings`).\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listOfStringsApiResponse"
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          }
        }
      }
    },
    "/listings/{listing_id}/reservations": {
      "get": {
        "summary": "List reservations",
        "description": "Experimental - the interface might change in the future! This endpoint lists reservations of a listing.",
        "tags": [
          "Reservations"
        ],
        "operationId": "getReservations",
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "The start of the date range to query reservations for (YYYY-MM-DD). When `date_filter_type` is `stay_date` (default), returns reservations whose stay overlaps this date. When `date_filter_type` is `booked_at`, returns reservations booked on or after this date. When `date_filter_type` is `updated_at`, takes an ISO 8601 timestamp (a date alone means midnight UTC) and returns reservations last changed at or after it. If omitted, no lower bound is applied."
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string"
            },
            "required": false,
            "description": "The end of the date range to query reservations for (YYYY-MM-DD). When `date_filter_type` is `stay_date` (default), returns reservations whose stay overlaps this date. When `date_filter_type` is `booked_at`, returns reservations booked before the end of this date. When `date_filter_type` is `updated_at`, takes an ISO 8601 timestamp (a date alone means midnight UTC) and returns reservations last changed before it. If omitted, no upper bound is applied."
          },
          {
            "in": "query",
            "name": "date_filter_type",
            "schema": {
              "type": "string",
              "enum": [
                "stay_date",
                "booked_at",
                "updated_at"
              ],
              "default": "stay_date"
            },
            "required": false,
            "description": "Controls how `start_date` and `end_date` are applied. Use `stay_date` (default) to filter by reservation stay dates, `booked_at` to filter by the date the reservation was booked, or `updated_at` to filter by when Wheelhouse last recorded the reservation. A reservation can also be returned when it was re-recorded without a visible change. To poll for changes, pass the previous request's `end_date` as the next `start_date`, and keep `end_date` a few minutes in the past, since a change can take a short while to become visible after the time it is recorded with."
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "integer"
            },
            "description": "The number of reservations to skip before starting to collect the result set."
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            },
            "description": "The page of reservations to retrieve."
          },
          {
            "in": "query",
            "name": "per_page",
            "schema": {
              "type": "integer",
              "default": 50
            },
            "description": "Number of reservations per page."
          }
        ],
        "responses": {
          "200": {
            "description": "Array of reservations",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "status",
                      "start_date",
                      "end_date",
                      "booked_at",
                      "canceled_at",
                      "num_guests",
                      "currency",
                      "total_price",
                      "nightly_subtotal",
                      "extra_guest",
                      "security_deposit",
                      "extras",
                      "taxes",
                      "confirmation_code",
                      "created_at",
                      "updated_at",
                      "comments",
                      "source_name"
                    ],
                    "properties": {
                      "id": {
                        "type": "string",
                        "description": "The unique id of this reservation on this channel."
                      },
                      "status": {
                        "type": "string",
                        "description": "The status of the reservation. One of `Accepted` or `Canceled`."
                      },
                      "start_date": {
                        "type": "string",
                        "format": "date",
                        "description": "The first night of the booking (YYYY-MM-DD)."
                      },
                      "end_date": {
                        "type": "string",
                        "format": "date",
                        "description": "The move-out day (YYYY-MM-DD)."
                      },
                      "booked_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The datetime of when this reservation was made (ISO-8601)."
                      },
                      "canceled_at": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "description": "The datetime this reservation was cancelled (ISO-8601), or `null` if it was not. Set whenever `status` is `Canceled`."
                      },
                      "num_guests": {
                        "type": "integer",
                        "description": "The number of guests coming for this booking."
                      },
                      "currency": {
                        "type": "string",
                        "description": "The currency paid for this reservation."
                      },
                      "total_price": {
                        "type": "number",
                        "description": "The total price paid by the guest."
                      },
                      "nightly_subtotal": {
                        "type": "number",
                        "description": "Sum of all nightly room prices."
                      },
                      "extra_guest": {
                        "type": "number",
                        "description": "Extra guest fee."
                      },
                      "security_deposit": {
                        "type": "number",
                        "description": "Security deposit."
                      },
                      "extras": {
                        "type": "number",
                        "description": "Sum of other extra fees."
                      },
                      "taxes": {
                        "type": "number",
                        "description": "Sum of all taxes."
                      },
                      "confirmation_code": {
                        "type": "string",
                        "nullable": true,
                        "description": "A code to identify a reservation confirmation. `null` if none was sent."
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The datetime the reservation was created on Wheelhouse (ISO-8601)."
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The datetime the reservation was last updated on Wheelhouse (ISO-8601)."
                      },
                      "comments": {
                        "type": "string",
                        "nullable": true,
                        "description": "Any comments or notes about the reservation. Always `null` for reservations sent through this API."
                      },
                      "source_name": {
                        "type": "string",
                        "description": "The name of the channel on which this reservation was booked."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      }
    },
    "/listings/{listing_id}/reservations/{reservation_id}": {
      "delete": {
        "summary": "Delete a single reservation",
        "description": "This endpoint deletes a single reservation by its id. NOTE: if a reservation is cancelled, it is best to update\nthe reservation's cancelled flag to true with the PUT reservation endpoint.  This endpoint is only intended to\nbe used for erroneously created reservations.\n",
        "tags": [
          "Reservations"
        ],
        "operationId": "deleteReservations",
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "reservation_id",
            "in": "path",
            "required": true,
            "description": "The reservation ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully deleted reservation"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "422": {
            "description": "Reservation not found"
          },
          "423": {
            "description": "Reservation is locked as it has been billed"
          }
        }
      }
    },
    "/listings/{id}/price_calendar": {
      "put": {
        "summary": "Update the price calendar of a listing",
        "description": "This endpoint should be called before requesting price recommendations.\nIf the listing calendar is changed by our recommendations, integrators MUST\ncall this endpoint again to update our calendar.\n",
        "tags": [
          "Price Calendars"
        ],
        "operationId": "updateCalendar",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "price_calendars": [
                  {
                    "stay_date": "2027-03-12",
                    "price": 200,
                    "currency": "USD",
                    "is_available": false
                  },
                  {
                    "stay_date": "2027-03-13",
                    "price": 200,
                    "currency": "USD",
                    "is_available": false
                  },
                  {
                    "stay_date": "2027-03-14",
                    "price": 200,
                    "currency": "USD",
                    "is_available": false
                  },
                  {
                    "stay_date": "2027-03-15",
                    "price": 185,
                    "currency": "USD",
                    "is_available": true
                  },
                  {
                    "stay_date": "2027-03-16",
                    "price": 175,
                    "currency": "USD",
                    "is_available": true
                  }
                ]
              },
              "schema": {
                "type": "object",
                "required": [
                  "price_calendars"
                ],
                "properties": {
                  "price_calendars": {
                    "$ref": "#/components/schemas/price_calendar"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully created or updated the calendar"
          },
          "207": {
            "description": "Partial success for multi-unit listings. Some of the provided `unit_name` values\ndid not match any units on the listing. Calendar entries for valid unit names were\nsaved; entries for invalid unit names were ignored.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "message",
                    "processed_unit_names",
                    "invalid_unit_names",
                    "valid_unit_names"
                  ],
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Human-readable description of the partial result."
                    },
                    "processed_unit_names": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Unit names that were successfully processed."
                    },
                    "invalid_unit_names": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Unit names from the request that were not found on the listing."
                    },
                    "valid_unit_names": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "All valid unit names for this listing."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation failed (e.g. unit_name missing for multi-unit listing, or no provided unit names match the listing at all)"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          }
        }
      }
    },
    "/listings/{listing_id}/price_calendar": {
      "get": {
        "summary": "Get the price calendar for a listing.",
        "description": "Returns the price calendar for a single listing. Each entry represents one stay date and includes the current price, availability, and booking state.\n\nDefaults to today through the maximum calendar horizon (1.5 years) when `start_date` and `end_date` are omitted. The total date range may not exceed 3 years.\n",
        "tags": [
          "Price Calendars"
        ],
        "operationId": "getPriceCalendar",
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "The channel's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "schema": {
              "type": "string"
            },
            "description": "Channel name the listing is on. See return value of the [/listings](#operation/getListings) endpoint."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "First stay date to include (YYYY-MM-DD). Defaults to today."
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Last stay date to include (YYYY-MM-DD). Defaults to the maximum calendar horizon (1.5 years from today). The total range (`start_date` to `end_date`) may not exceed 3 years."
          }
        ],
        "responses": {
          "200": {
            "description": "Array of calendar day entries ordered by stay date.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "stay_date",
                      "price",
                      "currency",
                      "is_available",
                      "is_booked",
                      "block_time",
                      "reservation_id",
                      "unit_number",
                      "created_at"
                    ],
                    "properties": {
                      "stay_date": {
                        "type": "string",
                        "format": "date",
                        "description": "The stay date."
                      },
                      "price": {
                        "type": "integer",
                        "nullable": true,
                        "description": "The price for this date, or `null` if none is recorded."
                      },
                      "currency": {
                        "type": "string",
                        "nullable": true,
                        "description": "ISO 4217 currency code for the price, or `null` if none is recorded."
                      },
                      "is_available": {
                        "type": "boolean",
                        "description": "Whether the date is available for booking."
                      },
                      "is_booked": {
                        "type": "boolean",
                        "description": "Whether the date has a confirmed booking."
                      },
                      "block_time": {
                        "type": "string",
                        "format": "date-time",
                        "nullable": true,
                        "description": "When the day was blocked/booked (ISO-8601), null for available days."
                      },
                      "reservation_id": {
                        "type": "string",
                        "nullable": true,
                        "description": "The reservation ID associated with this date, if booked. This is the channel reservation ID (a string), or `null` when the night is not booked."
                      },
                      "unit_number": {
                        "type": "integer",
                        "description": "The unit number, 0 if the listing is single-unit."
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time",
                        "description": "The date and time the data was created."
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Date range exceeds the 3-year maximum."
          },
          "401": {
            "description": "API key authorization failed."
          },
          "403": {
            "description": "Listing authorization failed."
          },
          "404": {
            "description": "Listing not found."
          }
        }
      }
    },
    "/price_models": {
      "get": {
        "summary": "List the price models customers can pick from",
        "description": "Returns the price models customers can pick from, the current one first. The current model\nprices every listing that has not picked another one, unless its channel or market is set\nto a different model. Pass a model's `id` as `price_model_id` to\n[price recommendations](#operation/priceRecommendations) or the\n[preferences preview](#operation/previewPreferences) to price with it; a model that has not\nrun for a listing's market returns `400` there.\n",
        "tags": [
          "Price Recommendations"
        ],
        "operationId": "getPriceModels",
        "responses": {
          "200": {
            "description": "Available price models",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "version",
                      "display_name",
                      "status",
                      "description"
                    ],
                    "properties": {
                      "id": {
                        "type": "integer",
                        "description": "Price model ID, to pass as `price_model_id`."
                      },
                      "name": {
                        "type": "string"
                      },
                      "version": {
                        "type": "number"
                      },
                      "display_name": {
                        "type": "string",
                        "description": "Name and version, e.g. `Blended model v9.0`."
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "current",
                          "opt_in"
                        ],
                        "description": "`current` for the model listings get when nothing else is set, `opt_in` for an alternative."
                      },
                      "description": {
                        "type": "string",
                        "nullable": true,
                        "description": "How the model prices, in plain language."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          }
        }
      }
    },
    "/listings/{id}/price_recommendations": {
      "get": {
        "summary": "Get price recommendations for this listing",
        "description": "Return daily price recommendations for this listing. The horizon of the price\nrecommendations depends on the pricing tier this listing is in and can be\nqueried using the [pricing tier](#operation/getListingPricingTier) endpoint.\nThe `data` array starts from today's date in the listing's time zone, not UTC.\nIf the listing calendar is changed by our recommendations, integrators MUST\nmake another PUT to the [price calendar](#operation/updateCalendar) to update our calendar.\n",
        "tags": [
          "Price Recommendations"
        ],
        "operationId": "priceRecommendations",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "The final currency that the prices should be in. Uses listing's currency by default. Uses 3-digit ISO form (e.g. 'USD', 'GBP').",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "schema": {
              "type": "string"
            },
            "description": "Channel name of the listing. Can be omitted if you request a listing you created, but required if you request a listing from another channel. See return value of the [/listings](#operation/getListings) endpoint."
          },
          {
            "in": "query",
            "name": "attribution",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Whether or not you want to receive a detailed attribution for each day. The attribution will break a daily recommendation down into contributing prices like seasonality, local events, etc. and activate all `attr_` response values."
          },
          {
            "in": "query",
            "name": "price_model",
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "opt_in"
              ]
            },
            "description": "The price model version to use for the recommendations. By default you will get the model the listing is on. `current` is the model the listing gets without a pick of its own. `opt_in` is the opt-in model, and returns `400` when there are several; pass `price_model_id` instead. With no opt-in model, `opt_in` also gets the model the listing is on."
          },
          {
            "in": "query",
            "name": "price_model_id",
            "schema": {
              "type": "integer"
            },
            "description": "The ID of a price model to use, instead of `price_model`, from [GET /price_models](#operation/getPriceModels). It must be one the listing can use and that has run for the listing's market, or the request returns `400`."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved recommendations",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/recommendationsApiResponse"
                }
              }
            }
          },
          "400": {
            "description": "The requested price model cannot be used for this listing, or `price_model=opt_in` is ambiguous"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "406": {
            "description": "Listing not active"
          },
          "409": {
            "description": "We were unable to generate recommendations because of a user workflow error. Typically this means we haven't received a reservation update or a price calendar update in the last 24 hours"
          },
          "422": {
            "description": "Listing not covered by a market"
          },
          "423": {
            "description": "Price recommendations are still being generated, either from a previous request to this endpoint or from the initial creation of a listing."
          }
        }
      }
    },
    "/listings/{id}/base_price_recommendation": {
      "get": {
        "summary": "Get base price recommendation for this listing",
        "description": "Return recommended, conservative, and aggressive base prices, the listing's active base price, anchoring\nfields (`anchor_price`, `anchor_credibility`), and a consolidated row-level breakdown in `base_price_attribution`\naligned with the Wheelhouse app Recommended Breakdown.\n",
        "tags": [
          "Price Recommendations"
        ],
        "operationId": "basePriceRecommendations",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currency",
            "in": "query",
            "required": false,
            "description": "The final currency that the prices should be in. Uses listing's currency by default. Uses 3-digit ISO form (e.g. 'USD', 'GBP').",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved base price",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/base_price_recommendation"
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "406": {
            "description": "Listing not active"
          },
          "409": {
            "description": "We were unable to generate recommendations because of a user workflow error. Typically this means we haven't received a reservation update or a price calendar update in the last 24 hours"
          },
          "422": {
            "description": "Listing not covered by a market"
          }
        }
      }
    },
    "/listings/{id}/checkin_checkout": {
      "get": {
        "summary": "Get check-in/check-out calendar for this listing",
        "description": "Return daily check-in/check-out rules for this listing. The horizon of the rules\ndepends on the pricing tier this listing is in and can be queried using the\n[pricing tier](#operation/getListingPricingTier) endpoint.\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "checkinCheckout",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "schema": {
              "type": "string"
            },
            "description": "Channel name of the listing. Can be omitted if you request a listing you created, but required if you request a listing from another channel. See return value of the [/listings](#operation/getListings) endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved rules",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "description": "Daily check-in/check-out rules.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "stay_date",
                          "check_in",
                          "check_out"
                        ],
                        "properties": {
                          "stay_date": {
                            "description": "The date of the given price info (YYYY-MM-DD).",
                            "type": "string",
                            "format": "date"
                          },
                          "check_in": {
                            "description": "Value of `true` if check-in is allowed.",
                            "type": "boolean"
                          },
                          "check_out": {
                            "description": "Value of `true` if check-out is allowed.",
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "204": {
            "description": "Checkin/checkout not set up"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "406": {
            "description": "Listing not active"
          }
        }
      }
    },
    "/listings/{id}/min_max_prices": {
      "get": {
        "summary": "Get calendar of minimum and maximum prices for this listing",
        "description": "Return daily minimum and maximum price for this listing. The horizon of the rules\ndepends on the pricing tier this listing is in and can be queried using the\n[pricing tier](#operation/getListingPricingTier) endpoint.\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "minMaxPrices",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "schema": {
              "type": "string"
            },
            "description": "Channel name of the listing. Can be omitted if you request a listing you created, but required if you request a listing from another channel. See return value of the [/listings](#operation/getListings) endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved rules",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "description": "Daily min/max prices.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "stay_date",
                          "min_price",
                          "max_price"
                        ],
                        "properties": {
                          "stay_date": {
                            "description": "The date of the given price info (YYYY-MM-DD).",
                            "type": "string",
                            "format": "date"
                          },
                          "min_price": {
                            "description": "The nightly minimum price for this day.",
                            "type": "number"
                          },
                          "max_price": {
                            "description": "The nightly maximum price for this day, or `null` when no maximum price applies to the day.",
                            "type": "number",
                            "nullable": true
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "406": {
            "description": "Listing not active"
          }
        }
      }
    },
    "/listings/{id}/monthly_seasonality": {
      "get": {
        "summary": "Get recommended monthly seasonality factors for this listing",
        "description": "Return seasonality adjustment factors grouped by month for this listing at three\ndifferent intensity levels: Conservative (CON), Recommended (REC), and Aggressive (AGG).\n\nThe factors represent the average seasonality multiplier for each month based on\nmarket data and can be used to understand seasonal pricing patterns.\n\nA factor of 1.0 means no seasonal adjustment, values above 1.0 indicate higher\ndemand periods, and values below 1.0 indicate lower demand periods.\n\nThe three levels differ in how much they amplify the seasonality signal:\n- CON: 80% of the base seasonality variation\n- REC: 100% of the base seasonality variation\n- AGG: 120% of the base seasonality variation\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "monthlySeasonality",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "channel",
            "schema": {
              "type": "string"
            },
            "description": "Channel name of the listing. Can be omitted if you request a listing you created, but required if you request a listing from another channel. See return value of the [/listings](#operation/getListings) endpoint."
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved monthly seasonality factors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "description": "A map containing three adjustment levels (CON, REC, AGG), each containing\nmonth numbers (1-12) mapped to their average seasonality factors.\n- CON (Conservative): More moderate seasonality adjustments\n- REC (Recommended): Standard seasonality adjustments\n- AGG (Aggressive): More pronounced seasonality adjustments\n",
                  "required": [
                    "CON",
                    "REC",
                    "AGG"
                  ],
                  "properties": {
                    "CON": {
                      "type": "object",
                      "description": "Conservative seasonality factors by month.",
                      "additionalProperties": {
                        "type": "number",
                        "description": "The conservative seasonality factor for the month."
                      }
                    },
                    "REC": {
                      "type": "object",
                      "description": "Recommended seasonality factors by month.",
                      "additionalProperties": {
                        "type": "number",
                        "description": "The recommended seasonality factor for the month."
                      }
                    },
                    "AGG": {
                      "type": "object",
                      "description": "Aggressive seasonality factors by month.",
                      "additionalProperties": {
                        "type": "number",
                        "description": "The aggressive seasonality factor for the month."
                      }
                    }
                  },
                  "example": {
                    "CON": {
                      "1": 0.88,
                      "2": 0.9,
                      "3": 0.96,
                      "4": 1.02,
                      "5": 1.06,
                      "6": 1.12,
                      "7": 1.18,
                      "8": 1.14,
                      "9": 1.04,
                      "10": 0.98,
                      "11": 0.94,
                      "12": 0.96
                    },
                    "REC": {
                      "1": 0.85,
                      "2": 0.88,
                      "3": 0.95,
                      "4": 1.02,
                      "5": 1.08,
                      "6": 1.15,
                      "7": 1.22,
                      "8": 1.18,
                      "9": 1.05,
                      "10": 0.98,
                      "11": 0.92,
                      "12": 0.95
                    },
                    "AGG": {
                      "1": 0.82,
                      "2": 0.86,
                      "3": 0.94,
                      "4": 1.02,
                      "5": 1.1,
                      "6": 1.18,
                      "7": 1.26,
                      "8": 1.22,
                      "9": 1.06,
                      "10": 0.98,
                      "11": 0.9,
                      "12": 0.94
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "406": {
            "description": "Listing not active"
          }
        }
      }
    },
    "/listings/{listing_id}/bulk_custom_rates": {
      "put": {
        "summary": "Set multiple custom rates for a given listing",
        "description": "Creates multiple custom rates for a listing. See description of setCustomRate for details.\n",
        "tags": [
          "Listings"
        ],
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "bulkSetCustomRate",
        "requestBody": {
          "description": "An object representing the custom rate to be set.",
          "content": {
            "application/json": {
              "example": {
                "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
                  }
                ]
              },
              "schema": {
                "type": "object",
                "required": [
                  "custom_rates"
                ],
                "properties": {
                  "custom_rates": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/custom_rate"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created all custom rates. An empty `custom_rates` array is accepted and returns an empty `updated_custom_rates`; nothing is changed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "updated_custom_rates"
                  ],
                  "properties": {
                    "updated_custom_rates": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/custom_rate_response"
                      }
                    }
                  }
                }
              }
            }
          },
          "207": {
            "description": "Partial success updating custom rates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "updated_custom_rates",
                    "errors"
                  ],
                  "properties": {
                    "updated_custom_rates": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/custom_rate_response"
                      }
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/custom_rate_error"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          }
        }
      },
      "delete": {
        "summary": "Delete custom rates for a set of ranges",
        "description": "This endpoint allows for multiple date ranges to have their custom rates removed, reverting back to\nrecommended prices for those dates. Note that start_date and end_date of each range are inclusive, and\ncustom rates will be removed on those dates as well.\n",
        "tags": [
          "Listings"
        ],
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The integration partner's unique listing identifier."
          }
        ],
        "operationId": "bulkDeleteCustomRate",
        "requestBody": {
          "description": "An object representing the set of ranges for which to delete custom rates.",
          "content": {
            "application/json": {
              "example": {
                "delete_ranges": [
                  {
                    "start_date": "2027-07-02",
                    "end_date": "2027-07-04"
                  },
                  {
                    "start_date": "2027-10-01",
                    "end_date": "2027-10-31"
                  }
                ]
              },
              "schema": {
                "type": "object",
                "required": [
                  "delete_ranges"
                ],
                "properties": {
                  "delete_ranges": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "start_date",
                        "end_date"
                      ],
                      "properties": {
                        "start_date": {
                          "type": "string",
                          "format": "date"
                        },
                        "end_date": {
                          "type": "string",
                          "format": "date"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successfully removed custom rates for given ranges. No response body"
          },
          "207": {
            "description": "Removal of custom ranges was only partially successful. Only some ranges removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errors"
                  ],
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/custom_rate_error"
                      }
                    }
                  }
                }
              }
            }
          },
          "424": {
            "description": "Removal of custom ranges failed. No ranges were removed.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "errors"
                  ],
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/custom_rate_error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/listings/{listing_id}/custom_rates": {
      "put": {
        "summary": "Set a custom rate",
        "description": "Defines a custom rate (an override of recommended pricing) for a date range. A rate_type of `fixed`\ndefines a fixed rate in the specified currency. A rate_type of `adjustment` defines a percentage-based adjustment to the recommended price.\n\n<b>Fixed Rate Example</b>:\nSpecifying the `currency` as \"USD\", a day of week value of 500 for `sunday`, 750 for `friday`\nand 625 for `saturday` will set the rates for those days during the specified date range to\n$500, $750 and $625, respectively.\n\n<b>Adjustment Rate Example</b>:\nAn adjustment value of 115 would mean a 15% increase in price, while a value of 75 would\nindicate a decrease of 25% from the recommended price. In cases where both an adjustment and\nday of week values are given, the adjustment will act as the default value for the non-specified\ndays of week. So setting an `adjustment` of 115 and specifying 125 for `sunday`, 145 for `friday`\nand 135 for `saturday` would results in a 25% increase for Sunday, a 15% increase for Monday-Thursday,\na 45% increase for Friday and a 35% increase for Saturday.\n",
        "tags": [
          "Listings"
        ],
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The integration partner's unique listing identifier."
          }
        ],
        "operationId": "setCustomRate",
        "requestBody": {
          "description": "An object representing the custom rate to be set.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/custom_rate"
              },
              "examples": {
                "fixed": {
                  "summary": "Fixed nightly prices for a holiday weekend",
                  "value": {
                    "start_date": "2027-07-02",
                    "end_date": "2027-07-04",
                    "rate_type": "fixed",
                    "currency": "USD",
                    "friday": 450,
                    "saturday": 475,
                    "sunday": 425
                  }
                },
                "adjustment": {
                  "summary": "Percentage of the recommended price for a month",
                  "value": {
                    "start_date": "2027-10-01",
                    "end_date": "2027-10-31",
                    "rate_type": "adjustment",
                    "adjustment": 115,
                    "friday": 145,
                    "saturday": 135,
                    "sunday": 125
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created custom rate.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/custom_rate_response"
                },
                "examples": {
                  "fixed": {
                    "value": {
                      "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
                    }
                  },
                  "adjustment": {
                    "value": {
                      "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": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          }
        }
      },
      "delete": {
        "summary": "Remove custom rates",
        "description": "Remove all custom rates from Wheelhouse for the affected stay dates. Any partially covered custom rates will be adequately shortened and the affected date range will be set to the recommended price again. These will then reflect both in the Wheelhouse UI and in the prices returned from the [recommendations endpoint](#tag/Price-Recommendations).",
        "tags": [
          "Listings"
        ],
        "operationId": "delCustomRate",
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The integration partner's unique listing identifier."
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "required": true,
            "description": "The inclusive start of the stay-date range where any custom rate is removed (YYYY-MM-DD)."
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "required": true,
            "description": "The inclusive end of the stay-date range where any custom rate is removed (YYYY-MM-DD)."
          }
        ],
        "responses": {
          "204": {
            "description": "Delete succeeded"
          },
          "400": {
            "description": "Validation failed"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      }
    },
    "/preferences/{id}/copy": {
      "put": {
        "summary": "Copy the preferences from one listing to another.",
        "description": "This endpoint can be used to copy the preferences from one listing to another. This is\nuseful if you have multiple listings that are very similar and you want to copy the\npreferences from one listing to another, or if you are creating a listing on a new channel\nand want to copy the preferences from an existing listing.\n\n**This is a destructive action** — it overwrites the target listing's existing preferences (and optionally\ncustom rates when enabled).\n\nThe **target** listing is `id` in the URL. The **source** listing is identified in the\nJSON body by `copy_preferences_from.listing_id` (your integration's listing ID for that\nproperty) and optionally `copy_preferences_from.channel`. If you omit `channel`, the\nchannel implied by your API credentials is used; set `channel` when the source listing is on\na different channel. Custom rates can also be copied using the `copy_custom_rates` field.\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "copyPreferences",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier for the **target** listing (the listing to copy preferences **to**).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "copy_preferences_from": {
                  "listing_id": "12344"
                },
                "copy_custom_rates": false
              },
              "schema": {
                "type": "object",
                "required": [
                  "copy_preferences_from"
                ],
                "properties": {
                  "copy_custom_rates": {
                    "type": "boolean",
                    "description": "Whether to copy custom rates from the source listing to the target listing.\n",
                    "default": true
                  },
                  "channel": {
                    "type": "string",
                    "description": "Channel name of the **target** listing. Can be omitted if you request a listing you created, but required if you request a listing from another channel. See return value of the [/listings](#operation/getListings) endpoint."
                  },
                  "copy_preferences_from": {
                    "type": "object",
                    "required": [
                      "listing_id"
                    ],
                    "description": "Identifies the source listing from which to copy the preferences.",
                    "properties": {
                      "channel": {
                        "type": "string",
                        "description": "Channel name for the **source** listing in Wheelhouse's system. Omit to use the\nchannel associated with your API credentials; set when the source listing is on\na different channel.\n"
                      },
                      "listing_id": {
                        "type": "string",
                        "description": "Your integration's unique listing identifier for the **source** listing (the\nlisting to copy **from**).\n",
                        "example": "12344"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully copied preferences and/or custom rates.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "warnings"
                  ],
                  "properties": {
                    "warnings": {
                      "description": "Copied settings the target listing's channel can't act on, or that have no effect on it. Empty when everything applied.",
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/preference_warning"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          },
          "422": {
            "description": "Validation failed (e.g. source channel could not be determined)"
          }
        }
      }
    },
    "/preferences/{id}/{setting}": {
      "put": {
        "summary": "Update the basic preferences of a listing.",
        "description": "This endpoint can be used to change basic preferences of the Wheelhouse recommendation\nengine. For each setting you can choose between a conservative (CON), recommended (REC), or\naggressive (AGG) setting. `weekend_factor` is deprecated; use `day_of_week`.\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "setBasicPreferences",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "setting",
            "in": "path",
            "required": true,
            "description": "The setting you want to change.",
            "schema": {
              "type": "string",
              "enum": [
                "base_price_adjustment",
                "day_of_week",
                "weekend_factor",
                "seasonality_adjustment",
                "last_minute_discount",
                "far_future_premium"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "type": "AGG"
              },
              "schema": {
                "type": "object",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "description": "Setting to be applied.",
                    "type": "string",
                    "enum": [
                      "CON",
                      "REC",
                      "AGG"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successfully updated the preference"
          },
          "400": {
            "description": "Invalid type provided"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          },
          "423": {
            "description": "Listing is still being created and is locked to updating via API"
          }
        }
      }
    },
    "/preferences/{id}/automatic_rate_posting": {
      "put": {
        "summary": "Change automatic rate posting status in Wheelhouse.",
        "description": "This setting informs Wheelhouse whether or not the user wishes to use the Wheelhouse\nrecommended prices for this listing.\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "setAutomaticRatePosting",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "enabled": true
              },
              "schema": {
                "type": "object",
                "required": [
                  "enabled"
                ],
                "properties": {
                  "enabled": {
                    "description": "Whether or not the user wishes to use the Wheelhouse recommended prices for this listing.",
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Successfully updated the preference"
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          }
        }
      }
    },
    "/preferences/{id}/long_term_discounts": {
      "get": {
        "summary": "Get the long term discount settings of a listing.",
        "description": "This endpoint can be used to fetch weekly and monthly discounts set up through Wheelhouse for a listing.",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "getLongTermDiscounts",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Long term discounts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "weekly_discount",
                    "monthly_discount"
                  ],
                  "properties": {
                    "weekly_discount": {
                      "type": "integer",
                      "minimum": -100,
                      "maximum": 100,
                      "description": "Whole-percentage discount applied for stays of 7 nights or more (`10` is a 10% discount). On listings that accept length-of-stay premiums, values are signed instead, so `-10` is a 10% discount and `10` a 10% premium."
                    },
                    "monthly_discount": {
                      "type": "integer",
                      "minimum": -100,
                      "maximum": 100,
                      "description": "Whole-percentage discount applied for stays of 28 nights or more (`10` is a 10% discount). On listings that accept length-of-stay premiums, values are signed instead, so `-10` is a 10% discount and `10` a 10% premium."
                    }
                  }
                },
                "example": {
                  "weekly_discount": 10,
                  "monthly_discount": 20
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      }
    },
    "/preferences/{id}/changelog": {
      "get": {
        "summary": "Get the changelog for a listing",
        "description": "Returns a list of change events for the listing, most recent first. A request returns at most one year of events, ending at `end_date`, and never later than tomorrow.",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "getPreferencesChangelog",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "start_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Start of the date range to retrieve changes for (YYYY-MM-DD). Defaults to 30 days ago. A `start_date` more than a year before `end_date` is moved forward to one year before `end_date`; to read older history, move `end_date` back as well."
          },
          {
            "in": "query",
            "name": "end_date",
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "End of the date range to retrieve changes for (YYYY-MM-DD). Defaults to tomorrow."
          },
          {
            "in": "query",
            "name": "event",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "Prices posted",
                  "Calendar synced",
                  "Settings changed",
                  "Custom rates",
                  "Reservations imported"
                ]
              }
            },
            "style": "form",
            "explode": false,
            "description": "Return only events of these types (the `event` field of each entry). Defaults to every type. Send more than one comma-separated (`?event=Settings changed,Custom rates`) or in brackets (`?event[]=Settings changed&event[]=Custom rates`)."
          }
        ],
        "responses": {
          "200": {
            "description": "List of changelog events",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "events"
                  ],
                  "properties": {
                    "events": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "time",
                          "source",
                          "event",
                          "status",
                          "msg"
                        ],
                        "properties": {
                          "time": {
                            "description": "When the change occurred (ISO-8601).",
                            "type": "string",
                            "format": "date-time"
                          },
                          "source": {
                            "description": "The source of the change (e.g. user, API).",
                            "type": "string"
                          },
                          "event": {
                            "description": "The name of the event.",
                            "type": "string"
                          },
                          "status": {
                            "description": "The status of the event.",
                            "type": "string"
                          },
                          "msg": {
                            "description": "A human-readable description of the change.",
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      }
    },
    "/preferences/{id}/preview": {
      "post": {
        "summary": "Preview price recommendations with custom preferences",
        "description": "Returns price recommendations as if the provided preferences were applied to the listing, without saving\nany changes. You can use this endpoint to preview what recommendations would look like with different\npreference settings before applying them.\nThe response format is identical to the GET /listings/{id}/price_recommendations\nendpoint, with the exception of the global_min_stay and automatic_rate_posting_enabled\nfields, which are not included in the preview response.\n\nThis is useful for testing different preference configurations or showing users\nwhat their pricing would look like with different settings.\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "previewPreferences",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "attribution",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Whether or not you want to receive a detailed attribution for each day. The attribution will break a daily recommendation down into contributing prices like seasonality, local events, etc. and activate all `attr_` response values."
          }
        ],
        "requestBody": {
          "required": true,
          "description": "An object representing the preferences to preview.",
          "content": {
            "application/json": {
              "example": {
                "base_price": 220,
                "weekly_discount": 10,
                "last_minute_discount": {
                  "type": "AGG"
                },
                "minimum_price_rules": [
                  {
                    "type": "global",
                    "value": 120
                  },
                  {
                    "type": "custom",
                    "start_date": "2027-07-01",
                    "end_date": "2027-07-05",
                    "value": 300
                  }
                ]
              },
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/listing_preference_request"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "price_model": {
                        "description": "The price model version to use. `current` is the model the listing gets without a pick of its own. `opt_in` is the opt-in model, and returns `400` when there are several; pass `price_model_id` instead. With no opt-in model, `opt_in` uses the model the listing is on, as does omitting the parameter.",
                        "type": "string",
                        "enum": [
                          "current",
                          "opt_in"
                        ]
                      },
                      "price_model_id": {
                        "description": "The ID of a price model to use, instead of `price_model`, from [GET /price_models](#operation/getPriceModels). It must be one the listing can use and that has run for the listing's market, or the request returns `400`.",
                        "type": "integer"
                      }
                    }
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successfully generated preview recommendations",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "base_price",
                    "base_price_recommended",
                    "base_price_conservative",
                    "base_price_aggressive",
                    "warnings",
                    "supported_settings"
                  ],
                  "properties": {
                    "data": {
                      "description": "Daily price recommendations based on the provided preferences.",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "stay_date",
                          "price",
                          "currency",
                          "custom_type",
                          "min_price"
                        ],
                        "properties": {
                          "min_price": {
                            "description": "The minimum nightly price applied to this day, or `null` when none applies.",
                            "type": "integer",
                            "nullable": true
                          },
                          "min_stay": {
                            "description": "The minimum stay applied to reservations overlapping this day. Omitted unless the preferences configure min stays, and `null` on days no minimum stay rule covers.",
                            "type": "integer",
                            "nullable": true
                          },
                          "stay_date": {
                            "description": "The date of the given price info (YYYY-MM-DD).",
                            "type": "string",
                            "format": "date"
                          },
                          "price": {
                            "description": "The recommended nightly price for this day.",
                            "type": "number"
                          },
                          "currency": {
                            "description": "The ISO-4217 3-letter currency code of the price.",
                            "type": "string"
                          },
                          "custom_type": {
                            "description": "Reflects if this price is based on a custom rate from the user. `null` means this is the Wheelhouse recommendation, otherwise it can be one of `fixed` (i.e. a fixed custom price) or `adjusted` (i.e. a percentage adjustment to the Wheelhouse recommendation).",
                            "type": "string",
                            "nullable": true
                          },
                          "attr_seasonality": {
                            "description": "The seasonality attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_local_demand": {
                            "description": "The local demand attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_availability": {
                            "description": "The availability/gap night attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_time": {
                            "description": "The time-based attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_custom_weekend": {
                            "description": "The custom weekend attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_scarcity": {
                            "description": "The scarcity attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_occupancy_pacing": {
                            "description": "The occupancy pacing attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_revenue_pacing": {
                            "description": "The revenue pacing attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_market_health_barometer": {
                            "description": "The market health barometer attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_historical_anchoring": {
                            "description": "The historical anchoring attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_restriction": {
                            "description": "The restriction attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "attr_user_adjustment": {
                            "description": "The user adjustment attribution of the recommended price. Only present if `attribution` query parameter is set to `true`.",
                            "type": "integer"
                          },
                          "historical_anchor_date": {
                            "description": "The earlier date whose price historical anchoring held this date's recommendation up to. Only present if `attribution` query parameter is set to `true` and historical anchoring raised this date's price.",
                            "type": "string",
                            "format": "date"
                          },
                          "historical_anchor_pct": {
                            "description": "The historical anchoring percentage in effect for this date. Present with `historical_anchor_date`.",
                            "type": "number"
                          },
                          "historical_anchor_price": {
                            "description": "The price on `historical_anchor_date` that anchoring weighed in, in this response's `currency`. Present with `historical_anchor_date`.",
                            "type": "integer"
                          },
                          "historical_anchor_source": {
                            "description": "Where `historical_anchor_price` comes from, `observed` or `posted`. Present with `historical_anchor_date`.",
                            "type": "string",
                            "enum": [
                              "observed",
                              "posted"
                            ]
                          }
                        }
                      }
                    },
                    "base_price": {
                      "description": "The current base price for the listing.",
                      "type": "number"
                    },
                    "base_price_recommended": {
                      "description": "The recommended base price (anchored base price).",
                      "type": "number"
                    },
                    "base_price_conservative": {
                      "description": "A conservative base price option (90% of recommended).",
                      "type": "number"
                    },
                    "base_price_aggressive": {
                      "description": "An aggressive base price option (110% of recommended).",
                      "type": "number"
                    },
                    "warnings": {
                      "description": "Settings in the request the listing's channel can't act on, or that have no effect on this listing. Empty when everything applies.",
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/preference_warning"
                      }
                    },
                    "supported_settings": {
                      "$ref": "#/components/schemas/supported_settings"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A setting in the request has the wrong shape; the message names the field."
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "422": {
            "description": "Listing not covered by a market"
          }
        }
      }
    },
    "/preferences": {
      "get": {
        "summary": "Get preferences for a batch of listings.",
        "description": "Returns full preference objects for each listing. Query `listing_ids` must be\nintegration listing ids (same identifiers used in listing payloads).\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "getPreferencesBatch",
        "parameters": [
          {
            "in": "query",
            "name": "listing_ids",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true,
            "description": "Array of integration listing IDs to retrieve preferences for. Send more than one in brackets\n(`?listing_ids[]=A&listing_ids[]=B`); a key repeated without brackets keeps only its last value.\n"
          }
        ],
        "responses": {
          "200": {
            "description": "Array of listing preferences",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/listing_preference_response"
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          }
        }
      },
      "put": {
        "summary": "Bulk update the preferences of a set of listings.",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "setPreferencesBulk",
        "requestBody": {
          "required": true,
          "description": "JSON object with a listing preferences array. Each element must include `listing_id` (integration listing /\nproperty id) and may include any fields for preferences to update.\n",
          "content": {
            "application/json": {
              "example": {
                "listing_preferences": [
                  {
                    "listing_id": "12345",
                    "base_price": 220,
                    "weekly_discount": 10,
                    "monthly_discount": 25
                  },
                  {
                    "listing_id": "12346",
                    "base_price_adjustment": 1.05,
                    "last_minute_discount": {
                      "type": "CON"
                    }
                  }
                ]
              },
              "schema": {
                "type": "object",
                "required": [
                  "listing_preferences"
                ],
                "properties": {
                  "listing_preferences": {
                    "type": "array",
                    "items": {
                      "allOf": [
                        {
                          "type": "object",
                          "required": [
                            "listing_id"
                          ],
                          "properties": {
                            "listing_id": {
                              "type": "string",
                              "description": "The integration partner's unique listing identifier (property id)."
                            }
                          }
                        },
                        {
                          "$ref": "#/components/schemas/listing_preference_request"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully updated the preferences for all listings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "updated_preferences"
                  ],
                  "properties": {
                    "updated_preferences": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/listing_preference_response"
                      }
                    }
                  }
                }
              }
            }
          },
          "207": {
            "description": "Partial success updating preferences",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "updated_preferences",
                    "errors"
                  ],
                  "properties": {
                    "updated_preferences": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/listing_preference_response"
                      }
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/preference_error"
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "Another request is already in progress for one or more listings. Retry after the concurrent request completes."
          },
          "424": {
            "description": "No listing preferences were updated; all failed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "updated_preferences",
                    "errors"
                  ],
                  "properties": {
                    "updated_preferences": {
                      "description": "Always empty.",
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/listing_preference_response"
                      }
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/preference_error"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/preferences/{id}": {
      "get": {
        "summary": "Get the preferences of a listing.",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "getPreferences",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The listing preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listing_preference_response"
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "423": {
            "description": "Listing preferences not yet initialized. Retry after a brief delay."
          }
        }
      },
      "put": {
        "summary": "Update the preferences of a listing.",
        "description": "Note that this endpoint is `experimental` and might change in the future! This endpoint can\nbe used to change custom preferences of the Wheelhouse recommendation engine.\n\nAll fields in the body are optional; only provided fields are updated.\n",
        "tags": [
          "Listing Preferences"
        ],
        "operationId": "setPreferences",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The integration partner's unique listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Preference fields to update.",
          "content": {
            "application/json": {
              "examples": {
                "settings": {
                  "summary": "Change scalar settings",
                  "value": {
                    "base_price": 220,
                    "weekly_discount": 10,
                    "monthly_discount": 25,
                    "last_minute_discount": {
                      "type": "AGG"
                    }
                  }
                },
                "replace_minimum_prices": {
                  "summary": "Replace all minimum price rules",
                  "value": {
                    "minimum_price_rules": [
                      {
                        "type": "global",
                        "value": 120
                      },
                      {
                        "type": "custom",
                        "start_date": "2027-07-01",
                        "end_date": "2027-07-05",
                        "value": 300
                      }
                    ]
                  }
                }
              },
              "schema": {
                "$ref": "#/components/schemas/listing_preference_request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully updated listing preferences",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/listing_preference_response"
                }
              }
            }
          },
          "400": {
            "description": "A setting in the request has the wrong shape; the message names the field."
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          },
          "423": {
            "description": "Listing preferences not yet initialized. Retry after a brief delay."
          }
        }
      }
    },
    "/listings/{id}/tags": {
      "get": {
        "summary": "Get tags for this listing",
        "description": "Return all tags for this listing.\n",
        "tags": [
          "Listing Tags"
        ],
        "operationId": "getListingTags",
        "responses": {
          "200": {
            "description": "Successfully retrieved tags",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "description",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "description": "The tag ID.",
                        "type": "integer"
                      },
                      "name": {
                        "description": "Name of the tag.",
                        "type": "string"
                      },
                      "description": {
                        "description": "More detailed description provided by the user. `null` for tags created through this API.",
                        "type": "string",
                        "nullable": true
                      },
                      "type": {
                        "description": "The tag type, `UserTag` or `ImportedTag`.",
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      },
      "put": {
        "summary": "Update tags for this listing",
        "description": "This allows to add new tags or completely overwrite all tags for this listing.\n",
        "tags": [
          "Listing Tags"
        ],
        "operationId": "updateListingTags",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "example": {
                "names": [
                  "Beachfront",
                  "Pet friendly"
                ],
                "overwrite": false
              },
              "schema": {
                "type": "object",
                "required": [
                  "names"
                ],
                "properties": {
                  "names": {
                    "description": "List of tag names to be added or updated.",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "overwrite": {
                    "description": "Whether to overwrite all existing tags and thus delete all tags that are not in the list.",
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully updated tags",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "description",
                      "type"
                    ],
                    "properties": {
                      "id": {
                        "description": "The tag ID.",
                        "type": "integer"
                      },
                      "name": {
                        "description": "Name of the tag.",
                        "type": "string"
                      },
                      "description": {
                        "description": "More detailed description provided by the user. `null` for tags created through this API.",
                        "type": "string",
                        "nullable": true
                      },
                      "type": {
                        "description": "The tag type, `UserTag` or `ImportedTag`.",
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          },
          "409": {
            "description": "Another request is already in progress for this listing. Retry after the concurrent request completes."
          }
        }
      }
    },
    "/listings/{id}/flags": {
      "get": {
        "summary": "Get flags for this listing",
        "description": "Returns all system-managed flags for this listing. Flags are set automatically by Wheelhouse\nand are read-only. They convey internal state or signals about the listing.\n",
        "tags": [
          "Listing Flags"
        ],
        "operationId": "getListingFlags",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The listing identifier.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved flags",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "category",
                      "name",
                      "description"
                    ],
                    "properties": {
                      "category": {
                        "description": "What the flag means for the listing's pricing:\n\n* `engine` — a setup that keeps Wheelhouse from pricing the listing as recommended, such as fixed prices, a minimum price above the base price, or a maximum price below the minimum.\n* `info` — context about the listing, such as being new to Wheelhouse or having its recommended base price lowered by its booking history.\n* `performance` — how the listing is booking, such as pacing ahead of or behind last year, or going unbooked.\n* `settings` — a pricing setting worth reviewing because it is missing, set unusually high or low, or combined with another setting so that their effects compound or cancel out.\n\n`null` for an older flag that Wheelhouse no longer raises. New flags can be added to any category, so decide how to treat a flag from its `category` rather than from a list of flag names.\n",
                        "type": "string",
                        "nullable": true,
                        "enum": [
                          "engine",
                          "info",
                          "performance",
                          "settings"
                        ]
                      },
                      "description": {
                        "description": "More detailed description of the flag.",
                        "type": "string"
                      },
                      "name": {
                        "description": "Name of the flag. Key-value flags use the format `key:::value`.",
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Listing not found"
          }
        }
      }
    },
    "/segments": {
      "get": {
        "summary": "List portfolio segments",
        "description": "Returns all portfolio segments for the authenticated user. Segments are used in the Wheelhouse UI to group\nlistings by filter criteria; this endpoint provides read-only access to the segment list.\n",
        "tags": [
          "Segments"
        ],
        "operationId": "getSegments",
        "responses": {
          "200": {
            "description": "Array of portfolio segments",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "description",
                      "filter_backend",
                      "is_default",
                      "created_at",
                      "updated_at"
                    ],
                    "properties": {
                      "id": {
                        "type": "integer",
                        "description": "Segment identifier"
                      },
                      "name": {
                        "type": "string",
                        "nullable": true,
                        "description": "Segment name, `null` if never set"
                      },
                      "description": {
                        "type": "string",
                        "nullable": true,
                        "description": "Optional segment description, `null` if not set"
                      },
                      "filter_backend": {
                        "description": "The backend filter definition that drives listing filtering for this segment. Can be `null` on older segments.",
                        "type": "object",
                        "nullable": true
                      },
                      "is_default": {
                        "type": "boolean",
                        "nullable": true,
                        "description": "Whether this segment is the user's default"
                      },
                      "created_at": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "updated_at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          }
        }
      }
    },
    "/segments/{segment_id}/listings": {
      "get": {
        "summary": "List listings in a segment",
        "description": "Returns the listings that belong to the given portfolio segment. The segment's filter criteria are applied\nto the user's listings. Supports pagination and optional exclusion of inactive listings.\n",
        "tags": [
          "Segments"
        ],
        "operationId": "getSegmentListings",
        "parameters": [
          {
            "name": "segment_id",
            "in": "path",
            "required": true,
            "description": "The segment identifier (returned by GET /segments).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "exclude_inactive",
            "schema": {
              "type": "boolean",
              "default": true
            },
            "description": "Exclude inactive listings, and listings not linked to a channel, from the response. (Optional)"
          },
          {
            "in": "query",
            "name": "page",
            "schema": {
              "type": "integer"
            },
            "description": "Page number for pagination. (Optional)"
          },
          {
            "in": "query",
            "name": "per_page",
            "schema": {
              "type": "integer"
            },
            "description": "Number of listings per page (default 50, max 100). (Optional)"
          },
          {
            "in": "query",
            "name": "offset",
            "schema": {
              "type": "integer"
            },
            "description": "Number of items to skip. (Optional)"
          }
        ],
        "responses": {
          "200": {
            "description": "Array of listings in the segment (same format as GET /listings).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/listing_response"
                  }
                }
              }
            }
          },
          "401": {
            "description": "API key authorization failed"
          },
          "403": {
            "description": "Listing authorization failed"
          },
          "404": {
            "description": "Portfolio segment not found"
          }
        }
      }
    }
  }
}
