{"openapi":"3.1.0","info":{"title":"Vacant API","description":"The public Vacant developer API.\n\n**Authentication** — send a property API key as `Authorization: Bearer vk_live_…`. Each key is scoped per domain (`bookings:read`, `rates:write`, …); the tag descriptions below name the scope each domain requires.\n\n**Errors** — every failure uses one envelope: `{\"error\": {\"code\", \"message\", \"request_id\"}}` (plus `fields` on validation errors). `code` is stable and machine-readable; `request_id` matches the `X-Request-ID` response header.\n\n**IDs** — resources carry prefixed public IDs (`prop_…`, `rmt_…`, `rm_…`, `bkg_…`, `gst_…`, `rpl_…`, `chn_…`, `whe_…`, `whd_…`, `evt_…`). They are stable; never parse them beyond the prefix.\n\n**Pagination** — list endpoints take `limit` (1–100, default 10) and `offset`, and respond with `{\"data\": [...], \"meta\": {\"next_page_marker\": ...}}`; a null marker means the last page. The **per-date** reads (rates, availability) page by window instead: a request wider than the endpoint's cap is served up to the cap, and `meta.next_start_date` carries the date to resume from. The rate history read takes a date window but is a plain `limit`/`offset` collection — a window over its cap is a `400`, since its pages are rows rather than dates and there is no window to resume. Two reads are cursor-paged rather than either: the events list, and the bookings list in sync mode (`updated_since`, then `cursor`). Pass `meta.next_cursor` back as `cursor` — until it comes back null for events; the bookings sync always returns one, to resume from on the next poll.\n\n**Idempotency** — write endpoints accept an `Idempotency-Key` header; a retried key replays the stored outcome verbatim (marked by the `Vacant-Idempotent-Replay: true` response header).\n\n**Rate limits** — every response on an authenticated request carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`, errors included, and a `429 rate_limited` adds `Retry-After` (whole seconds until the window resets). A request rejected before the key is identified (401) has no key budget to report and carries none.","version":"1.0.0"},"servers":[{"url":"/api/v1"}],"paths":{"/properties/{property}":{"get":{"tags":["Properties"],"summary":"Get the property","description":"The property the API key belongs to: identity, locale, location, and\ncheck-in/out times. A key is always bound to exactly one property, so the\npath's `{property}` is the key's own property ID.\n\n**Requires scope:** `properties:read`","operationId":"get_property_properties__property__get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_PropertyOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/room_types":{"get":{"tags":["Properties"],"summary":"List room types","description":"The property's sellable room categories, with occupancy and capacity\nlimits per type, and where each type's default nightly rate comes from.\n\n**Requires scope:** `properties:read`","operationId":"list_room_types_properties__property__room_types_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_RoomTypeOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/room_types/{room_type_id}":{"put":{"tags":["Properties"],"summary":"Update a room type's capacity limits","description":"Set the room type's capacity limits — ``max_adults`` and\n``max_children``, the only writable room-type fields. A field absent\nfrom the payload keeps its current value; an explicit null clears the\nlimit (\"no limit\" on that dimension). While the legacy total is being\nretired, ``max_guests`` is accepted as a transitional alias that writes\n``max_adults`` (an explicit ``max_adults`` in the same payload wins).\nResponds with the updated room type.\n\n**Requires scope:** `properties:write`","operationId":"update_room_type_capacity_properties__property__room_types__room_type_id__put","parameters":[{"name":"room_type_id","in":"path","required":true,"schema":{"type":"string","title":"Room Type Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RoomTypeCapacityIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_RoomTypeOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rooms":{"get":{"tags":["Rooms"],"summary":"List rooms","description":"The property's physical rooms, each belonging to one room type, with\nits out-of-order flag and housekeeping status. Pass\n`include=occupancy_status` to also get whether each room is vacant,\noccupied, arriving, departing or turning over today.\n\n**Requires scope:** `properties:read`","operationId":"list_rooms_properties__property__rooms_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"$ref":"#/components/schemas/RoomInclude"}},{"type":"null"}],"description":"Optional fields to compute for each room (repeat the parameter to pass several). `occupancy_status` fills each room's `occupancy_status` from today's bookings; it costs an extra bookings read, so leave it out when you don't need it. An unknown value returns 400.","title":"Include"},"description":"Optional fields to compute for each room (repeat the parameter to pass several). `occupancy_status` fills each room's `occupancy_status` from today's bookings; it costs an extra bookings read, so leave it out when you don't need it. An unknown value returns 400."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_RoomOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rooms/{room_id}":{"put":{"tags":["Rooms"],"summary":"Update a room","description":"Rename the room, set its housekeeping status, or both. A PUT with\npatch semantics: only the fields you send change, and neither can be\ncleared, so an explicit null is rejected.\n\nA name already used by another room on the property, compared ignoring\ncase and surrounding whitespace, is a `409 conflict`, and nothing is\nwritten. Setting the housekeeping status on a room that is part of a\nvirtual room type also updates that virtual room's status. Housekeeping\nstatus never affects whether the room can be sold. Responds with the\nroom as written.\n\n**Requires scope:** `properties:write` to change `name`; `housekeeping:write` to change `housekeeping_status`","operationId":"update_room_properties__property__rooms__room_id__put","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RoomUpdateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_RoomOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rooms/{room_id}/close":{"put":{"tags":["Rooms"],"summary":"Close a room to sale","description":"Close the room to sale for `[start_date, end_date)` — the same write\nthe dashboard's room-close action performs, with the same guards: a\nwindow overlapping a booking or an existing close is rejected and\nnothing is written. Responds with the close as written. The effect on\nsellable counts is visible on the availability read (see Inventory).\n\n**Requires scope:** `properties:write`","operationId":"close_room_properties__property__rooms__room_id__close_put","parameters":[{"name":"room_id","in":"path","required":true,"schema":{"type":"string","title":"Room Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RoomCloseIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_RoomCloseOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rate_plans":{"get":{"tags":["Rates"],"summary":"List rate plans","description":"The property's rate plans with their pricing adjustments and\nrestrictions.\n\n**Requires scope:** `rates:read`","operationId":"list_rate_plans_properties__property__rate_plans_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_RatePlanOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"post":{"tags":["Rates"],"summary":"Create a rate plan","description":"Create a rate plan — the same code path as a dashboard create, so\nvalidation and side effects match: where the property syncs to a channel\nmanager, the plan is created there and a rates sync is enqueued.\n``is_tax_inclusive`` left unset stays null, meaning the plan inherits the\nproperty-level setting on every read; ``pricing`` left unset defaults to\n``derived``. Room-type mappings, cancellation policies, payment methods,\nchannel mappings, and promo/group codes are dashboard-managed and not\nwritable on this surface.\n\n**Requires scope:** `rates:write`","operationId":"create_rate_plan_properties__property__rate_plans_post","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateRatePlanIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_RatePlanOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rate_plans/{rate_plan_id}":{"put":{"tags":["Rates"],"summary":"Update a rate plan","description":"PUT with patch semantics: a field absent from the payload keeps its\ncurrent value; an explicit null clears a nullable field. Runs the same\ncode path as a dashboard edit, so channel-manager rate plans are updated\nand a rates sync is enqueued for channel-synced properties.\n\n**Requires scope:** `rates:write`","operationId":"update_rate_plan_properties__property__rate_plans__rate_plan_id__put","parameters":[{"name":"rate_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Rate Plan Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1UpdateRatePlanIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_RatePlanOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Rates"],"summary":"Delete a rate plan","description":"Soft-delete a rate plan — the dashboard's exact delete semantics: the\nplan disappears from every surface (existing bookings keep their\nreferences), and its channel-manager rate plans and cancellation policy\nare removed there. The property's Standard Rate cannot be deleted —\nattempting it returns a 400 ``standard_rate_undeletable``.\n\n**Requires scope:** `rates:write`","operationId":"delete_rate_plan_properties__property__rate_plans__rate_plan_id__delete","parameters":[{"name":"rate_plan_id","in":"path","required":true,"schema":{"type":"string","title":"Rate Plan Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1DeletedOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rates":{"get":{"tags":["Rates"],"summary":"Get effective rates","description":"Effective rates per date and room type. Each room-type entry carries\nits ``min_rate`` — the binding minimum a below-minimum write is rejected\nagainst (or, with ``overwrite_min_rate``, raised to); null means no minimum is\nconfigured anywhere up the derivation chain.\n\nA window wider than 92 days is served up to 92 days rather than rejected:\n``meta.next_start_date`` then carries the date to resume from (pass it as\n``start_date``, keeping your original ``end_date``), and\n``meta.next_page_marker`` is non-null alongside it. Both are null once the\nwindow reaches your requested ``end_date``.\n\nThe response's ``ETag`` header is a version token over the *stored*\ncustom rates in exactly the requested ``start_date..end_date`` window.\nPass it as ``If-Match`` on a rates PUT covering the **same window** to\nmake the write conditional on the rates not having changed since this\nread (stale token → 412, nothing written).\n\n**Requires scope:** `rates:read`","operationId":"get_rates_properties__property__rates_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First date of the window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First date of the window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last date of the window, inclusive.","title":"End Date"},"description":"Last date of the window, inclusive."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"put":{"tags":["Rates"],"summary":"Write calendar rates","description":"Write a custom calendar rate. Responds with the written window's\neffective rates — the same numbers the dashboard calendar now shows. A\nrequested rate below the room type's minimum rate is rejected with a 400\n``validation_error`` naming the offending entry, and nothing is written.\nSend ``overwrite_min_rate: true`` to opt in to storing the minimum\ninstead; the response's read-back then shows the written dates holding\neach entry's ``min_rate`` rather than the requested rate.\n\nWith ``cascade: true`` every room type whose rate derives from this one\nis recomputed by its own adjustment, exactly as the dashboard calendar\ndoes. Each descendant is held to its OWN minimum as it is recomputed: a\ndescendant with a stricter minimum rejects the whole write with the same\n400 ``validation_error`` a below-minimum target does, naming the\noffending room type and date, and nothing is stored — not the\ndescendant's rates and not the target's. ``overwrite_min_rate`` raises\nthe target's rate only; it does not license a descendant below its\nfloor. Read ``rate_derivation`` on the room types to know in advance\nwhich types a cascade will move and what minimum binds each.\n\nOptimistic concurrency: send the ``ETag`` from a rates GET over the\n**same window** as ``If-Match`` to fail the write (412, nothing stored)\nif the window's rates changed since the read. The token is valid only\nfor the exact window of this PUT. The response carries a fresh ``ETag``\nover the written window, so a chain of conditional writes never needs a\nre-read.\n\n**Requires scope:** `rates:write`","operationId":"write_rates_properties__property__rates_put","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"If-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional version precondition: the ETag returned by a GET or PUT on this endpoint over the **same window** as this write (`start_date..end_date`, or `start_date` alone for a single day). When present, the write only proceeds if the window's stored rates still match the token; a stale token returns 412 `precondition_failed` and nothing is written. Quoted, unquoted, and `W/`-prefixed forms are accepted.","title":"If-Match"},"description":"Optional version precondition: the ETag returned by a GET or PUT on this endpoint over the **same window** as this write (`start_date..end_date`, or `start_date` alone for a single day). When present, the write only proceeds if the window's stored rates still match the token; a stale token returns 412 `precondition_failed` and nothing is written. Quoted, unquoted, and `W/`-prefixed forms are accepted."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RateWriteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"412":{"description":"`If-Match` precondition failed — the window's stored rates changed since the token was issued. Nothing was written; re-read to get a fresh `ETag`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Rates"],"summary":"Clear calendar rates","description":"Clear custom calendar rates — the inverse of the rates PUT. Every\ncustom rate stored for the room type on the addressed dates is removed,\nso those dates fall back to the room type's base or derived rate (with\nthe property's modifiers applied on read), exactly as if no custom rate\nhad ever been written. Dates that hold no custom rate are left alone, not\nrejected. The whole clear is one transaction — nothing partial.\n\nWith ``cascade: true`` the custom rates of every room type whose rate\nderives from this one (transitively) are cleared on the same dates too —\nthe counterpart of a cascading write, which stores a row on each\ndescendant. Without it, descendants keep the rows a cascading write gave\nthem and continue to read as custom.\n\nResponds with the cleared window's effective rates — the cleared dates\nnow read back with ``is_custom: false`` and the base/derived number — and\na fresh ``ETag`` over that window. Send the ``ETag`` from a rates read\nover the **same window** as ``If-Match`` to fail the clear (412, nothing\nremoved) if the window's rates changed since the read; the token is valid\nonly for the exact window of this request. Accepts ``Idempotency-Key``\nlike every write on the surface.\n\n**Requires scope:** `rates:write`","operationId":"clear_rates_properties__property__rates_delete","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"If-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional version precondition: the ETag returned by a GET, PUT, or DELETE on this endpoint over the **same window** as this clear (`start_date..end_date`, or `start_date` alone for a single day). When present, the clear only proceeds if the window's stored rates still match the token; a stale token returns 412 `precondition_failed` and nothing is removed. Quoted, unquoted, and `W/`-prefixed forms are accepted.","title":"If-Match"},"description":"Optional version precondition: the ETag returned by a GET, PUT, or DELETE on this endpoint over the **same window** as this clear (`start_date..end_date`, or `start_date` alone for a single day). When present, the clear only proceeds if the window's stored rates still match the token; a stale token returns 412 `precondition_failed` and nothing is removed. Quoted, unquoted, and `W/`-prefixed forms are accepted."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RateClearIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"412":{"description":"`If-Match` precondition failed — the window's stored rates changed since the token was issued. Nothing was written; re-read to get a fresh `ETag`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rates/quote":{"get":{"tags":["Rates"],"summary":"Quote rate-plan prices","description":"The final nightly price of each rate plan per date and room type,\nbroken down by layer, so you never re-implement Vacant's pricing:\n\n- `room_type_rate` — the rates read's `rate` for the date;\n- `plan_rate` — after the plan's own adjustment (a flat plan's own\n  price);\n- `guest_supplements` — the charge for guests beyond the room type's\n  `max_adults` / `max_children`, for the `adults` / `children` you send;\n- `total_rate` — what a direct booking pays per night: `plan_rate` plus\n  the supplement;\n- `channel` — with `channel_id`, the channel's adjustment for the date,\n  the layer it resolved from, and `channel_rate`: the adjustment applied\n  to `plan_rate`. Channels are sent a price per room, so the supplement\n  never reaches them.\n\nThese are the numbers the booking engine charges and the channel push\nsends, computed by the same code. Prices exclude tax and fees.\n\nA window wider than 92 days is served up to 92 days, and\n`meta.next_start_date` carries the date to resume from — the same\npaging as the rates read.\n\nRequires `rates:read`, plus `channels:read` when `channel_id` is sent.\n\n**Requires scope:** `rates:read`","operationId":"get_rate_quote_properties__property__rates_quote_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First date of the window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First date of the window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last date of the window, inclusive.","title":"End Date"},"description":"Last date of the window, inclusive."},{"name":"rate_plan_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Quote one rate plan (`rpl_` ID), active or not. Omit to quote every active plan.","title":"Rate Plan Id"},"description":"Quote one rate plan (`rpl_` ID), active or not. Omit to quote every active plan."},{"name":"channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Also price each plan on this connected channel (`chn_` ID). Requires the `channels:read` scope as well.","title":"Channel Id"},"description":"Also price each plan on this connected channel (`chn_` ID). Requires the `channels:read` scope as well."},{"name":"adults","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Adults per room, for the over-capacity guest supplement. Sending only `children` counts adults as 0; sending neither quotes no supplement.","title":"Adults"},"description":"Adults per room, for the over-capacity guest supplement. Sending only `children` counts adults as 0; sending neither quotes no supplement."},{"name":"children","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"description":"Children per room, for the over-capacity guest supplement. Sending only `adults` counts children as 0.","title":"Children"},"description":"Children per room, for the over-capacity guest supplement. Sending only `adults` counts children as 0."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateQuoteOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rates/history":{"get":{"tags":["Rates"],"summary":"List rate changes","description":"Recorded changes to the property's calendar rates, newest first.\n\nEvery write to a date's custom rate is recorded — through this API, from\nthe dashboard, and by the automated engines — so an integration can\nverify its own writes landed and were not later overwritten, and an owner\ncan audit what moved a price without the dashboard.\n\nOne entry per `(room type, stay date)` cell whose rate actually changed:\nre-writing a date with the rate it already holds records nothing, and a\nwrite spanning a range records one entry per date in it. A cascading\nwrite records the descendants it moved alongside the target, each under\nits own room type.\n\n`source` says what moved the rate:\n\n- `api` — a write through this API. The `actor` is the **key** that made\n  it (`type: api_key`, `name` the key's name), never a user: a key's\n  requests carry no user by design.\n- `user` — a dashboard edit, with the acting user as the `actor`.\n- `agent` — the dashboard's in-app AI assistant, attributed to the user\n  who prompted it.\n- `surge`, `occupancy`, `roompricegenie` — an automated engine, with\n  `actor.type: system` and the engine's name; no user is involved.\n- `unknown` — the change was recorded before this API's writes carried\n  their key. Such a row names no actor at all and may equally have been\n  an API write or a dashboard edit, so it is reported as neither.\n\nThe window is stay dates (up to **92 days**), not the time the changes\nwere made; `since` filters that separately. Page with `limit`/`offset`\nlike every other collection.\n\n**`since` narrows a question; it is not a sync cursor.** `occurred_at`\nis the instant the change was recorded, and it is not monotonic in the\norder changes become visible: every row a single write records carries\none identical instant, and a long-running engine pass stamps its rows\nwith the time its transaction *began*, so a shorter write that started\nlater can be visible first. Advancing `since` past what you have seen\ntherefore skips both the rest of that batch and anything from a\ntransaction that had already started. For incremental sync, subscribe to\nthe `rate.changed` webhook digest — it tells you which windows moved —\nand read this endpoint for the detail.\n\n**Requires scope:** `rates:read`","operationId":"list_rate_history_properties__property__rates_history_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First stay date of the window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First stay date of the window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last stay date of the window, inclusive. At most 92 days from `start_date`; a wider window returns 400.","title":"End Date"},"description":"Last stay date of the window, inclusive. At most 92 days from `start_date`; a wider window returns 400."},{"name":"room_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only changes to these room types (`rmt_` ID; repeat the parameter to pass several). Omitted, every room type of the property is covered. Room types that have since been deleted are accepted, since their past rate changes are still real history. An ID with the wrong prefix returns 400; an unknown room type returns 404.","title":"Room Type Id"},"description":"Only changes to these room types (`rmt_` ID; repeat the parameter to pass several). Omitted, every room type of the property is covered. Room types that have since been deleted are accepted, since their past rate changes are still real history. An ID with the wrong prefix returns 400; an unknown room type returns 404."},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only changes recorded strictly after this instant (ISO-8601; treated as UTC when no offset is given). Filters *when the change was made*, independently of the stay-date window. A narrowing filter — \"what moved this week\" — not a sync cursor; see the endpoint description before polling with it.","title":"Since"},"description":"Only changes recorded strictly after this instant (ISO-8601; treated as UTC when no offset is given). Filters *when the change was made*, independently of the stay-date window. A narrowing filter — \"what moved this week\" — not a sync cursor; see the endpoint description before polling with it."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_RateHistoryEntryOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/rates/batch":{"put":{"tags":["Rates"],"summary":"Write calendar rates in bulk","description":"Write several custom calendar rates in ONE transaction — the grid a\nrevenue system or channel manager pushes, in one request instead of one\nrequest per room type per date band.\n\nEach item in ``items`` is exactly a single rates PUT body, and each is\napplied by the same writer, with the same semantics: ``cascade``\nrecomputes the derived room types, ``overwrite_min_rate`` stores the\nbinding minimum instead of rejecting, and every written cell lands in the\nper-cell rate history attributed to your key.\n\n**All or nothing.** Any item rejected — a rate below its room type's\nbinding minimum, a cascade descendant below its own minimum, a room type\nthat isn't on this property, a ``cascade`` item whose room type has no\nrate configuration to derive from — rejects the whole batch with a 400\n``validation_error`` whose ``fields`` name the offending items by index\n(``items.3.rate``), and NOTHING is written, not even the items ahead of\nit. Every offending item is reported, so one round trip is enough to fix\nthe payload.\n\n**Bounds.** Up to 200 items; each item's window is at most 92 days, and\nthe union of every item's window must itself fit in 92 days — that union\nis the single window this request's ``If-Match`` is checked over and the\nsingle window the response reads back. One batch writes at most 5,000\nrates in total (each item's dates × the room types it writes). Two items\nwriting the same room type on overlapping dates are rejected rather than\nsilently applied in order, counting the derived room types a ``cascade``\nitem also writes. Rates only: inventory caps have their own endpoints.\n\n**One of everything downstream.** One commit, one ``rate.changed``\nwebhook digest over the union window, and one channel-manager /\nrevenue-management sync covering every cell written — not one per item.\n\nAccepts a single ``Idempotency-Key`` for the whole batch, and responds\nwith the union window's effective rates and a fresh ``ETag`` over it, the\nsame shape the single PUT returns.\n\n**Requires scope:** `rates:write`","operationId":"write_rates_batch_properties__property__rates_batch_put","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"If-Match","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional version precondition over the **union** of every item's window — the ETag returned by a GET, PUT, or DELETE on the rates endpoints for exactly that span. One token covers the whole batch; a stale token returns 412 `precondition_failed` and nothing at all is written. Quoted, unquoted, and `W/`-prefixed forms are accepted.","title":"If-Match"},"description":"Optional version precondition over the **union** of every item's window — the ETag returned by a GET, PUT, or DELETE on the rates endpoints for exactly that span. One token covers the whole batch; a stale token returns 412 `precondition_failed` and nothing at all is written. Quoted, unquoted, and `W/`-prefixed forms are accepted."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RateBatchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RatesOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"412":{"description":"`If-Match` precondition failed — the window's stored rates changed since the token was issued. Nothing was written; re-read to get a fresh `ETag`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/channels":{"get":{"tags":["Channels"],"summary":"List connected channels","description":"The sales channels connected to this property, with each channel's\npublic ID for channel-scoped rate and inventory operations.\n\n**Requires scope:** `channels:read`","operationId":"list_channels_properties__property__channels_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_ChannelOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/channels/rate_adjustments":{"get":{"tags":["Channels"],"summary":"Get resolved channel rate adjustments","description":"The resolved adjustment per connected channel for one date, with the\nlayer it resolved from (the room type's daily override when\n``room_type_id`` is given, the channel-wide daily override, channel\nglobal, property-wide fallback) — or a null triple when no layer\nconfigures one.\n\n**Requires scope:** `channels:read`","operationId":"get_channel_rate_adjustments_properties__property__channels_rate_adjustments_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"The date to resolve, a calendar date in the property's timezone.","title":"Date"},"description":"The date to resolve, a calendar date in the property's timezone."},{"name":"room_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resolve for this room type (`rmt_` ID): its own daily override is layered above the channel-wide one. Omitted, the channel-wide view is returned and room-type overrides are not consulted.","title":"Room Type Id"},"description":"Resolve for this room type (`rmt_` ID): its own daily override is layered above the channel-wide one. Omitted, the channel-wide view is returned and room-type overrides are not consulted."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelAdjustmentsOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"put":{"tags":["Channels"],"summary":"Write daily channel rate adjustments","description":"Write daily per-channel adjustments over a date range (``end_date``\nomitted means the single ``start_date``) — one transaction for the whole\nwindow, one Channex sync per channel with the full range. An explicit\nnull ``rate_difference`` clears the channel's daily rows for the window;\nan explicit 0 is a real zero-offset that shadows the lower layers.\n\nAn entry with a ``room_type_id`` prices that room type alone on the\nchannel: its row wins over the channel-wide row for the date, so Kings\nand Queens can carry different OTA markups without touching the\nproperty's base rates. A null with a room type clears only that room\ntype's rows. The echo is the room type's view when every entry names the\nsame room type, else the channel-wide view (``meta.room_type_id`` says\nwhich).\n\nOne-way door: a channel's first daily adjustment ever permanently\nmigrates it from derived rates to channel-specific absolute-rate rate\nplans on Channex. The response's ``notice`` field flags each channel\nthis write migrates; the migration cannot be reverted.\n\n**Requires scope:** `channels:write`","operationId":"write_channel_rate_adjustments_properties__property__channels_rate_adjustments_put","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ChannelAdjustmentsWriteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelAdjustmentsWriteOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Channels"],"summary":"Clear daily channel rate adjustments","description":"Clear the given channels' daily adjustments over a date range\n(``end_date`` omitted means the single ``start_date``) — one transaction\nfor the whole window, then one Channex resync per channel that actually\nhad rows, so the channel falls back to its global adjustment. With\n``room_type_id`` only that room type's rows are cleared; without it the\nchannel-wide row and every room type's row go.\n\n**Requires scope:** `channels:write`","operationId":"delete_channel_rate_adjustments_properties__property__channels_rate_adjustments_delete","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ChannelAdjustmentsDeleteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelAdjustmentsWriteOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/channels/{channel_id}/rate_settings":{"put":{"tags":["Channels"],"summary":"Set a channel's global rate adjustment","description":"Set the channel's global adjustment — applied to every future date\nunless a daily row overrides it. An explicit null ``rate_difference``\nclears it so the property-wide fallback shows through; an explicit 0 is\na configured zero-offset that shadows that fallback. The matching\nderived-rates sync is enqueued by the shared writer. Note: once a\nchannel has daily adjustments (see the daily write's one-way door), its\nglobal adjustment is baked into absolute rates on resync rather than\npushed as a derived option.\n\n**Requires scope:** `channels:write`","operationId":"write_channel_rate_settings_properties__property__channels__channel_id__rate_settings_put","parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ChannelRateSettingsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_ChannelRateSettingsOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/availability":{"get":{"tags":["Inventory"],"summary":"Get availability by date","description":"Per-date, per-room-type counts over the window: `total` (physical rooms\nminus any out of order — closed rooms stay in it, so it is not a sellable\ncount), `available`, `oversold`, `closed`, and `out_of_order` (rooms\ncurrently out of order, excluded from `total` — the physical count is\n`total + out_of_order`). Unassigned bookings consume availability from\ntheir booked room type, matching the dashboard calendar's counts, and\n`TENTATIVE` / `PENDING` holds count as occupancy. `available` never goes\nbelow zero; `oversold` says by how much a night is over-committed. A\nvirtual room type is one unit, counted from the rooms it combines, so its\ncounts are 0 or 1.\n\nA window wider than 31 days is served up to 31 days rather than rejected:\n``meta.next_start_date`` then carries the date to resume from (pass it as\n``start_date``, keeping your original ``end_date``), and\n``meta.next_page_marker`` is non-null alongside it. Both are null once the\nwindow reaches your requested ``end_date`` — so a 60-day board is two\ncalls, not a pre-chunked loop.\n\n**Requires scope:** `inventory:read`","operationId":"get_availability_properties__property__availability_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First date of the window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First date of the window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last date of the window, inclusive.","title":"End Date"},"description":"Last date of the window, inclusive."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AvailabilityOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/room_types/{room_type_id}/inventory_limits":{"get":{"tags":["Inventory"],"summary":"Get a date's per-channel caps","description":"Every active channel's cap state for one room type and date. Channels\nwithout a daily override have null ``stored_limit`` and ``remaining``;\ntheir ``global_limit`` still applies when non-null. ``remaining`` is\npoint-in-time — it shrinks as bookings land.\n\n**Requires scope:** `inventory:read`","operationId":"get_daily_inventory_limits_properties__property__room_types__room_type_id__inventory_limits_get","parameters":[{"name":"room_type_id","in":"path","required":true,"schema":{"type":"string","title":"Room Type Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"The date to read, a calendar date in the property's timezone.","title":"Date"},"description":"The date to read, a calendar date in the property's timezone."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyInventoryLimitsOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"put":{"tags":["Inventory"],"summary":"Set a date's per-channel caps","description":"Set one date's caps. ``remaining`` is how many rooms the channel should\nhave available right now (the stored cap becomes ``sold + remaining``);\n``remaining: null`` removes that channel's cap for the date. Google\nHotels does not support daily caps and is rejected.\n\n**Requires scope:** `inventory:write`","operationId":"set_daily_inventory_limits_properties__property__room_types__room_type_id__inventory_limits_put","parameters":[{"name":"room_type_id","in":"path","required":true,"schema":{"type":"string","title":"Room Type Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1DailyInventoryLimitsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyInventoryLimitsOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Inventory"],"summary":"Remove daily per-channel caps","description":"Remove daily caps for the room type — all of them, or scoped by\n``date`` and/or repeated ``channel_id`` params.\n\n**Requires scope:** `inventory:write`","operationId":"delete_daily_inventory_limits_properties__property__room_types__room_type_id__inventory_limits_delete","parameters":[{"name":"room_type_id","in":"path","required":true,"schema":{"type":"string","title":"Room Type Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Only caps on this date; omit for every date.","title":"Date"},"description":"Only caps on this date; omit for every date."},{"name":"channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only these channels' caps (repeat the parameter to pass several `chn_…` IDs); omit for every channel.","title":"Channel Id"},"description":"Only these channels' caps (repeat the parameter to pass several `chn_…` IDs); omit for every channel."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1DeletedOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/channels/{channel_id}/inventory_limits":{"get":{"tags":["Inventory"],"summary":"Get a channel's standing caps","description":"Every room type's standing cap for one channel (null = uncapped).\n\n**Requires scope:** `inventory:read`","operationId":"get_channel_inventory_limits_properties__property__channels__channel_id__inventory_limits_get","parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInventoryLimitsOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"put":{"tags":["Inventory"],"summary":"Set a channel's standing caps","description":"Set standing caps for one channel. Unlike the daily ``remaining``,\n``limit`` is a raw cap against the physical room count (no sold offset);\n``limit: null`` removes the cap. A daily cap overrides the standing cap\non its date.\n\n**Requires scope:** `inventory:write`","operationId":"set_channel_inventory_limits_properties__property__channels__channel_id__inventory_limits_put","parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RoomTypeLimitsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelInventoryLimitsOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Inventory"],"summary":"Remove a channel's standing caps","description":"Remove the channel's standing caps — all of them, or scoped by\nrepeated ``room_type_id`` params.\n\n**Requires scope:** `inventory:write`","operationId":"delete_channel_inventory_limits_properties__property__channels__channel_id__inventory_limits_delete","parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","title":"Channel Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"room_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only these room types' caps (repeat the parameter to pass several `rmt_…` IDs); omit for every room type.","title":"Room Type Id"},"description":"Only these room types' caps (repeat the parameter to pass several `rmt_…` IDs); omit for every room type."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1DeletedOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/booking_engine/inventory_limits":{"get":{"tags":["Inventory"],"summary":"Get the booking engine's caps","description":"Every room type's direct booking-engine cap (null = uncapped).\n\n**Requires scope:** `inventory:read`","operationId":"get_booking_engine_inventory_limits_properties__property__booking_engine_inventory_limits_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingEngineInventoryLimitsOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"put":{"tags":["Inventory"],"summary":"Set the booking engine's caps","description":"Set the booking engine's own caps. A cap of 0 is a stop-sell — the\nroom type shows as sold out on the booking engine; a positive cap trims\nhow many rooms it displays; ``limit: null`` removes the cap.\n\n**Requires scope:** `inventory:write`","operationId":"set_booking_engine_inventory_limits_properties__property__booking_engine_inventory_limits_put","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1RoomTypeLimitsIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BookingEngineInventoryLimitsOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Inventory"],"summary":"Remove booking-engine caps","description":"Remove booking-engine caps — all of them, or scoped by repeated\n``room_type_id`` params.\n\n**Requires scope:** `inventory:write`","operationId":"delete_booking_engine_inventory_limits_properties__property__booking_engine_inventory_limits_delete","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"room_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only these room types' caps (repeat the parameter to pass several `rmt_…` IDs); omit for every room type.","title":"Room Type Id"},"description":"Only these room types' caps (repeat the parameter to pass several `rmt_…` IDs); omit for every room type."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1DeletedOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/bookings":{"get":{"tags":["Bookings"],"summary":"List bookings","description":"List the property's bookings, newest stays first.\n\nFilters only narrow the result set — the response envelope never\nchanges shape with them. The arrival/departure filters are calendar\ndates in the property's timezone, both bounds inclusive.\n\n**Incremental sync.** To keep a copy of the property's bookings, start\nwith `updated_since` and from then on pass `meta.next_cursor` back as\n`cursor` — for the next page, and again for your next poll. A sync\nrequest returns bookings in the order they changed, `(updated_at, id)`\nascending, paged by cursor rather than by `offset`, and every response\nto one carries a `next_cursor`, even an empty one. A booking that\nchanges again after you have read it comes back later in the feed, so\nkeep the copy keyed on `id` and let the newer one win.\n\nResume from `next_cursor`, never from the last item's `updated_at`: many\nbookings can share one `updated_at`, and a timestamp alone would skip\nthe rest of a tie split across two pages. The feed also trails real\ntime by about a minute — the newest changes are held back until they\nhave settled, so a cursor is never issued past a change that is still\nbeing written. A change made by an operation that takes longer than\nthat can, rarely, land behind a cursor already issued; if your\nintegration cannot tolerate that, start a periodic sync a few minutes\nbehind your stored cursor and de-duplicate on `id`.\n\nEdits to a booking's rooms and nightly rates count as changes to the\nbooking. `booked_since` narrows by when the booking was made but is not\na sync cursor (see its description).\n\n`room_type_id` and `source` narrow by the type each current room slot\nwas booked as and by where the booking came from; both repeat and\ncombine with every other filter.\n\n**Requires scope:** `bookings:read`","operationId":"list_bookings_properties__property__bookings_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only bookings in these statuses (repeat the parameter to pass several). One of `RESERVED`, `CHECKED_IN`, `CHECKED_OUT`, `CANCELLED`, `NO_SHOW`, `TENTATIVE`, `WAITLIST`, `REJECTED`, `PROSPECT`, `PENDING`; an unknown value returns 400.","title":"Status"},"description":"Only bookings in these statuses (repeat the parameter to pass several). One of `RESERVED`, `CHECKED_IN`, `CHECKED_OUT`, `CANCELLED`, `NO_SHOW`, `TENTATIVE`, `WAITLIST`, `REJECTED`, `PROSPECT`, `PENDING`; an unknown value returns 400."},{"name":"arrival_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Earliest arrival, inclusive — a calendar date in the property's timezone.","title":"Arrival From"},"description":"Earliest arrival, inclusive — a calendar date in the property's timezone."},{"name":"arrival_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Latest arrival, inclusive — a calendar date in the property's timezone.","title":"Arrival To"},"description":"Latest arrival, inclusive — a calendar date in the property's timezone."},{"name":"departure_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Earliest departure, inclusive — a calendar date in the property's timezone.","title":"Departure From"},"description":"Earliest departure, inclusive — a calendar date in the property's timezone."},{"name":"departure_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Latest departure, inclusive — a calendar date in the property's timezone.","title":"Departure To"},"description":"Latest departure, inclusive — a calendar date in the property's timezone."},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Start an incremental sync: only bookings modified strictly after this instant (ISO-8601; treated as UTC when no offset is given), in `(updated_at, id)` order, paged by `cursor` — see the endpoint description. Use it once, for the first request; resume every later one with `meta.next_cursor`.","title":"Updated Since"},"description":"Start an incremental sync: only bookings modified strictly after this instant (ISO-8601; treated as UTC when no offset is given), in `(updated_at, id)` order, paged by `cursor` — see the endpoint description. Use it once, for the first request; resume every later one with `meta.next_cursor`."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resume an incremental sync from a previous response's `meta.next_cursor`. Opaque — pass it back unchanged, with the same filters as the request that issued it. Cannot be combined with `offset`; a value this API did not issue returns 400.","title":"Cursor"},"description":"Resume an incremental sync from a previous response's `meta.next_cursor`. Opaque — pass it back unchanged, with the same filters as the request that issued it. Cannot be combined with `offset`; a value this API did not issue returns 400."},{"name":"room_type_id","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only bookings with at least one current room slot booked as this type (`rmt_` ID; repeat the parameter to pass several). Matches the `rooms[]` in the response: a slot keeps the type it was booked as through a room move, so a guest upgraded after booking still lists under the booked type. A suite (virtual room type) booking lists under the suite type and under each component room's type. Room types that have since been deleted are accepted, since their bookings still reference them. An ID with the wrong prefix returns 400; an unknown room type returns 404.","title":"Room Type Id"},"description":"Only bookings with at least one current room slot booked as this type (`rmt_` ID; repeat the parameter to pass several). Matches the `rooms[]` in the response: a slot keeps the type it was booked as through a room move, so a guest upgraded after booking still lists under the booked type. A suite (virtual room type) booking lists under the suite type and under each component room's type. Room types that have since been deleted are accepted, since their bookings still reference them. An ID with the wrong prefix returns 400; an unknown room type returns 404."},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only bookings from these sources (repeat the parameter to pass several). One of `pms` (front desk), `be` (booking engine), `ota` (channel), `group`, `connect`; an unknown value returns 400. Every booking carries one of the five, so the five together account for the whole unfiltered list.","title":"Source"},"description":"Only bookings from these sources (repeat the parameter to pass several). One of `pms` (front desk), `be` (booking engine), `ota` (channel), `group`, `connect`; an unknown value returns 400. Every booking carries one of the five, so the five together account for the whole unfiltered list."},{"name":"booked_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only bookings whose `booked_at` is strictly after this instant (ISO-8601; treated as UTC when no offset is given). A data filter for pickup-style questions, not a sync cursor: `booked_at` is nullable and may be back-dated by channel and importer sources, so bookings with no value never match and a watermark on it would miss late-arriving ones. Poll with `updated_since` for incremental sync. Does not change the sort.","title":"Booked Since"},"description":"Only bookings whose `booked_at` is strictly after this instant (ISO-8601; treated as UTC when no offset is given). A data filter for pickup-style questions, not a sync cursor: `booked_at` is nullable and may be back-dated by channel and importer sources, so bookings with no value never match and a watermark on it would miss late-arriving ones. Poll with `updated_since` for incremental sync. Does not change the sort."},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1SyncPage_BookingOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"post":{"tags":["Bookings"],"summary":"Create a booking","description":"Create a reservation.\n\nThe 201 response is exactly what a subsequent GET of the booking\nreturns — rooms, guest references, and folio summary included. Send an\n`Idempotency-Key` so a retried request returns the original booking\ninstead of creating a second one.\n\nEvery identifier in the body is resolved against your property before\nanything is quoted: one with the wrong prefix returns 400, and one that\nis well-formed but names no room type, rate plan, room or guest of yours\nreturns 404.\n\n**Requires scope:** `bookings:write`","operationId":"create_booking_properties__property__bookings_post","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateBookingIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_BookingDetailOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/bookings/{booking_id}/cancel":{"post":{"tags":["Bookings"],"summary":"Cancel a booking","description":"Cancel a reservation. Cancelling an already-cancelled booking returns\n409 (conflict) — treat that as success when retrying.\n\n**Requires scope:** `bookings:write`","operationId":"cancel_booking_properties__property__bookings__booking_id__cancel_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_BookingDetailOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/bookings/{booking_id}":{"put":{"tags":["Bookings"],"summary":"Change a booking's stay dates","description":"Change the stay dates. Availability conflicts return 409; restrictions\napply as for a non-admin dashboard user.\n\n**Requires scope:** `bookings:write`","operationId":"update_booking_properties__property__bookings__booking_id__put","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1UpdateBookingIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_BookingDetailOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"get":{"tags":["Bookings"],"summary":"Get a booking","description":"One booking with its rooms, guest references, and folio summary.\n\n**Requires scope:** `bookings:read`","operationId":"get_booking_properties__property__bookings__booking_id__get","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_BookingDetailOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/bookings/{booking_id}/messages":{"post":{"tags":["Bookings"],"summary":"Send the guest a message now","description":"Send the booking's primary guest a message immediately: by text or\nemail to the contact details on the guest's profile, and/or through the\nbooking channel's messenger (`ota`) for an Airbnb, Booking.com or\nExpedia reservation.\n\nThe message goes through the same engine as the property's scheduled\nmessages: the same `{{variables}}` render (see the `message` field for\nthe list), it lands in the guest's conversation in the dashboard inbox,\nand a channel that cannot reach the guest — texting switched off for the\nproperty, no sender number, the guest opted out of texts, an OTA relay\nemail address, a reservation whose booking channel can't be messaged —\nis reported in `skipped` while the other channels still send. If every\nrequested channel is skipped nothing is sent and the response is\n`409 conflict` naming each reason. A provider refusing the send is\n`502 send_failed`.\n\nSend an `Idempotency-Key`: a retried request replays the original result\ninstead of messaging the guest twice.\n\n**Requires scope:** `bookings:write`","operationId":"send_booking_message_properties__property__bookings__booking_id__messages_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1SendBookingMessageIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1BookingMessageOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"502":{"description":"The messaging provider could not send on a channel — `code: send_failed`, with the provider's reason in `message`. Channels earlier in the request that already sent stay sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/products":{"get":{"tags":["Products"],"summary":"List products","description":"The property's products, oldest first. Deleted products are left out.\n\n**Requires scope:** `properties:read`","operationId":"list_products_properties__property__products_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_ProductOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"post":{"tags":["Products"],"summary":"Create a product","description":"Create a product — the same code path as a dashboard create. Names are\nunique among the property's live products; a duplicate is `409\nconflict`. Taxes are configured in the dashboard.\n\n**Requires scope:** `properties:write`","operationId":"create_product_properties__property__products_post","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateProductIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_ProductOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/products/{product_id}":{"get":{"tags":["Products"],"summary":"Get a product","description":"One product. A deleted product is `404 not_found`.\n\n**Requires scope:** `properties:read`","operationId":"get_product_properties__property__products__product_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_ProductOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"put":{"tags":["Products"],"summary":"Update a product","description":"PUT with patch semantics: a field absent from the payload keeps its\ncurrent value; an explicit null clears `code`, `description` or `price`.\nChanging `price` doesn't reprice products already on bookings.\n\n**Requires scope:** `properties:write`","operationId":"update_product_properties__property__products__product_id__put","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1UpdateProductIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_ProductOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Products"],"summary":"Delete a product","description":"Soft-delete a product, as the dashboard does: it can no longer be\nadded to bookings, and bookings that already carry it keep their lines\n(their `product_id` still names it).\n\n**Requires scope:** `properties:write`","operationId":"delete_product_properties__property__products__product_id__delete","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"string","title":"Product Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1DeletedOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/bookings/{booking_id}/products":{"get":{"tags":["Products"],"summary":"List a booking's products","description":"The products charged on the booking, oldest first.\n\n**Requires scope:** `bookings:read`","operationId":"list_booking_products_properties__property__bookings__booking_id__products_get","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_BookingProductOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"post":{"tags":["Products"],"summary":"Add a product to a booking","description":"Charge a product on the booking — the same code path as the\ndashboard. The line goes on the folio with the product's taxes as their\nown lines, so the booking's `folio.total` moves by the line plus tax.\n\nA product with `is_note_required` needs `notes`, and a product with no\n`price` needs a `unit_price`; otherwise the response is `400\nbad_request`. Send an `Idempotency-Key`: a retried request replays the\noriginal result instead of charging the guest twice.\n\n**Requires scope:** `bookings:write`","operationId":"add_booking_product_properties__property__bookings__booking_id__products_post","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1AddBookingProductIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_BookingProductOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/bookings/{booking_id}/products/{booking_product_id}":{"put":{"tags":["Products"],"summary":"Update a booking's product","description":"Change the line's quantity, unit price or notes; omitted fields keep\ntheir value. The folio line and its taxes are repriced to match.\n\n**Requires scope:** `bookings:write`","operationId":"update_booking_product_properties__property__bookings__booking_id__products__booking_product_id__put","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"booking_product_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Product Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1UpdateBookingProductIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_BookingProductOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Products"],"summary":"Remove a product from a booking","description":"Remove the line from the booking. Its folio lines, the product and its\ntaxes, are voided.\n\n**Requires scope:** `bookings:write`","operationId":"remove_booking_product_properties__property__bookings__booking_id__products__booking_product_id__delete","parameters":[{"name":"booking_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Id"}},{"name":"booking_product_id","in":"path","required":true,"schema":{"type":"string","title":"Booking Product Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1DeletedOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/guests":{"get":{"tags":["Guests"],"summary":"List guests","description":"The property's guest profiles — master profiles only; merged\nduplicates are folded into their master.\n\n**Requires scope:** `guests:read`","operationId":"list_guests_properties__property__guests_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_GuestOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"post":{"tags":["Guests"],"summary":"Create a guest","description":"Create a guest profile. A profile that duplicates an existing guest\n(matching contact details) returns 409 rather than creating a second\nprofile.\n\n**Requires scope:** `guests:write`","operationId":"create_guest_properties__property__guests_post","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CreateGuestIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_GuestOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/guests/{guest_id}":{"get":{"tags":["Guests"],"summary":"Get a guest","description":"One guest profile. A merged duplicate's old ID resolves to its\nmaster, so guest IDs referenced by bookings keep working across\nmerges.\n\n**Requires scope:** `guests:read`","operationId":"get_guest_properties__property__guests__guest_id__get","parameters":[{"name":"guest_id","in":"path","required":true,"schema":{"type":"string","title":"Guest Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_GuestOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"put":{"tags":["Guests"],"summary":"Update a guest","description":"PUT with patch semantics: a field absent from the payload keeps its\ncurrent value; an explicit null clears it. A merged duplicate's old ID\nupdates the master profile.\n\n**Requires scope:** `guests:write`","operationId":"update_guest_properties__property__guests__guest_id__put","parameters":[{"name":"guest_id","in":"path","required":true,"schema":{"type":"string","title":"Guest Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1UpdateGuestIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_GuestOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/reports/daily":{"get":{"tags":["Reports"],"summary":"Daily activity report","description":"Per-date performance over the window — room revenue, taxes, ADR,\nRevPAR, rooms sold, occupancy, new and cancelled reservations,\ncommissions, refunds, and payments by method — plus a summary over the\nwhole window.\n\n**Requires scope:** `reports:read`","operationId":"report_daily_properties__property__reports_daily_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First date of the report window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First date of the report window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last date of the report window, inclusive.","title":"End Date"},"description":"Last date of the report window, inclusive."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportDailyOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/reports/occupancy":{"get":{"tags":["Reports"],"summary":"Occupancy report","description":"Whole-window occupancy totals: rooms sold against available and\nclosed rooms, with ADR and RevPAR.\n\n**Requires scope:** `reports:read`","operationId":"report_occupancy_properties__property__reports_occupancy_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First date of the report window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First date of the report window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last date of the report window, inclusive.","title":"End Date"},"description":"Last date of the report window, inclusive."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportOccupancyOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/reports/revenue":{"get":{"tags":["Reports"],"summary":"Revenue report","description":"Revenue over the window broken down by category, with the total, in\nthe property's currency.\n\n**Requires scope:** `reports:read`","operationId":"report_revenue_properties__property__reports_revenue_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First date of the report window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First date of the report window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last date of the report window, inclusive.","title":"End Date"},"description":"Last date of the report window, inclusive."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportRevenueOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/reports/sources":{"get":{"tags":["Reports"],"summary":"Booking sources report","description":"Rooms sold, revenue, and commission cost broken down by the source\neach booking came from.\n\n**Requires scope:** `reports:read`","operationId":"report_sources_properties__property__reports_sources_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First date of the report window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First date of the report window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last date of the report window, inclusive.","title":"End Date"},"description":"Last date of the report window, inclusive."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportSourcesOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/reports/pickup":{"get":{"tags":["Reports"],"summary":"Pickup report","description":"The change in room-nights and room revenue for each stay date in the\nwindow, between `as_of` and now, with a per-room-type breakdown.\n\n`start_date` / `end_date` bound the **stay** window, not the window in\nwhich bookings were made — a booking made yesterday for next Christmas is\none room of Christmas Eve pickup, and is not the same thing as the daily\nreport's `new_reservations`, which is keyed by the date the booking was\nmade.\n\nWhen `meta.exact` is true — `as_of` is on or after `meta.exact_from` —\nevery change committed since `as_of` is attributed to the stay date and\nroom type it affected: a cancellation, a reinstatement, a move of dates or\nroom type, an extension or shortened stay, a nightly price change, and a\nhold being confirmed. Changes to the property's own configuration (its\ntaxes, or how a suite is made up) are not pickup; they move the as-of\nposition with the current one.\n\nWhen `meta.exact` is false, the as-of position is reconstructed from\nbookings **as they currently stand**, so a booking that changed its stay\ndates or room type since then shows no movement on either the vacated or\nthe newly-occupied night or type, and repricing, extensions and\nshortened stays are not visible. See the reports section of the API\nreference.\n\nAmounts are in `meta.currency`.\n\n**Requires scope:** `reports:read`","operationId":"report_pickup_properties__property__reports_pickup_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"as_of","in":"query","required":true,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"}],"description":"The comparison point. Either a calendar date in the property's timezone (`2026-11-24`), meaning the book as it stood at the end of that day, or an ISO-8601 timestamp with an offset (`2026-11-24T09:00:00Z`), meaning the book at that instant — for example exactly 24 hours ago. A timestamp without an offset is rejected. Must not be in the future or after `end_date`.","examples":["2026-11-24","2026-11-24T09:00:00Z"],"title":"As Of"},"description":"The comparison point. Either a calendar date in the property's timezone (`2026-11-24`), meaning the book as it stood at the end of that day, or an ISO-8601 timestamp with an offset (`2026-11-24T09:00:00Z`), meaning the book at that instant — for example exactly 24 hours ago. A timestamp without an offset is rejected. Must not be in the future or after `end_date`."},{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First date of the report window, inclusive — a calendar date in the property's timezone.","title":"Start Date"},"description":"First date of the report window, inclusive — a calendar date in the property's timezone."},{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last date of the report window, inclusive.","title":"End Date"},"description":"Last date of the report window, inclusive."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportPickupOut"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/webhook_endpoints":{"get":{"tags":["Webhooks"],"summary":"List webhook endpoints","description":"The property's registered webhook endpoints. The signing secret is\nnever included — it appears only in the create response.\n\n**Requires scope:** `webhooks:manage`","operationId":"list_webhook_endpoints_properties__property__webhook_endpoints_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_V1WebhookEndpointOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"post":{"tags":["Webhooks"],"summary":"Create a webhook endpoint","description":"Register an HTTPS endpoint to receive event deliveries.\n\nThe response is the only place this `secret` ever appears — store it\nnow. To replace it later, rotate the secret rather than replacing the\nendpoint.\n\n**Requires scope:** `webhooks:manage`","operationId":"create_webhook_endpoint_properties__property__webhook_endpoints_post","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhookEndpointParams"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1CreatedWebhookEndpointOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/webhook_endpoints/{endpoint_id}":{"put":{"tags":["Webhooks"],"summary":"Update a webhook endpoint","description":"Change the endpoint's URL, subscribed events, or enabled state. The\nsigning secret is not part of this shape — use `rotate_secret`.\n\n**Requires scope:** `webhooks:manage`","operationId":"update_webhook_endpoint_properties__property__webhook_endpoints__endpoint_id__put","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhookEndpointParams"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1WebhookEndpointOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}},"delete":{"tags":["Webhooks"],"summary":"Delete a webhook endpoint","description":"Stop all deliveries to the endpoint and remove it.\n\n**Requires scope:** `webhooks:manage`","operationId":"delete_webhook_endpoint_properties__property__webhook_endpoints__endpoint_id__delete","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1DeletedOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/webhook_endpoints/{endpoint_id}/test":{"post":{"tags":["Webhooks"],"summary":"Send a test event to a webhook endpoint","description":"Deliver a synthetic `ping` event to this endpoint, and only this one.\n\nThe send happens while this request is open, over the same path a real\ndelivery takes — the same signature header, the same 10-second timeout,\nno redirects followed — so the returned delivery already carries the\noutcome (`status`, `last_response_status`). It is also an ordinary row in\nthe endpoint's delivery history, and its `event_id` is a real event:\nreadable at once through `GET .../events/{id}`, and appearing in the\nevents *list* (as `type=ping`) once it is past that list's one-minute\nlag.\n\n**One attempt only.** Unlike a real delivery, a failed test is not\nretried — fix the receiver and test again. A test never disables the\nendpoint, and works on a disabled one, so you can verify a receiver\nbefore re-enabling it.\n\n**Requires scope:** `webhooks:manage`","operationId":"test_webhook_endpoint_properties__property__webhook_endpoints__endpoint_id__test_post","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1WebhookDeliveryOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/webhook_endpoints/{endpoint_id}/rotate_secret":{"post":{"tags":["Webhooks"],"summary":"Rotate a webhook endpoint's signing secret","description":"Mint a new signing secret for this endpoint, without downtime.\n\nThe response is the only place the new `secret` appears — store it now.\nThe outgoing secret keeps verifying until\n`previous_secret_expires_at`, and during that window every delivery is\nsigned with both: the `Vacant-Signature` header carries two `v1` values\nand a payload verifies against either secret. **Your verifier must\naccept a match against any `v1` value in the header before you\nrotate** — one that reads only a single `v1` will reject deliveries for\nthe length of the window.\n\nRotating again while a previous secret is still valid is a `409`: two\nvalid secrets is the whole budget, and overwriting the outgoing one\nwould invalidate, with no notice, a secret your receiver may be\nmid-deploy on.\n\n**Requires scope:** `webhooks:manage`","operationId":"rotate_webhook_endpoint_secret_properties__property__webhook_endpoints__endpoint_id__rotate_secret_post","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1RotatedWebhookSecretOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/webhook_endpoints/{endpoint_id}/deliveries":{"get":{"tags":["Webhooks"],"summary":"List an endpoint's deliveries","description":"The endpoint's delivery history — event, attempt outcome, and\nresponse status — for debugging a receiver.\n\n**Requires scope:** `webhooks:manage`","operationId":"list_webhook_deliveries_properties__property__webhook_endpoints__endpoint_id__deliveries_get","parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Endpoint Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Number of items to skip before this page.","default":0,"title":"Offset"},"description":"Number of items to skip before this page."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Page size, 1–100.","default":10,"title":"Limit"},"description":"Page size, 1–100."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Page_V1WebhookDeliveryOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/deliveries/{delivery_id}/redeliver":{"post":{"tags":["Webhooks"],"summary":"Redeliver a webhook delivery","description":"Queue one delivery to be sent again by the dispatcher — nothing is\nsent synchronously; watch the delivery's status for the outcome.\n\n**Requires scope:** `webhooks:manage`","operationId":"redeliver_webhook_delivery_properties__property__deliveries__delivery_id__redeliver_post","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"string","title":"Delivery Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1WebhookDeliveryOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/events":{"get":{"tags":["Events"],"summary":"List events","description":"List the property's events, oldest first, in the delivery envelope.\n\nThis is the backfill path for a receiver that missed deliveries: each\nitem is byte-for-byte the envelope a webhook POST carries (`id`, `type`,\n`created`, `data`), so a replay can go through the same handler your\nlive deliveries do, deduped on `id`.\n\nPagination is by **cursor**, not offset: pass `meta.next_cursor` back as\n`cursor` until it comes back `null`. Events are append-only, so a\ncursored walk never re-reads or skips a row when new events arrive\nmid-walk.\n\nThe listing trails real time by about a minute — the newest activity is\nwithheld until it has settled, so a cursor is never issued over events\nwhose neighbours are still being committed. Webhook delivery is the\nreal-time path; this is the catch-up one.\n\nEvents are retained for **30 days**; older ones are pruned and a window\nthat reaches further back simply starts where retention does.\n\nNote that `availability.changed` and `rate.changed` are coalesced\ndigests — one event per debounce window covering the union of the dates\ntouched in it, not one per changed value — so listing them lists\nsignals to re-fetch, not individual changes.\n\n**Requires scope:** `events:read` or `webhooks:manage`","operationId":"list_events_properties__property__events_get","parameters":[{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"Only events of these types (repeat the parameter to pass several). Accepts exact names like `booking.created` and the same family wildcards a subscription takes, like `booking.*`; an unrecognized value returns 400.","title":"Type"},"description":"Only events of these types (repeat the parameter to pass several). Accepts exact names like `booking.created` and the same family wildcards a subscription takes, like `booking.*`; an unrecognized value returns 400."},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only events that occurred at or after this instant, inclusive (ISO-8601; treated as UTC when no offset is given).","title":"Since"},"description":"Only events that occurred at or after this instant, inclusive (ISO-8601; treated as UTC when no offset is given)."},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Only events that occurred strictly before this instant (ISO-8601; treated as UTC when no offset is given). Exclusive, so consecutive windows tile without overlapping.","title":"Until"},"description":"Only events that occurred strictly before this instant (ISO-8601; treated as UTC when no offset is given). Exclusive, so consecutive windows tile without overlapping."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Resume point from a previous page's `meta.next_cursor`. Opaque — pass it back unchanged; a value this API did not issue returns 400.","title":"Cursor"},"description":"Resume point from a previous page's `meta.next_cursor`. Opaque — pass it back unchanged; a value this API did not issue returns 400."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":250,"minimum":1,"description":"Page size, 1–250 (default 100).","default":100,"title":"Limit"},"description":"Page size, 1–250 (default 100)."},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1CursorPage_V1EventOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/events/{event_id}":{"get":{"tags":["Events"],"summary":"Get an event","description":"One event, in the same envelope its deliveries carried — for\ninspecting exactly what a receiver was sent.\n\n**Requires scope:** `events:read` or `webhooks:manage`","operationId":"get_event_properties__property__events__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1EventOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}},"/properties/{property}/events/{event_id}/redeliver":{"post":{"tags":["Events"],"summary":"Redeliver an event","description":"Queue an event for delivery to every endpoint that subscribes to its\ntype and is enabled right now.\n\nUse this to replay an event a receiver never got — including one that\nreached no endpoint at all, because the subscription was added after the\nevent happened, which the per-delivery redeliver cannot help with.\nEndpoints that already have a delivery row for the event are re-queued\nrather than duplicated, so calling this twice sends at most one extra\ncopy per endpoint.\n\nDisabled endpoints are skipped: re-enable first (which also releases\nwhatever was held for it), then replay. Nothing is sent synchronously —\nwatch each delivery's status for the outcome.\n\n**Requires scope:** `webhooks:manage`","operationId":"redeliver_one_event_properties__property__events__event_id__redeliver_post","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}},{"name":"property","in":"path","required":true,"schema":{"type":"string","title":"Property"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency-Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Item_V1EventRedeliveryOut_"}}}},"400":{"description":"Malformed request — `code: validation_error` with the offending fields listed in `fields`. (Request validation returns 400 on this API, never 422.)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"401":{"description":"Missing, malformed, or revoked API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"403":{"description":"The key is valid but lacks the required scope — `code: missing_scope`, with the missing scope named in `message`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"404":{"description":"No such resource on this property. Another property's resource reads as nonexistent, never as forbidden.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"429":{"description":"Rate limit exceeded — `code: rate_limited`. Every response carries `X-RateLimit-Limit` / `-Remaining` / `-Reset`; retry after the reset.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"500":{"description":"Unexpected server fault — `code: server_error`. The envelope's `request_id` identifies the failure to support.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}},"409":{"description":"Conflict — the write cannot apply in the current state (e.g. cancelling an already-cancelled booking, or an availability conflict on a date change), or the `Idempotency-Key` was reused with a different request (`idempotency_key_reuse`) / is still being processed (`idempotency_in_flight`, with `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1ErrorResponse"}}}}}}}},"components":{"schemas":{"AvailabilityDay":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The hotel night, a calendar date in the property's timezone."},"room_types":{"items":{"$ref":"#/components/schemas/RoomTypeAvailability"},"type":"array","title":"Room Types","description":"One entry per room type."}},"type":"object","required":["date","room_types"],"title":"AvailabilityDay","description":"Every room type's counts for one date."},"AvailabilityOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/AvailabilityDay"},"type":"array","title":"Data","description":"One entry per date."},"meta":{"$ref":"#/components/schemas/WindowPageMeta","description":"Where to resume when the request outran the window cap."}},"type":"object","required":["data"],"title":"AvailabilityOut","description":"Per-date, per-room-type availability counts over a window."},"BookingDetailOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public booking ID, prefixed `bkg_`. Stable.","examples":["bkg_7t3v5x"]},"booking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Number","description":"Human-facing reservation number, as shown to staff and guests."},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Lifecycle state: `RESERVED`, `CHECKED_IN`, `CHECKED_OUT`, `CANCELLED`, `NO_SHOW`, `TENTATIVE`, `WAITLIST`, `REJECTED`, `PROSPECT`, or `PENDING`.","examples":["RESERVED"]},"stay_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stay Status","description":"Where the stay stands across the booking's rooms. The same values as `status`, plus `PARTIALLY_CHECKED_IN` (some rooms checked in, others still to arrive; `status` stays `RESERVED`) and `PARTIALLY_CHECKED_OUT` (every room arrived, some already left; `status` stays `CHECKED_IN`). Computed on read, never stored, and not filterable.","examples":["PARTIALLY_CHECKED_IN"]},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date","description":"Stay start — the check-in night's property-local midnight, as a UTC timestamp."},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date","description":"Stay end — the check-out day's property-local midnight, as a UTC timestamp."},"nights":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nights","description":"Length of stay in hotel nights, derived from the stay dates. Null only when a stay date is missing. A same-day booking is `0` nights.","examples":[2]},"adults_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adults Count","description":"Total adults across the booking."},"children_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Children Count","description":"Total children across the booking."},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"ISO 4217 currency of the booking's amounts."},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"Where the booking came from: `pms` (front desk), `be` (booking engine), `ota` (channel), `group`, or `connect`. The same closed set the `source` list filter accepts."},"ota_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ota Name","description":"The OTA's name for channel bookings; null otherwise."},"booked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Booked At","description":"When the booking was made (UTC)."},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At","description":"When the booking was cancelled or marked a no-show (UTC). Null otherwise, and cleared when the booking is reinstated."},"self_checkin_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Self Checkin Completed At","description":"When the guest finished online self check-in (UTC). Null until then. This is the guest completing the pre-arrival steps, not the check-in itself: see `checked_in_at` for that."},"checked_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked In At","description":"When the guest checked in (UTC), if they have."},"checked_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked Out At","description":"When the guest checked out (UTC), if they have."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"When the record was created (UTC)."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"When the record last changed (UTC) — the value the `updated_since` list filter compares against. Edits to the booking's rooms and nightly rates move it too. To keep a copy in sync, resume from `meta.next_cursor`, not from this value."},"guest_ids":{"items":{"type":"string"},"type":"array","title":"Guest Ids","description":"Public `gst_` IDs of the booking's guests. Details require the `guests:read` scope via the guests endpoints.","default":[]},"rooms":{"items":{"$ref":"#/components/schemas/BookingRoomOut"},"type":"array","title":"Rooms","description":"The booking's staying slots, one per room.","default":[]},"folio":{"$ref":"#/components/schemas/FolioSummaryOut","description":"Money summary of the folio."},"document_ids":{"items":{"type":"string"},"type":"array","title":"Document Ids","description":"Public `doc_` IDs of documents attached to the booking.","default":[]}},"type":"object","required":["id","folio"],"title":"BookingDetailOut","description":"A booking with its folio summary and document references. Its `rooms`\nadditionally carry `nightly_rates` and `total`, which the list endpoint\nleaves null."},"BookingEngineInventoryLimitsOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RoomTypeLimitOut"},"type":"array","title":"Data","description":"One entry per room type."}},"type":"object","required":["data"],"title":"BookingEngineInventoryLimitsOut","description":"Every room type's direct booking-engine cap. A cap of 0 is a\nstop-sell — the room type shows as sold out on the booking engine; a\npositive cap trims how many rooms the booking engine displays."},"BookingOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public booking ID, prefixed `bkg_`. Stable.","examples":["bkg_7t3v5x"]},"booking_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Booking Number","description":"Human-facing reservation number, as shown to staff and guests."},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Lifecycle state: `RESERVED`, `CHECKED_IN`, `CHECKED_OUT`, `CANCELLED`, `NO_SHOW`, `TENTATIVE`, `WAITLIST`, `REJECTED`, `PROSPECT`, or `PENDING`.","examples":["RESERVED"]},"stay_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stay Status","description":"Where the stay stands across the booking's rooms. The same values as `status`, plus `PARTIALLY_CHECKED_IN` (some rooms checked in, others still to arrive; `status` stays `RESERVED`) and `PARTIALLY_CHECKED_OUT` (every room arrived, some already left; `status` stays `CHECKED_IN`). Computed on read, never stored, and not filterable.","examples":["PARTIALLY_CHECKED_IN"]},"start_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start Date","description":"Stay start — the check-in night's property-local midnight, as a UTC timestamp."},"end_date":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End Date","description":"Stay end — the check-out day's property-local midnight, as a UTC timestamp."},"nights":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Nights","description":"Length of stay in hotel nights, derived from the stay dates. Null only when a stay date is missing. A same-day booking is `0` nights.","examples":[2]},"adults_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adults Count","description":"Total adults across the booking."},"children_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Children Count","description":"Total children across the booking."},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"ISO 4217 currency of the booking's amounts."},"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"Where the booking came from: `pms` (front desk), `be` (booking engine), `ota` (channel), `group`, or `connect`. The same closed set the `source` list filter accepts."},"ota_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ota Name","description":"The OTA's name for channel bookings; null otherwise."},"booked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Booked At","description":"When the booking was made (UTC)."},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At","description":"When the booking was cancelled or marked a no-show (UTC). Null otherwise, and cleared when the booking is reinstated."},"self_checkin_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Self Checkin Completed At","description":"When the guest finished online self check-in (UTC). Null until then. This is the guest completing the pre-arrival steps, not the check-in itself: see `checked_in_at` for that."},"checked_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked In At","description":"When the guest checked in (UTC), if they have."},"checked_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked Out At","description":"When the guest checked out (UTC), if they have."},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At","description":"When the record was created (UTC)."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"When the record last changed (UTC) — the value the `updated_since` list filter compares against. Edits to the booking's rooms and nightly rates move it too. To keep a copy in sync, resume from `meta.next_cursor`, not from this value."},"guest_ids":{"items":{"type":"string"},"type":"array","title":"Guest Ids","description":"Public `gst_` IDs of the booking's guests. Details require the `guests:read` scope via the guests endpoints.","default":[]},"rooms":{"items":{"$ref":"#/components/schemas/BookingRoomOut"},"type":"array","title":"Rooms","description":"The booking's staying slots, one per room.","default":[]}},"type":"object","required":["id"],"title":"BookingOut","description":"A booking as integrations see it. Guests appear as public-ID\nreferences only — details live behind the guests endpoints and their\nexplicit PII scope — so this shape is identical for every key."},"BookingProductOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public booking-product ID, prefixed `bpr_`. Stable.","examples":["bpr_4Rt8wQ2z"]},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id","description":"Public `prd_` ID of the product this line charges. It stays set after the product is deleted.","examples":["prd_x7Km2p9Q"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The product's name.","examples":["Parking"]},"quantity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Quantity","description":"Units charged. Null on an older line that never recorded a quantity; null is never 0.","examples":[2]},"unit_price":{"type":"number","title":"Unit Price","description":"Price per unit, before tax, in the booking's currency.","examples":[25.0]},"total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total","description":"The line's amount before tax: `unit_price` × `quantity`, and × the stay's nights or the room's guests when the product is charged per night or per person. Null on an older line with no `quantity`.","examples":[50.0]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Notes left on the line."},"status":{"$ref":"#/components/schemas/BookingProductStatus","description":"`confirmed` for a charged product. A guest's request is `requested` until staff approve (`approved`) or decline (`declined`) it; `pending_payment` is a guest purchase whose card charge hasn't settled; `cancelled` is no longer charged."},"sold_via":{"$ref":"#/components/schemas/SoldVia","description":"Where the product was sold: `booking_engine`, `self_checkin`, `upsell_link`, `staff` (including this API), or `channel` for a line an OTA sent with the booking."},"added_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Added At","description":"UTC time the product was added to the booking."}},"type":"object","required":["id","product_id","name","quantity","unit_price","total","status","sold_via"],"title":"BookingProductOut","description":"A product charged on a booking. Each one is a line on the booking's\nfolio, with the product's taxes as their own lines; the booking's\n`folio.total` includes both."},"BookingProductStatus":{"type":"string","enum":["pending_payment","requested","approved","declined","confirmed","cancelled"],"title":"BookingProductStatus","description":"Where a product on a booking is in its life. `pending_payment` covers\nthe gap between reserving a unit and Stripe settling a guest's charge."},"BookingRoomNightOut":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The hotel night, as a property-local calendar date — the night beginning on this date."},"amount":{"type":"number","title":"Amount","description":"Accommodation charged for this night on this room, in the booking's `currency`, as stored. Fees and other folio charges are never included; whether tax is, `is_tax_inclusive` says."},"is_tax_inclusive":{"type":"boolean","title":"Is Tax Inclusive","description":"Whether `amount` includes tax. Recorded per night when the night is priced — from the rate plan it was priced on when that plan says so, otherwise from the property's tax setting — because nights on one room can be priced on different plans. When true, the room revenue the reports show for this night is lower by the tax backed out of `amount`."}},"type":"object","required":["date","amount","is_tax_inclusive"],"title":"BookingRoomNightOut","description":"One stored night of accommodation on a booking room."},"BookingRoomOut":{"properties":{"room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Id","description":"Public ID of the assigned physical room; null until one is assigned."},"room_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type Id","description":"Public ID of the booked room type."},"assigned_room_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned Room Type Id","description":"Public `rmt_` ID of the type of the physical room assigned in `room_id`; null until a room is assigned. Differs from `room_type_id` when the guest was upgraded or moved into a room of another type — `room_type_id` keeps the type that was booked.","examples":["rmt_5q8w1z"]},"rate_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rate Plan Id","description":"Public `rpl_` ID of the rate plan this slot was booked on; null when the slot carries no rate plan (rate plans are optional, and most historical bookings predate them)."},"adults":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adults","description":"Adults staying in this room."},"children":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Children","description":"Children staying in this room."},"stay_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stay Status","description":"This room's own stay: `RESERVED`, `CHECKED_IN`, `CHECKED_OUT`, `CANCELLED` or `NO_SHOW`. Rooms of one booking can differ (one checked in while another hasn't arrived); the booking's `status` summarizes them. A cancelled or no-show room of a live booking is not listed in `rooms`.","examples":["CHECKED_IN"]},"checked_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked In At","description":"UTC instant this room checked in; null until it has."},"checked_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Checked Out At","description":"UTC instant this room checked out; null until it has."},"cancelled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Cancelled At","description":"UTC instant this room was cancelled or marked as a no-show; null unless it is one."},"nightly_rates":{"anyOf":[{"items":{"$ref":"#/components/schemas/BookingRoomNightOut"},"type":"array"},{"type":"null"}],"title":"Nightly Rates","description":"Accommodation per hotel night on this slot, oldest night first, in the booking's `currency`. **Detail endpoint only** — the list endpoint serializes many bookings and does not load the nightly rows, so it returns `null` here. `null` therefore means 'this response does not carry them'; `[]` means the booking stores no nightly rows attributable to this slot. Never a derived or averaged figure."},"total":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total","description":"Sum of `nightly_rates` for this slot, in the booking's `currency`, or null when there is nothing to sum — including on the list endpoint, which does not carry the nightly rows. Never `0` for an unknown total, so 'nothing recorded' stays distinguishable from a genuinely free stay. Accommodation only: fees and other folio charges are excluded, and tax is included on the nights whose `is_tax_inclusive` is true, so this does not reconcile to the booking's `folio.total`. On a suite booking the whole amount sits on the suite slot and the component rooms are recorded at `0` — sum across `rooms` rather than reading a component room's `0` as a free night."}},"type":"object","title":"BookingRoomOut","description":"One staying slot on a booking — always a leaf room (a superseded\npre-move room is history, never shown). ``room_id`` is null until a\nphysical room is assigned."},"ChannelAdjustmentOut":{"properties":{"channel_id":{"type":"string","title":"Channel Id","description":"Public channel ID."},"rate_difference":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate Difference","description":"The resolved adjustment value; 0 is a real configured zero-offset, null means no layer configures one."},"rate_difference_type":{"anyOf":[{"$ref":"#/components/schemas/ChannelRateDifferenceType"},{"type":"null"}],"description":"`PERCENT` or `FLAT` (flat is in the property's currency)."},"source":{"anyOf":[{"$ref":"#/components/schemas/ChannelAdjustmentSource"},{"type":"null"}],"description":"The layer the adjustment resolved from: the `room_type`'s own daily override (only when the read names a room type), the channel-wide `daily` override, `channel` global, or the `property`-wide fallback."}},"type":"object","required":["channel_id"],"title":"ChannelAdjustmentOut","description":"The resolved adjustment for one channel on one date, plus the layer it\nresolved from. All three fields are null together when no layer configures\nan adjustment — the raw internal rate is sent to the channel. A configured\nzero is *not* null: it resolves with its layer and shadows the layers\nbelow it."},"ChannelAdjustmentSource":{"type":"string","enum":["room_type","daily","channel","property"],"title":"ChannelAdjustmentSource","description":"Which layer a resolved channel adjustment came from: a daily override\nfor the room type, a daily per-channel override, the channel's global\nsetting, or the property-wide fallback."},"ChannelAdjustmentWriteResultOut":{"properties":{"channel_id":{"type":"string","title":"Channel Id","description":"Public channel ID."},"rate_difference":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate Difference","description":"The resolved adjustment value; 0 is a real configured zero-offset, null means no layer configures one."},"rate_difference_type":{"anyOf":[{"$ref":"#/components/schemas/ChannelRateDifferenceType"},{"type":"null"}],"description":"`PERCENT` or `FLAT` (flat is in the property's currency)."},"source":{"anyOf":[{"$ref":"#/components/schemas/ChannelAdjustmentSource"},{"type":"null"}],"description":"The layer the adjustment resolved from: the `room_type`'s own daily override (only when the read names a room type), the channel-wide `daily` override, `channel` global, or the `property`-wide fallback."},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice","description":"Set when this write is the channel's first daily adjustment ever: the one-way-door disclosure that the channel permanently migrates to absolute-rate rate plans on the channel manager."}},"type":"object","required":["channel_id"],"title":"ChannelAdjustmentWriteResultOut","description":"One channel's resolved adjustment after a write. ``notice`` is set on\nthe write that is the channel's first daily adjustment ever — the\none-way-door disclosure that the channel now permanently migrates from\nderived rates to its own absolute-rate rate plans on Channex."},"ChannelAdjustmentsMeta":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The date resolved, property-local."},"room_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type Id","description":"The room type resolved for, when the read named one: its own daily override is layered above the channel-wide one. Null means the channel-wide view, which ignores room-type overrides."}},"type":"object","required":["date"],"title":"ChannelAdjustmentsMeta","description":"Which date, and optionally which room type, the adjustments were\nresolved for."},"ChannelAdjustmentsOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ChannelAdjustmentOut"},"type":"array","title":"Data","description":"One entry per connected channel."},"meta":{"$ref":"#/components/schemas/ChannelAdjustmentsMeta","description":"The resolved date."}},"type":"object","required":["data","meta"],"title":"ChannelAdjustmentsOut","description":"Every connected channel's resolved adjustment for one date."},"ChannelAdjustmentsWriteMeta":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date","description":"First date written."},"end_date":{"type":"string","format":"date","title":"End Date","description":"Last date written, inclusive."},"room_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type Id","description":"Set when every entry in the request named the same room type: the echo is then that room type's view for the start date. Otherwise the echo is the channel-wide view."}},"type":"object","required":["start_date","end_date"],"title":"ChannelAdjustmentsWriteMeta","description":"The date window the write covered, and the room type the echo was\nresolved for when the request targeted exactly one."},"ChannelAdjustmentsWriteOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ChannelAdjustmentWriteResultOut"},"type":"array","title":"Data","description":"Every connected channel's resolved adjustment for the window's start date."},"meta":{"$ref":"#/components/schemas/ChannelAdjustmentsWriteMeta","description":"The window written."}},"type":"object","required":["data","meta"],"title":"ChannelAdjustmentsWriteOut","description":"Write echo: every connected channel's resolved adjustment for the\nwindow's start date (the same view the adjustments read returns), with\nthe written window in meta."},"ChannelInventoryLimitsMeta":{"properties":{"channel_id":{"type":"string","title":"Channel Id","description":"Public channel ID."}},"type":"object","required":["channel_id"],"title":"ChannelInventoryLimitsMeta","description":"The channel the caps apply to."},"ChannelInventoryLimitsOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RoomTypeLimitOut"},"type":"array","title":"Data","description":"One entry per room type."},"meta":{"$ref":"#/components/schemas/ChannelInventoryLimitsMeta","description":"Which channel these caps are for."}},"type":"object","required":["data","meta"],"title":"ChannelInventoryLimitsOut","description":"Every room type's standing cap for one channel. A cap means: at most\nN rooms of this type are offered to this channel on any date, unless a\ndaily cap overrides it for that date."},"ChannelOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public channel ID, prefixed `chn_`.","examples":["chn_bcom"]},"name":{"type":"string","title":"Name","description":"The channel's display name.","examples":["Booking.com"]},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Short catalogue code for the channel."},"is_connected":{"type":"boolean","title":"Is Connected","description":"Whether the property currently syncs with the channel."},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status","description":"Connection status as the channel manager reports it."}},"type":"object","required":["id","name","is_connected"],"title":"ChannelOut","description":"A property's connection to one sales channel. Only catalogue identity\nand connection state — internal integer ids, Channex hotel/channel ids,\nguarantee config, and commission terms never appear here."},"ChannelRateDifferenceType":{"type":"string","enum":["PERCENT","FLAT"],"title":"ChannelRateDifferenceType","description":"How a channel adjustment modifies the internal rate. Deliberately the\nchannel-layer vocabulary (``PERCENT``/``FLAT``) — never the room-type\nderivation labels (``%``/``$``), which mean the same thing but belong to a\ndifferent layer (pricing domain doc)."},"ChannelRateSettingsOut":{"properties":{"channel_id":{"type":"string","title":"Channel Id","description":"Public channel ID."},"rate_difference":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate Difference","description":"The stored global adjustment; null when cleared."},"rate_difference_type":{"anyOf":[{"$ref":"#/components/schemas/ChannelRateDifferenceType"},{"type":"null"}],"description":"`PERCENT` or `FLAT`; null when cleared."}},"type":"object","required":["channel_id"],"title":"ChannelRateSettingsOut","description":"The channel's stored global adjustment after a write — a null pair\nwhen cleared (daily rows and the property-wide fallback are separate\nlayers and are not echoed here)."},"CreateWebhookEndpointParams":{"properties":{"url":{"type":"string","maxLength":2000,"minLength":1,"title":"Url","description":"HTTPS URL of the receiver; must be a publicly reachable host.","examples":["https://example.com/webhooks/vacant"]},"event_types":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Event Types","description":"Event types to deliver: exact names like `booking.created` or family wildcards like `booking.*` (which include types added later).","examples":[["booking.*","payment.succeeded"]]}},"type":"object","required":["url","event_types"],"title":"CreateWebhookEndpointParams","description":"Register an endpoint. The signing secret is minted server-side and\nreturned exactly once in the create response."},"DailyEntryOut":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The hotel date, property-local."},"room_revenue":{"type":"number","title":"Room Revenue","description":"Room revenue earned on the date."},"tax_collected":{"type":"number","title":"Tax Collected","description":"Taxes collected."},"products_services":{"type":"number","title":"Products Services","description":"Revenue from products and services (non-room charges)."},"adr":{"type":"number","title":"Adr","description":"Average daily rate: room revenue / rooms sold."},"rev_par":{"type":"number","title":"Rev Par","description":"Revenue per available room: room revenue / rooms available."},"rooms_sold":{"type":"integer","title":"Rooms Sold","description":"Occupied room-nights on the date."},"occupancy":{"type":"number","title":"Occupancy","description":"Occupancy as a fraction of rooms available."},"new_reservations":{"type":"integer","title":"New Reservations","description":"Reservations made on the date."},"cancelled_reservations":{"type":"integer","title":"Cancelled Reservations","description":"Reservations cancelled on the date."},"commissions":{"type":"number","title":"Commissions","description":"Channel commission cost."},"refunds":{"type":"number","title":"Refunds","description":"Refunds issued."},"payments":{"items":{"$ref":"#/components/schemas/DailyPaymentOut"},"type":"array","title":"Payments","description":"Payments taken, broken down by method."}},"type":"object","required":["date","room_revenue","tax_collected","products_services","adr","rev_par","rooms_sold","occupancy","new_reservations","cancelled_reservations","commissions","refunds","payments"],"title":"DailyEntryOut","description":"One date's performance figures. Money is in the property's currency."},"DailyInventoryLimitOut":{"properties":{"channel_id":{"type":"string","title":"Channel Id","description":"Public channel ID."},"stored_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Stored Limit","description":"The durable cap (`sold + remaining` as of the write); null when no daily override exists. A global limit may still apply."},"global_limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Global Limit","description":"Standing cap for this room type and channel, even when a daily override exists. Null means no global cap; zero is a stop-sell. Disable turning limits off when non-null. Without a daily override, headroom is max(0, global_limit - sold)."},"sold":{"type":"integer","title":"Sold","description":"Rooms already booked through the channel."},"remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Remaining","description":"Point-in-time headroom: `max(0, stored_limit - sold)`; shrinks as bookings land. Null when no daily override exists."}},"type":"object","required":["channel_id","sold"],"title":"DailyInventoryLimitOut","description":"One channel's daily cap state for the requested date.\n\n``stored_limit`` is the durable cap (``sold + remaining`` as of the\nwrite); ``sold`` is the live booked count; ``remaining`` is\n``max(0, stored_limit - sold)`` — a point-in-time number that shrinks as\nbookings land. All three are null/zero-safe: an uncapped channel has\n``stored_limit`` and ``remaining`` null with ``sold`` still real.\nWithout a daily override, ``global_limit`` applies when non-null."},"DailyInventoryLimitsMeta":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public room-type ID."},"date":{"type":"string","format":"date","title":"Date","description":"The date read, property-local."}},"type":"object","required":["room_type_id","date"],"title":"DailyInventoryLimitsMeta","description":"The room type and date the caps apply to."},"DailyInventoryLimitsOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DailyInventoryLimitOut"},"type":"array","title":"Data","description":"One entry per active channel."},"meta":{"$ref":"#/components/schemas/DailyInventoryLimitsMeta","description":"Which room type and date these caps are for."}},"type":"object","required":["data","meta"],"title":"DailyInventoryLimitsOut","description":"Every active channel's daily cap state for one room type and date.\nChannels with no cap configured still appear (uncapped, nulls)."},"DailyPaymentOut":{"properties":{"key":{"type":"string","title":"Key","description":"Machine-readable payment-method key."},"label":{"type":"string","title":"Label","description":"Display label for the method."},"amount":{"type":"number","title":"Amount","description":"Amount taken, property currency."}},"type":"object","required":["key","label","amount"],"title":"DailyPaymentOut","description":"Payments taken on one date via one method."},"DailySummaryOut":{"properties":{"room_revenue":{"type":"number","title":"Room Revenue","description":"Room revenue over the window."},"tax_collected":{"type":"number","title":"Tax Collected","description":"Taxes collected over the window."},"products_services":{"type":"number","title":"Products Services","description":"Products and services revenue over the window."},"adr":{"type":"number","title":"Adr","description":"Average daily rate over the window."},"rev_par":{"type":"number","title":"Rev Par","description":"RevPAR over the window."},"rooms_sold":{"type":"integer","title":"Rooms Sold","description":"Occupied room-nights over the window."},"occupancy":{"type":"number","title":"Occupancy","description":"Average occupancy over the window."},"new_reservations":{"type":"integer","title":"New Reservations","description":"Reservations made over the window."},"cancelled_reservations":{"type":"integer","title":"Cancelled Reservations","description":"Reservations cancelled over the window."},"commissions":{"type":"number","title":"Commissions","description":"Channel commission cost over the window."},"refunds":{"type":"number","title":"Refunds","description":"Refunds issued over the window."}},"type":"object","required":["room_revenue","tax_collected","products_services","adr","rev_par","rooms_sold","occupancy","new_reservations","cancelled_reservations","commissions","refunds"],"title":"DailySummaryOut","description":"Whole-window totals for the daily report; same fields as the per-date\nentries (rates and occupancy are window averages)."},"FolioSummaryOut":{"properties":{"total":{"type":"number","title":"Total","description":"Total charges including taxes, in the folio currency."},"payments":{"type":"number","title":"Payments","description":"Total payments received."},"balance":{"type":"number","title":"Balance","description":"What remains to collect: `total - payments`."},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"ISO 4217 currency of these amounts."}},"type":"object","required":["total","payments","balance"],"title":"FolioSummaryOut","description":"Money summary of the booking's folio."},"GuestOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public guest ID, prefixed `gst_` — the master profile's ID. Stable across merges.","examples":["gst_4h8k2p"]},"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"First (given) name."},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name","description":"Middle name."},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"Last (family) name."},"suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suffix","description":"Name suffix (Jr., III, …)."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Email address."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Phone number."},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street","description":"Street address, line 1."},"street_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street 2","description":"Street address, line 2."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City."},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State, province, or region."},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"Postal or ZIP code."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country."},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob","description":"Date of birth."},"marketing_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Marketing Opt In","description":"Whether the guest opted into marketing communications."}},"type":"object","required":["id"],"title":"GuestOut","description":"Guest PII — every field here is why ``guests:read`` is an explicit\ngrant. The ID is the master profile's; merged duplicates resolve to it."},"HousekeepingStatus":{"type":"string","enum":["clean","dirty","cleaning"],"title":"HousekeepingStatus","description":"Where a room is in the cleaning cycle. Staff and the check-out flow\nset it; it never affects whether the room can be sold."},"OccupancyMetricsOut":{"properties":{"adr":{"type":"number","title":"Adr","description":"Average daily rate over the window."},"rev_par":{"type":"number","title":"Rev Par","description":"RevPAR over the window."},"occupancy":{"type":"number","title":"Occupancy","description":"Occupancy as a fraction of rooms available."},"rooms_sold":{"type":"integer","title":"Rooms Sold","description":"Occupied room-nights over the window."},"rooms_available":{"type":"integer","title":"Rooms Available","description":"Sellable room-nights over the window."},"rooms_closed":{"type":"integer","title":"Rooms Closed","description":"Room-nights closed to sale."}},"type":"object","required":["adr","rev_par","occupancy","rooms_sold","rooms_available","rooms_closed"],"title":"OccupancyMetricsOut","description":"Whole-window occupancy figures."},"OccupancyStatus":{"type":"string","enum":["vacant","occupied","arriving","departing","turnover"],"title":"OccupancyStatus","description":"What today's bookings mean for a room, on the property's local date."},"PickupEntryOut":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The stay date, in the property's local calendar."},"current":{"$ref":"#/components/schemas/PickupPositionOut","description":"The position now."},"as_of":{"$ref":"#/components/schemas/PickupPositionOut","description":"The position as it stood at the comparison date."},"pickup":{"$ref":"#/components/schemas/PickupPositionOut","description":"Current minus as-of. Negative when the night lost more business than it gained — a booking cancelled after the comparison date counts toward the as-of position and not the current one."},"room_types":{"items":{"$ref":"#/components/schemas/PickupRoomTypeOut"},"type":"array","title":"Room Types","description":"The same movement split by room type, listing only the types that held something at one of the two points — empty for a date nothing has happened to. Read the date's own figures for its totals rather than summing these: each figure is rounded from its own unrounded sum, so on a tax-inclusive property the breakdown can add up to a cent either side of the date's total. That is the trade that keeps the date's total matching the daily report to the penny."}},"type":"object","required":["date","current","as_of","pickup","room_types"],"title":"PickupEntryOut","description":"One stay date: the position now, the position then, and the change."},"PickupPositionOut":{"properties":{"rooms_sold":{"type":"integer","title":"Rooms Sold","description":"Occupied room-nights on the stay date at this point in time."},"room_revenue":{"type":"number","title":"Room Revenue","description":"Room revenue for the stay date, net of tax, in the property's currency."},"adr":{"type":"number","title":"Adr","description":"Average daily rate: room revenue / rooms sold."},"occupancy":{"type":"number","title":"Occupancy","description":"Occupancy as a percentage of the rooms available that night, the same scale the daily report uses. Both positions use the inventory as it stands today, so the pickup figure measures the change in rooms sold and not a change in capacity.","examples":[84.0]}},"type":"object","required":["rooms_sold","room_revenue","adr","occupancy"],"title":"PickupPositionOut","description":"Rooms and revenue for one stay date at one point in time."},"PickupRoomTypeOut":{"properties":{"room_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type Id","description":"The room type's ID. Null when the room-nights carry no room type at all, which older imported bookings can.","examples":["rmt_vYbblCj6"]},"current":{"$ref":"#/components/schemas/PickupTypePositionOut","description":"The position now."},"as_of":{"$ref":"#/components/schemas/PickupTypePositionOut","description":"The position as it stood at the comparison date."},"pickup":{"$ref":"#/components/schemas/PickupTypePositionOut","description":"Current minus as-of. Negative when the type lost business."}},"type":"object","required":["current","as_of","pickup"],"title":"PickupRoomTypeOut","description":"One room type's contribution to a stay date's pickup.\n\nThe room type is the one the booking was **booked as**, matching how the\nbookings list's ``room_type_id`` filter attributes a booking — so a guest\nupgraded into another type still counts under the type they booked."},"PickupSummaryOut":{"properties":{"rooms_sold":{"type":"integer","title":"Rooms Sold","description":"Room-nights picked up over the window."},"room_revenue":{"type":"number","title":"Room Revenue","description":"Room revenue picked up over the window, net of tax."}},"type":"object","required":["rooms_sold","room_revenue"],"title":"PickupSummaryOut","description":"Rooms and revenue picked up across the whole window."},"PickupTypePositionOut":{"properties":{"rooms_sold":{"type":"integer","title":"Rooms Sold","description":"Occupied room-nights of this room type at this point in time."},"room_revenue":{"type":"number","title":"Room Revenue","description":"Room revenue for this room type, net of tax."},"adr":{"type":"number","title":"Adr","description":"Average daily rate for this room type."}},"type":"object","required":["rooms_sold","room_revenue","adr"],"title":"PickupTypePositionOut","description":"Rooms and revenue for one room type at one point in time.\n\nOccupancy is deliberately absent: a per-room-type denominator would have\nto settle how closed and out-of-order rooms divide between types, and\nrooms and revenue need no denominator."},"ProductOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public product ID, prefixed `prd_`. Stable.","examples":["prd_x7Km2p9Q"]},"name":{"type":"string","title":"Name","description":"Display name, unique among the property's products.","examples":["Parking"]},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"The property's own code for the product."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Free-text description."},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"Default unit price, before tax, in the property's currency. Null means the product has no default price, so adding it to a booking needs a `unit_price`.","examples":[25.0]},"is_note_required":{"type":"boolean","title":"Is Note Required","description":"Whether adding the product to a booking requires `notes`."},"taxes":{"items":{"$ref":"#/components/schemas/ProductTaxOut"},"type":"array","title":"Taxes","description":"Taxes charged on the product.","default":[]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"The product's photo, shown to guests when it is sold as an upsell."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"UTC time the product last changed."}},"type":"object","required":["id","name","is_note_required"],"title":"ProductOut","description":"A product or service the property sells: parking, breakfast, a late\ncheckout. Add one to a booking to charge it on the booking's folio."},"ProductTaxOut":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The tax's display name.","examples":["VAT"]},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount","description":"The tax rate: a percentage of the product line when `is_percentage` is true, otherwise a flat amount in the property's currency charged once per product line.","examples":[10.0]},"is_percentage":{"type":"boolean","title":"Is Percentage","description":"Whether `amount` is a percentage rather than a flat amount."}},"type":"object","required":["name","amount","is_percentage"],"title":"ProductTaxOut","description":"A tax charged on a product. Taxes are configured in the dashboard;\nthey are read-only on this surface."},"PropertyOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public property ID, prefixed `prop_`. Stable.","examples":["prop_8f3k2m"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Display name.","examples":["Bay Front Inn"]},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug","description":"URL-safe identifier used by the property's booking engine."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Free-text description shown to guests."},"property_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Property Type","description":"Kind of property, e.g. `hotel`, `vacation_rental`."},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"ISO 4217 currency code. Every monetary amount on this API is in this currency.","examples":["USD"]},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone","description":"IANA timezone name. Every calendar date on this API is local to this timezone.","examples":["America/New_York"]},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Contact phone number."},"contact_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Email","description":"Contact email."},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street","description":"Street address, line 1."},"street_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street 2","description":"Street address, line 2."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City."},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State, province, or region."},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"Postal or ZIP code."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country."},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude","description":"Latitude, WGS 84."},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude","description":"Longitude, WGS 84."},"checkin_time":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Checkin Time","description":"Earliest check-in time, property-local."},"checkout_time":{"anyOf":[{"type":"string","format":"time"},{"type":"null"}],"title":"Checkout Time","description":"Latest check-out time, property-local."},"total_rooms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Rooms","description":"Number of rooms the property reports having, captured on its profile. A self-reported figure, not a live count of room records — it is not comparable with the availability read's per-type `total`, which is derived from actual rooms."},"max_rooms_per_booking":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Rooms Per Booking","description":"The most rooms a single booking-engine reservation may hold — the smaller of the booking engine's own cap and surge protection's, when surge protection is on. `null` means no cap. It applies to guests booking direct on the booking engine, not to bookings made through the API, the PMS, or a channel."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"UTC time the property profile last changed."}},"type":"object","required":["id"],"title":"PropertyOut","description":"The property as its own integrations see it: identity, display, locale,\nand location — no billing state, no internal configuration flags."},"RateDay":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The hotel night, a calendar date in the property's timezone."},"room_types":{"items":{"$ref":"#/components/schemas/RoomTypeRate"},"type":"array","title":"Room Types","description":"One entry per live room type, in the property's display order."}},"type":"object","required":["date","room_types"],"title":"RateDay","description":"Every room type's effective rate for one date."},"RateHistoryActivityType":{"type":"string","enum":["created","updated","deleted"],"title":"RateHistoryActivityType","description":"What a recorded rate change did to the date's custom rate."},"RateHistoryActor":{"properties":{"type":{"$ref":"#/components/schemas/RateHistoryActorType","description":"`user` — a dashboard user; `api_key` — a Developer API key; `system` — an automated engine (surge protection, occupancy pricing, a revenue-management integration); `unknown` — the change predates actor recording and cannot be credited."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Display name of the actor: the user's name, the API key's name, or the engine's name. Null when the actor is `unknown`, and null for a `user` or `api_key` the record no longer names (a deleted key still reports the change it made).","examples":["Channel Manager Sync"]}},"type":"object","required":["type"],"title":"RateHistoryActor","description":"Who made a rate change. Read `type` before `name`: a key is not a user\nand neither is an engine, so the kind is never inferable from the name."},"RateHistoryActorType":{"type":"string","enum":["user","api_key","system","unknown"],"title":"RateHistoryActorType","description":"Which kind of actor a change is credited to.\n\n``unknown`` means the record does not say who acted — distinct from a\n``user`` whose ``name`` is null, which does say a person made the change\nand only fails to name them."},"RateHistoryEntryOut":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The stay date whose rate changed — a calendar date in the property's timezone, not the date the change was made.","examples":["2026-09-01"]},"room_type_id":{"type":"string","title":"Room Type Id","description":"Public ID of the room type whose rate changed.","examples":["rmt_5q8w1z"]},"activity_type":{"$ref":"#/components/schemas/RateHistoryActivityType","description":"`created` — a custom rate was set on a date that had none; `updated` — an existing custom rate changed; `deleted` — the custom rate was removed and the date fell back to the room type's base or derived rate."},"old_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Old Rate","description":"The custom rate before the change, in the property's currency. Null when the date held no custom rate (`created`)."},"new_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"New Rate","description":"The custom rate after the change, in the property's currency. Null when the custom rate was removed (`deleted`)."},"source":{"$ref":"#/components/schemas/RateHistorySource","description":"What moved the rate — see the endpoint description."},"actor":{"$ref":"#/components/schemas/RateHistoryActor","description":"Who made the change."},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At","description":"UTC instant the change was recorded — when it happened, as opposed to `date`, which is the stay date it applies to."}},"type":"object","required":["date","room_type_id","activity_type","source","actor","occurred_at"],"title":"RateHistoryEntryOut","description":"One recorded change to one room type's rate for one stay date.\n\nOnly changes are recorded: re-writing a date with the rate it already\nholds produces no entry, so an empty history for a window means the\nwindow's rates were never moved — not that nothing wrote to them."},"RateHistorySource":{"type":"string","enum":["user","agent","api","surge","occupancy","roompricegenie","unknown"],"title":"RateHistorySource","description":"What moved the rate.\n\n``unknown`` is the honest answer for changes recorded before Developer API\nwrites were attributed to their key: those rows carry no actor at all and\nare as likely to be an API write as a dashboard edit, so they are not\nreported as either. Every other member names a real writer."},"RatePlanOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public rate-plan ID, prefixed `rpl_`. Stable.","examples":["rpl_2j6n9s"]},"name":{"type":"string","title":"Name","description":"Display name.","examples":["Non-refundable"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Free-text description shown to guests."},"pricing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing","description":"Pricing mode: derived plans adjust the room type's rate by the `adjustment_*` fields; flat plans charge their own per-room-type rate as-is."},"adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjustment Amount","description":"For derived plans: the adjustment applied to the room type's nightly rate, interpreted per `adjustment_type`."},"adjustment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Adjustment Type","description":"How `adjustment_amount` applies: a percentage or a flat amount in the property's currency."},"adult_adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adult Adjustment Amount","description":"Flat amount (property currency) added per night for each adult beyond the room type's `max_adults` — never from the first guest. Derived-pricing plans only; null when unconfigured."},"child_adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Child Adjustment Amount","description":"Flat amount (property currency) added per night for each child beyond the room type's `max_children`. Derived-pricing plans only; null when unconfigured."},"is_tax_inclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Tax Inclusive","description":"Whether the plan's rates already include tax; null inherits the property-level setting."},"min_stay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Stay","description":"Minimum stay length in nights, if restricted."},"max_stay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Stay","description":"Maximum stay length in nights, if restricted."},"is_standard":{"type":"boolean","title":"Is Standard","description":"True for the property's standard (default) plan.","default":false},"is_active":{"type":"boolean","title":"Is Active","description":"False for a plan that is no longer offered.","default":true},"room_types":{"items":{"$ref":"#/components/schemas/RatePlanRoomTypeOut"},"type":"array","title":"Room Types","description":"The room types this plan is sold on, each with the plan's own rate for it when the plan is flat-priced. Empty when the plan is mapped to no room type — it is then not sellable. Mappings are dashboard-managed and read-only here.","default":[]},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"UTC time the plan or any of its room-type mappings last changed — the latest of the two, so a rate change on a mapped room type moves it as well."}},"type":"object","required":["id","name"],"title":"RatePlanOut","description":"A named pricing offer as integrations see it. Codes that gate access\n(promo/group) are deliberately absent — a read scope lists the offers, it\ndoesn't hand out their unlock strings.\n\n``adult_adjustment_amount`` / ``child_adjustment_amount`` are flat\namounts in the property's currency, added to the nightly room rate for\neach adult (respectively child) beyond the room type's ``max_adults`` /\n``max_children`` capacity limits — never from the first guest. A\ndimension whose limit is null charges nothing, and a booking that carries\nno explicit count on a dimension is not charged on it. They apply only to\nderived-pricing plans — flat-priced plans charge their per-room-type rate\nas-is and never apply guest-count adjustments. Null when unconfigured.\n\n``is_tax_inclusive`` says whether the plan's rates already include tax;\nnull means the plan inherits the property-level tax-inclusive setting."},"RatePlanRoomTypeOut":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public ID of the room type the plan is sold on.","examples":["rmt_5q8w1z"]},"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate","description":"The plan's own nightly rate for this room type, in the property's currency — flat-priced plans only. Null on a derived-pricing plan, whose price comes from the room type's rate plus the plan's adjustment."}},"type":"object","required":["room_type_id"],"title":"RatePlanRoomTypeOut","description":"One room type a rate plan is sold on, with the plan's own rate for it.\n\n``rate`` is populated only for a flat-priced plan, which charges this\nnumber as-is. A derived-pricing plan reports null here — it has no rate of\nits own for the room type; its price is the room type's effective rate for\nthe date (from the rates read) with the plan's ``adjustment_amount``\napplied. So a null ``rate`` is \"priced from the room type\", never \"no\nprice\"."},"RateQuoteChannelPrice":{"properties":{"channel_id":{"type":"string","title":"Channel Id","description":"Public channel ID, prefixed `chn_`.","examples":["chn_bcom"]},"rate_difference":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate Difference","description":"The resolved channel adjustment for the date. 0 is a real configured zero-offset; null means no layer configures one and the channel receives `plan_rate` unchanged.","examples":[-10.0]},"rate_difference_type":{"anyOf":[{"$ref":"#/components/schemas/ChannelRateDifferenceType"},{"type":"null"}],"description":"`PERCENT` or `FLAT` (flat is in the property's currency); null with `rate_difference`."},"source":{"anyOf":[{"$ref":"#/components/schemas/ChannelAdjustmentSource"},{"type":"null"}],"description":"The layer the adjustment resolved from: this `room_type`'s own daily override, the channel-wide `daily` override, the `channel`'s own setting, or the `property`-wide fallback. Null with `rate_difference`."},"channel_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Channel Rate","description":"`plan_rate` with the channel adjustment applied, rounded to the cent (half up) and never below 0. Null when `plan_rate` is null or the channel is sent no price for this plan (`pricing: not_distributed`).","examples":[121.5]},"pricing":{"$ref":"#/components/schemas/RateQuoteChannelPricing","description":"Whether `channel_rate` is the exact price the channel receives (`absolute`), the price the channel manager derives from `plan_rate` (`channel_manager_derived`), or absent because the channel is sent no price for this plan and room type (`not_distributed`)."}},"type":"object","required":["channel_id","pricing"],"title":"RateQuoteChannelPrice","description":"The plan's price on one channel for one date, with the channel\nadjustment it was computed from. The adjustment applies to `plan_rate`,\nnever to the guest supplements: channels are sent a price per room, so\nthey never receive the over-capacity charge."},"RateQuoteChannelPricing":{"type":"string","enum":["absolute","channel_manager_derived","not_distributed"],"title":"RateQuoteChannelPricing","description":"How a channel arrives at the price it shows.\n\n``absolute``: Vacant computes the channel's price and sends it to the\nchannel as-is, so the quoted ``channel_rate`` is exactly what the channel\nreceives. ``channel_manager_derived``: Vacant sends the plan rate and the\nchannel manager applies the channel's adjustment itself, so the quoted\n``channel_rate`` is the same computation but the channel's own rounding\nmay differ by a cent. ``not_distributed``: the channel is sent no price\nfor this plan and room type at all (the plan is not mapped to the channel\nmanager for it), so there is no ``channel_rate``."},"RateQuoteDay":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The hotel night, a calendar date in the property's timezone."},"room_types":{"items":{"$ref":"#/components/schemas/RateQuoteRoomType"},"type":"array","title":"Room Types","description":"One entry per live room type, in the property's display order."}},"type":"object","required":["date","room_types"],"title":"RateQuoteDay","description":"Every room type's plan prices for one date."},"RateQuoteGuestSupplements":{"properties":{"extra_adults":{"type":"integer","title":"Extra Adults","description":"Adults beyond the room type's `max_adults`. 0 when the request is within the limit or the room type sets no adult limit.","examples":[1]},"extra_children":{"type":"integer","title":"Extra Children","description":"Children beyond the room type's `max_children`. 0 when the request is within the limit or the room type sets no child limit.","examples":[0]},"amount":{"type":"number","title":"Amount","description":"The nightly charge for those guests, in the property's currency: the plan's `adult_adjustment_amount` per extra adult plus its `child_adjustment_amount` per extra child. 0 when the plan configures no amount for the dimension that is over.","examples":[25.0]}},"type":"object","required":["extra_adults","extra_children","amount"],"title":"RateQuoteGuestSupplements","description":"The per-night charge for guests beyond the room type's capacity\nlimits, for the requested guest counts."},"RateQuoteMeta":{"properties":{"next_page_marker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Marker","description":"Present when more items exist, `null` on the last page. It is an indicator, not a cursor parameter — page by advancing `offset` by your page size."},"next_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Start Date","description":"Pass this as `start_date` on the next request to continue from where this window stopped, keeping your original `end_date`. Null when the window reached your requested `end_date`."},"adults":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Adults","description":"The adult count the guest supplements use."},"children":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Children","description":"The child count the guest supplements use."},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id","description":"The channel the `channel` prices are for."}},"type":"object","title":"RateQuoteMeta","description":"Where to resume when the request outran the window cap, plus the\ninputs the prices were computed for."},"RateQuoteOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RateQuoteDay"},"type":"array","title":"Data","description":"One entry per date in the window."},"meta":{"$ref":"#/components/schemas/RateQuoteMeta","description":"Where to resume when the request outran the window cap, and the guest counts and channel the prices are for."}},"type":"object","required":["data"],"title":"RateQuoteOut","description":"Rate-plan prices over a date window, per date, room type and plan."},"RateQuotePlan":{"properties":{"rate_plan_id":{"type":"string","title":"Rate Plan Id","description":"Public rate-plan ID, prefixed `rpl_`.","examples":["rpl_2j6n9s"]},"pricing":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pricing","description":"`derived` (adjusts the room-type rate) or `flat` (its own per-room-type price).","examples":["derived"]},"plan_adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Plan Adjustment Amount","description":"For derived plans, the adjustment applied to `room_type_rate`, per `plan_adjustment_type`. Null when the plan applies none (no amount, or an amount without a type: it then prices at `room_type_rate`) and for flat plans.","examples":[-10.0]},"plan_adjustment_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan Adjustment Type","description":"`percentage` or `fixed` (in the property's currency); null with `plan_adjustment_amount`.","examples":["percentage"]},"is_available":{"type":"boolean","title":"Is Available","description":"Whether the plan sells this date. False on the plan's blackout dates, on days of the week it does not sell, outside the nights it is limited to, and on every date of an inactive plan (quoted only when requested by `rate_plan_id`). The prices are still reported, as they are to the channel, where the date is closed to sale."},"plan_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Plan Rate","description":"The nightly price under the plan, before guest supplements and channel adjustments: the flat plan's own price, or `room_type_rate` with the plan's adjustment applied. Null for a derived plan on a date where `room_type_rate` is null.","examples":[135.0]},"guest_supplements":{"anyOf":[{"$ref":"#/components/schemas/RateQuoteGuestSupplements"},{"type":"null"}],"description":"The over-capacity guest charge for the requested `adults` / `children`. Null when the request carries no guest counts, and always for flat plans, which never charge it."},"total_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Rate","description":"The nightly price a direct booking pays: `plan_rate` plus the guest supplement amount. Null with `plan_rate`. Excludes tax and fees.","examples":[160.0]},"channel":{"anyOf":[{"$ref":"#/components/schemas/RateQuoteChannelPrice"},{"type":"null"}],"description":"The price on the requested channel; null without `channel_id`."}},"type":"object","required":["rate_plan_id","is_available"],"title":"RateQuotePlan","description":"One rate plan's price for one room type on one date, broken down by\nlayer: the plan's own adjustment, the guest supplements, and (when a\nchannel is requested) the channel adjustment."},"RateQuoteRoomType":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public room-type ID, prefixed `rmt_`.","examples":["rmt_k2p9x4"]},"room_type_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Room Type Rate","description":"The room type's rate for the date — the same number as `rate` on the rates read. Null when the room type has no rate on the date (nothing stored and nothing to derive from).","examples":[150.0]},"rate_plans":{"items":{"$ref":"#/components/schemas/RateQuotePlan"},"type":"array","title":"Rate Plans","description":"One entry per rate plan sold for this room type: plans mapped to it (a plan mapped to no room type covers all of them), and for flat plans only those carrying a price for it. Standard plan first."}},"type":"object","required":["room_type_id","rate_plans"],"title":"RateQuoteRoomType","description":"One room type's rate and its rate plans' prices on one date."},"RatesOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RateDay"},"type":"array","title":"Data","description":"One entry per date in the window."},"meta":{"$ref":"#/components/schemas/WindowPageMeta","description":"Where to resume when the request outran the window cap."}},"type":"object","required":["data"],"title":"RatesOut","description":"Effective rates over a date window — the same numbers the dashboard\ncalendar shows. On a write echo the entries read back the stored values,\nso an ``overwrite_min_rate`` raise is visible as the written dates\nholding each entry's ``min_rate`` rather than the requested rate."},"ReportDailyMeta":{"properties":{"period":{"$ref":"#/components/schemas/ReportPeriodOut","description":"The window reported on."},"summary":{"$ref":"#/components/schemas/DailySummaryOut","description":"Totals over the whole window."}},"type":"object","required":["period","summary"],"title":"ReportDailyMeta","description":"The window reported on, plus its whole-window totals."},"ReportDailyOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DailyEntryOut"},"type":"array","title":"Data","description":"One entry per date."},"meta":{"$ref":"#/components/schemas/ReportDailyMeta","description":"Window and totals."}},"type":"object","required":["data","meta"],"title":"ReportDailyOut","description":"The daily report: per-date figures, with window totals in meta."},"ReportOccupancyOut":{"properties":{"data":{"$ref":"#/components/schemas/OccupancyMetricsOut","description":"The occupancy figures."},"meta":{"$ref":"#/components/schemas/ReportPeriodMeta","description":"The window reported on."}},"type":"object","required":["data","meta"],"title":"ReportOccupancyOut","description":"Occupancy over a window."},"ReportPeriodMeta":{"properties":{"period":{"$ref":"#/components/schemas/ReportPeriodOut","description":"The window reported on."}},"type":"object","required":["period"],"title":"ReportPeriodMeta","description":"The window a report covers."},"ReportPeriodOut":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date","description":"First date of the window."},"end_date":{"type":"string","format":"date","title":"End Date","description":"Last date of the window, inclusive."}},"type":"object","required":["start_date","end_date"],"title":"ReportPeriodOut","description":"The report window echoed back, both bounds inclusive."},"ReportPickupMeta":{"properties":{"period":{"$ref":"#/components/schemas/ReportPeriodOut","description":"The stay window reported on."},"as_of":{"type":"string","format":"date","title":"As Of","description":"The comparison date, in the property's local calendar. For a timestamp `as_of`, the local date of that instant."},"as_of_at":{"type":"string","format":"date-time","title":"As Of At","description":"The exact UTC instant the as-of position is the book at: the end of the `as_of` day for a date, or the instant itself for a timestamp.","examples":["2026-11-24T09:00:00Z"]},"exact":{"type":"boolean","title":"Exact","description":"True when the as-of position is exact: every change committed after `as_of_at` is attributed to the stay date and room type it affected. False when `as_of_at` is before `exact_from` (or `exact_from` is null), in which case the as-of position is reconstructed from bookings as they stand today and a booking that moved, was repriced, extended, shortened, reinstated or confirmed from a hold since then is not attributed to the right night. See the reports section of the API reference."},"exact_from":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Exact From","description":"The earliest `as_of_at` that gives an exact answer (UTC). Null until exact pickup is available for this account.","examples":["2026-10-20T00:00:00Z"]},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"ISO 4217 code of every amount in the report — the property's currency, as `GET /properties` returns it.","examples":["USD"]},"summary":{"$ref":"#/components/schemas/PickupSummaryOut","description":"Pickup totalled over the whole window."}},"type":"object","required":["period","as_of","as_of_at","exact","summary"],"title":"ReportPickupMeta","description":"The window reported on, the comparison date, and the window totals."},"ReportPickupOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PickupEntryOut"},"type":"array","title":"Data","description":"One entry per stay date."},"meta":{"$ref":"#/components/schemas/ReportPickupMeta","description":"Window, comparison date, and totals."}},"type":"object","required":["data","meta"],"title":"ReportPickupOut","description":"Pickup: the change in room-nights and room revenue for each stay date\nin the window, between a past comparison date and now."},"ReportRevenueMeta":{"properties":{"period":{"$ref":"#/components/schemas/ReportPeriodOut","description":"The window reported on."},"total":{"type":"number","title":"Total","description":"Total revenue, property currency."}},"type":"object","required":["period","total"],"title":"ReportRevenueMeta","description":"The window reported on, plus the window total."},"ReportRevenueOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RevenueItemOut"},"type":"array","title":"Data","description":"One entry per category."},"meta":{"$ref":"#/components/schemas/ReportRevenueMeta","description":"Window and total."}},"type":"object","required":["data","meta"],"title":"ReportRevenueOut","description":"Revenue over the window, broken down by category."},"ReportSourcesOut":{"properties":{"data":{"items":{"$ref":"#/components/schemas/SourcesItemOut"},"type":"array","title":"Data","description":"One entry per source."},"meta":{"$ref":"#/components/schemas/ReportPeriodMeta","description":"The window reported on."}},"type":"object","required":["data","meta"],"title":"ReportSourcesOut","description":"Rooms sold, revenue, and commission cost by booking source."},"RevenueItemOut":{"properties":{"name":{"type":"string","title":"Name","description":"Category name."},"amount":{"type":"number","title":"Amount","description":"Revenue in the category, property currency."}},"type":"object","required":["name","amount"],"title":"RevenueItemOut","description":"One revenue category's total."},"RoomCloseOut":{"properties":{"room_id":{"type":"string","title":"Room Id","description":"Public ID of the closed room.","examples":["rm_9c4d7e"]},"start_date":{"type":"string","format":"date","title":"Start Date","description":"First closed night — a property-local calendar date."},"end_date":{"type":"string","format":"date","title":"End Date","description":"End of the close, exclusive — the room is sellable again on this date."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Free-text reason, shown to staff. Null when none was given."}},"type":"object","required":["room_id","start_date","end_date","reason"],"title":"RoomCloseOut","description":"The room close as written: the closed room and the property-local\nwindow the request asked for, echoed back once the dashboard writer's\nbooking-conflict and overlap guards have passed."},"RoomInclude":{"type":"string","enum":["occupancy_status"],"title":"RoomInclude","description":"Optional room fields a caller can ask the room list to compute."},"RoomOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public room ID, prefixed `rm_`. Stable.","examples":["rm_9c4d7e"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Room name or number.","examples":["204"]},"room_type_id":{"type":"string","title":"Room Type Id","description":"Public ID of the room type this room belongs to.","examples":["rmt_5q8w1z"]},"is_out_of_order":{"type":"boolean","title":"Is Out Of Order","description":"Whether the room is currently out of order. An out-of-order room is not sellable inventory: it is excluded from the availability read's `total` and `available` and reported in its `out_of_order` count instead. Not date-ranged — the flag applies until the room is returned to service.","examples":[false]},"housekeeping_status":{"$ref":"#/components/schemas/HousekeepingStatus","description":"Where the room is in the cleaning cycle: `clean`, `dirty`, or `cleaning`. Check-out marks a room `dirty`; staff move it on from there. A room that has never had a status set reads as `clean`. Independent of sellability — a dirty room is still sold.","examples":["dirty"]},"occupancy_status":{"anyOf":[{"$ref":"#/components/schemas/OccupancyStatus"},{"type":"null"}],"description":"What today's bookings mean for the room, as of the property's local date: `vacant` (nobody in the room and nobody due, including a room whose guest already checked out today), `occupied` (a guest is in-house and staying tonight), `arriving` (a reservation is due in today), `departing` (the in-house guest is due out today), or `turnover` (a departure and an arrival on the same day). Only bookings with this room assigned count. A snapshot, not a stored value: it is computed when you ask. Returned only on the room list and only when requested with `include=occupancy_status`; null everywhere else, which means not requested, never vacant.","examples":["turnover"]}},"type":"object","required":["id","room_type_id","is_out_of_order","housekeeping_status"],"title":"RoomOut","description":"One physical room."},"RoomTypeAvailability":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public room-type ID."},"total":{"type":"integer","title":"Total","description":"Physical rooms of the type, excluding rooms taken out of order — the physical count is `total + out_of_order`. Rooms closed to sale for the date are still counted here and reported separately in `closed`, so this is not a sellable count either — it is the physical count net of out-of-order rooms only. For a virtual room type, 1 when it combines at least one room and none of them is out of order, otherwise 0."},"available":{"type":"integer","title":"Available","description":"Rooms still sellable on the date — total minus occupancy and closes, never below zero. Occupancy includes `TENTATIVE` and `PENDING` holds, which take a room off sale until confirmed or released. For a virtual room type, 1 only when the unit has no booking of its own and every room it combines is free on the date: not held by a stay, not closed and not out of order, with a room of each one's type left after bookings not yet assigned a room."},"oversold":{"type":"integer","title":"Oversold","description":"Rooms committed beyond `total` on the date — bookings plus closed rooms, minus `total`, never below zero. A room that is both closed and booked counts once. `available` is 0 on an oversold date as on a sold-out one; this tells the two apart."},"closed":{"type":"integer","title":"Closed","description":"Rooms closed to sale on the date. For a virtual room type, 1 when any room it combines is closed on the date."},"out_of_order":{"type":"integer","title":"Out Of Order","description":"Rooms of the type currently marked out of order. These are not counted in `total` or `available`. The out-of-order flag is not date-ranged, so the same count is reported for every date in the window — it describes the room's state now, not on that date. For a virtual room type, 1 when any room it combines is out of order."}},"type":"object","required":["room_type_id","total","available","oversold","closed","out_of_order"],"title":"RoomTypeAvailability","description":"Display counts for one room type on one date — never assignable rooms,\nso this cannot interact with the overbooking invariants.\n\nA virtual room type (a combination of specific rooms, such as a suite made\nof two adjoining rooms) is counted as one unit: every count is 0 or 1, and\nthe unit is available only when every room it combines is free."},"RoomTypeLimitOut":{"properties":{"max_limit":{"type":"integer","minimum":0.0,"title":"Max Limit","description":"Response-only physical ceiling for the standing cap: all non-deleted rooms of this type, including out-of-order, booked, and closed rooms. Not current availability."},"room_type_id":{"type":"string","title":"Room Type Id","description":"Public room-type ID."},"name":{"type":"string","title":"Name","description":"The room type's display name."},"limit":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit","description":"The standing cap; null means uncapped."}},"type":"object","required":["max_limit","room_type_id","name"],"title":"RoomTypeLimitOut","description":"One room type's standing cap; ``limit`` null means uncapped."},"RoomTypeOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public room-type ID, prefixed `rmt_`. Stable.","examples":["rmt_5q8w1z"]},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Display name.","examples":["Deluxe King"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Free-text description shown to guests."},"max_guests":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Guests","description":"Legacy combined guest total — reads through to `max_adults` during the capacity transition and will be removed after a deprecation window. Use `max_adults` / `max_children`."},"max_adults":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Adults","description":"Adult capacity limit. Null means unconstrained."},"max_children":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Children","description":"Child capacity limit. Null means unconstrained."},"bath_count":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Bath Count","description":"Number of bathrooms (halves allowed)."},"size":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Size","description":"Floor area."},"is_smoking":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Smoking","description":"Whether smoking is allowed."},"is_ada":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Ada","description":"Whether the room type is ADA-accessible."},"is_connecting":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Connecting","description":"Whether rooms of this type can connect."},"is_virtual":{"type":"boolean","title":"Is Virtual","description":"True for a virtual room type that resells other types' physical rooms rather than owning its own.","default":false},"rate_derivation":{"anyOf":[{"$ref":"#/components/schemas/RoomTypeRateDerivation"},{"type":"null"}],"description":"Where this room type's default nightly rate comes from, and the bounds a rate write on it is held to. Null only for a room type with no rate configuration at all."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"UTC time this room type or its rate configuration last changed — the later of the two, so a change to `rate_derivation` moves it as well. Per-day custom rates are not included: they are not part of this resource, and the rates read carries their own `updated_at`."}},"type":"object","required":["id"],"title":"RoomTypeOut","description":"A sellable room category.\n\n``max_adults`` / ``max_children`` are the room type's capacity limits,\none per dimension. Null means the dimension is unconstrained.\n``max_guests`` is the legacy combined total, kept for compatibility\nduring the capacity transition — it reads through to ``max_adults`` and\nwill be removed after a documented deprecation window. The limits are\nalso the baseline for the rate plan's per-adult/per-child adjustments,\nwhich charge only for guests beyond them."},"RoomTypeRate":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public room-type ID this rate belongs to.","examples":["rmt_5q8w1z"]},"rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Rate","description":"Effective nightly rate in the property's currency; null when the type has no rate on this date (no custom rate for the date and no base rate to derive one from). Every live room type has an entry on every date, so a null rate is never a missing entry."},"min_stay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Stay","description":"Minimum stay in nights arriving on this date."},"can_checkin":{"type":"boolean","title":"Can Checkin","description":"Whether arrivals are allowed on this date.","default":true},"can_checkout":{"type":"boolean","title":"Can Checkout","description":"Whether departures are allowed on this date.","default":true},"is_custom":{"type":"boolean","title":"Is Custom","description":"True when a per-day custom rate row overrides the derived rate.","default":false},"min_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Rate","description":"The binding minimum nightly rate for writes to this room type (property currency), resolved up the derived-rate chain exactly as the write path enforces it — a derived type without its own minimum shows the ancestor minimum that actually binds it. Null when no minimum is configured anywhere up the chain. The minimum does not vary by date."},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At","description":"UTC last-modified time of the custom rate row; only present when `is_custom` is true (derived rates are computed on read and have no per-day timestamp)."}},"type":"object","required":["room_type_id"],"title":"RoomTypeRate","description":"One room type's effective rate on one date — the same number the\ndashboard calendar shows (custom overrides, derivation chain, seasonal/\nweekend and occupancy modifiers all applied). Channel adjustments are not\nincluded; they are per-OTA.\n\n``updated_at`` is the last-modified time of the underlying per-day custom\nrate row and is only present when ``is_custom`` is true. A rate derived\nfrom the room type's base rate (plus modifiers) has no per-day row — the\nnumber is computed on read, so there is no per-day timestamp to report —\nand ``updated_at`` is null."},"RoomTypeRateAdjustmentType":{"type":"string","enum":["percentage","fixed"],"title":"RoomTypeRateAdjustmentType","description":"How a derived room type's adjustment applies to its parent's rate.\n\nDeliberately the *rates* layer's vocabulary, matching the two strings\n``RatePlanOut.adjustment_type`` already publishes, so one reader sees one\npair of words everywhere rates are adjusted. Channels keep their own\n``PERCENT``/``FLAT`` pair — a different layer, documented as such on\n``ChannelRateDifferenceType``. Storage uses a third spelling (``%``/``$``\non ``room_rates.room_type_denomination``); the serializer maps it\nexplicitly rather than transforming the raw string, so a new storage\nvalue surfaces as a mapping gap instead of leaking outward."},"RoomTypeRateDerivation":{"properties":{"is_derived":{"type":"boolean","title":"Is Derived","description":"True when this room type's default rate is computed from another room type's rate; false when it prices itself."},"derived_from_room_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Derived From Room Type Id","description":"Public ID of the room type this one derives its rate from — the direct parent only, even in a longer chain. Null on a master, and also null when `is_derived` is true but the parent is no longer a live room type: the derivation is real but cannot be named, and the rates read reports no rate for these dates.","examples":["rmt_5q8w1z"]},"adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjustment Amount","description":"Signed adjustment applied to the parent's rate, interpreted per `adjustment_type`. Null on a master, or when a derived type has no adjustment configured (its rate then equals its parent's).","examples":[10.0]},"adjustment_type":{"anyOf":[{"$ref":"#/components/schemas/RoomTypeRateAdjustmentType"},{"type":"null"}],"description":"How `adjustment_amount` applies: `percentage` of the parent's rate, or `fixed` amount in the property's currency. Null whenever `adjustment_amount` is."},"base_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Base Rate","description":"The room type's own default nightly rate in the property's currency. Null on a derived type, which has no rate of its own — resolve its effective number from the rates read instead of recomputing the chain yourself."},"min_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Min Rate","description":"The binding minimum nightly rate for writes to this room type, resolved up the derivation chain exactly as the write path enforces it — a derived type without its own minimum reports the ancestor minimum that actually binds it. Null when no minimum is configured anywhere up the chain. Identical in meaning to `min_rate` on the rates read."},"max_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Max Rate","description":"The room type's own configured maximum nightly rate. Advisory only — unlike `min_rate`, nothing rejects a write above it, and it is not resolved up the chain. Null when unconfigured."}},"type":"object","required":["is_derived"],"title":"RoomTypeRateDerivation","description":"Where a room type's default nightly rate comes from, and the bounds a\nrate write on it is held to.\n\nThis describes the room type's *default* rate only. A per-day custom rate\noverrides it for that date — the rates read reports which is in effect per\ndate via ``RoomTypeRate.is_custom``.\n\nTwo shapes, distinguished by ``is_derived``:\n\n- A **master** (``is_derived: false``) prices itself: ``base_rate`` is its\n  own nightly rate and ``derived_from_room_type_id`` is null.\n- A **derived** type (``is_derived: true``) computes its rate as its\n  parent's rate plus ``adjustment_amount``, interpreted per\n  ``adjustment_type``. Its own ``base_rate`` is null, because it has no\n  rate of its own to report.\n\nChains are allowed: a derived type can itself be another's parent. Only the\n*direct* parent appears here — walk ``derived_from_room_type_id`` to\nreconstruct the chain.\n\nBecause derivation cascades, the lineage is also what tells you whether a\nrate you write will stay written: a write to a parent that cascades\nrecomputes its descendants."},"SoldVia":{"type":"string","enum":["booking_engine","self_checkin","upsell_link","staff","channel"],"title":"SoldVia","description":"The surface a product on a booking was sold on. `channel` is a line\nan OTA sent with the booking (no product of ours behind it)."},"SourcesItemOut":{"properties":{"name":{"type":"string","title":"Name","description":"The source's name (channel, direct, …)."},"rooms_sold":{"type":"integer","title":"Rooms Sold","description":"Room-nights sold through the source."},"revenue":{"type":"number","title":"Revenue","description":"Revenue through the source, property currency."},"commission":{"type":"number","title":"Commission","description":"The property's commission cost for the source."}},"type":"object","required":["name","rooms_sold","revenue","commission"],"title":"SourcesItemOut","description":"Per-source totals. The commission figure is the property's own\ncomputed cost; commission *configuration* (percentages, withheld flags)\nand the OTA/property collect split are deliberately pruned."},"UpdateWebhookEndpointParams":{"properties":{"url":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Url","description":"New receiver URL (HTTPS, publicly reachable host)."},"event_types":{"anyOf":[{"items":{"type":"string"},"type":"array","minItems":1},{"type":"null"}],"title":"Event Types","description":"Replacement subscription list (exact types or family wildcards)."},"is_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Enabled","description":"Toggle delivery. Re-enabling clears an auto-disable reason, so a fixed receiver starts getting events again."}},"type":"object","title":"UpdateWebhookEndpointParams","description":"Partial update: only fields present in the request are applied.\nSetting ``is_enabled`` toggles delivery; re-enabling clears an\nauto-disable reason, so a fixed receiver starts getting events again."},"V1AddBookingProductIn":{"properties":{"product_id":{"type":"string","title":"Product Id","description":"Public `prd_` ID of the product to add.","examples":["prd_x7Km2p9Q"]},"quantity":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Quantity","description":"Units to charge.","examples":[2]},"unit_price":{"type":"number","maximum":99999.99,"minimum":0.0,"title":"Unit Price","description":"Price per unit, before tax. Omit it to charge the product's `price`; required when the product has none.","examples":[25.0]},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes","description":"Notes for the line. Required when the product's `is_note_required` is true."}},"type":"object","required":["product_id","quantity"],"title":"V1AddBookingProductIn","description":"Charge a product on a booking."},"V1BookingGuestIn":{"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name","description":"First (given) name. Required."},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"Last (family) name."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Email address."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Phone number."}},"type":"object","required":["first_name"],"title":"V1BookingGuestIn","description":"An inline guest on a booking create — resolved to an existing profile\non matching contact details, otherwise created."},"V1BookingMessageOut":{"properties":{"sent":{"items":{"type":"string","enum":["sms","email","ota"]},"type":"array","title":"Sent","description":"The channels the message went out on."},"skipped":{"items":{"$ref":"#/components/schemas/V1BookingMessageSkip"},"type":"array","title":"Skipped","description":"Channels requested but not sent, each with its reason."},"body":{"type":"string","title":"Body","description":"The message as sent, variables rendered."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject","description":"The email subject as sent, or null when none was given."}},"type":"object","required":["sent","skipped","body","subject"],"title":"V1BookingMessageOut","description":"What was sent. At least one channel is always in `sent`; a request\nwhere every channel was skipped is a 409 instead."},"V1BookingMessageSkip":{"properties":{"channel":{"type":"string","enum":["sms","email","ota"],"title":"Channel","description":"The channel skipped."},"reason":{"type":"string","title":"Reason","description":"Why it was skipped: the channel is off for the property, the property has no sender number, the guest has opted out of texts, the address is an OTA relay, or the reservation's booking channel can't be messaged."}},"type":"object","required":["channel","reason"],"title":"V1BookingMessageSkip","description":"A channel the message did not go out on, and why."},"V1BookingRoomIn":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public ID of the room type to book.","examples":["rmt_5q8w1z"]},"rate_plan_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rate Plan Id","description":"Public ID of the rate plan to price with; omit for the property's standard plan."},"room_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Id","description":"Public ID of a specific physical room to assign; omit to leave assignment to the front desk."},"adults":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Adults","description":"Adults in this room; falls back to the booking-level count."},"children":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Children","description":"Children in this room; falls back to the booking-level count."},"custom_rate":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Custom Rate","description":"Nightly rate override in the property's currency; omit to price from the rate plan."}},"type":"object","required":["room_type_id"],"title":"V1BookingRoomIn","description":"One room on a booking create."},"V1ChannelAdjustmentsDeleteIn":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date","description":"First date to clear, property-local."},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date","description":"Last date to clear, inclusive; omit for the single `start_date`."},"channel_ids":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Channel Ids","description":"Public IDs of the channels to clear."},"room_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type Id","description":"Public room type ID (`rmt_`): clear only that room type's rows on the given channels. Omitted, the channel-wide row and every room type's row are cleared."}},"type":"object","required":["start_date","channel_ids"],"title":"V1ChannelAdjustmentsDeleteIn","description":"Clear the given channels' daily adjustment rows over\n``[start_date, end_date]`` (``end_date`` omitted means the single\n``start_date``)."},"V1ChannelAdjustmentsWriteIn":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date","description":"First date to write, property-local."},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date","description":"Last date to write, inclusive; omit for the single `start_date`."},"adjustments":{"items":{"$ref":"#/components/schemas/V1ChannelDailyAdjustmentIn"},"type":"array","minItems":1,"title":"Adjustments","description":"One entry per channel to change."}},"type":"object","required":["start_date","adjustments"],"title":"V1ChannelAdjustmentsWriteIn","description":"Daily per-channel adjustments over ``[start_date, end_date]``\n(``end_date`` omitted means the single ``start_date``)."},"V1ChannelDailyAdjustmentIn":{"properties":{"channel_id":{"type":"string","title":"Channel Id","description":"Public channel ID to adjust."},"room_type_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Room Type Id","description":"Public room type ID (`rmt_`) to price on this channel. Set, the entry writes that room type's own daily row, which wins over the channel-wide row for the date; omitted, it writes the channel-wide row. A null `rate_difference` with a room type clears only that room type's rows."},"rate_difference":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":-99.0},{"type":"null"}],"title":"Rate Difference","description":"The adjustment value. Required but nullable — explicit null clears the channel's daily rows for the window (lower layers show through; with `room_type_id`, only that room type's rows); 0 writes a real zero-offset that shadows them."},"rate_difference_type":{"$ref":"#/components/schemas/ChannelRateDifferenceType","description":"`PERCENT` or `FLAT` (flat is in the property's currency).","default":"PERCENT"}},"type":"object","required":["channel_id","rate_difference"],"title":"V1ChannelDailyAdjustmentIn","description":"One channel's daily adjustment in a range write.\n\n``rate_difference`` is required but nullable, and NULL is not 0: an\nexplicit null clears the channel's daily rows for the window (the\nglobal / property-wide layers show through again), while an explicit 0\nwrites a real zero-offset row that shadows them. The vocabulary is the\nchannel layer's ``PERCENT``/``FLAT`` — the room-type ``%``/``$`` labels\nare rejected as validation errors, never coerced."},"V1ChannelRateSettingsIn":{"properties":{"rate_difference":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":-99.0},{"type":"null"}],"title":"Rate Difference","description":"The adjustment value. Required but nullable — explicit null clears the global layer (the property-wide fallback shows through); 0 is a configured zero-offset that shadows it."},"rate_difference_type":{"$ref":"#/components/schemas/ChannelRateDifferenceType","description":"`PERCENT` or `FLAT` (flat is in the property's currency).","default":"PERCENT"}},"type":"object","required":["rate_difference"],"title":"V1ChannelRateSettingsIn","description":"A channel's global (every-future-date) adjustment. ``rate_difference``\nis required but nullable: null clears the channel's global layer so the\nproperty-wide fallback shows through; 0 is a configured zero-offset that\nshadows it."},"V1CreateBookingIn":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date","description":"Check-in date — a property-local calendar date.","examples":["2026-09-01"]},"end_date":{"type":"string","format":"date","title":"End Date","description":"Check-out date — a property-local calendar date, after `start_date`.","examples":["2026-09-04"]},"rooms":{"items":{"$ref":"#/components/schemas/V1BookingRoomIn"},"type":"array","minItems":1,"title":"Rooms","description":"Rooms to book; at least one."},"guests":{"anyOf":[{"items":{"$ref":"#/components/schemas/V1BookingGuestIn"},"type":"array"},{"type":"null"}],"title":"Guests","description":"Inline guests. At least one guest is required across `guests` and `guest_ids`."},"guest_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Guest Ids","description":"Existing guests by public `gst_` ID."},"adults":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Adults","description":"Booking-level adult count, used by rooms without their own."},"children":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Children","description":"Booking-level child count, used by rooms without their own."}},"type":"object","required":["start_date","end_date","rooms"],"title":"V1CreateBookingIn","description":"Create a reservation. Dates are property-local calendar dates; at\nleast one room and one guest (inline or by ``gst_`` reference) are\nrequired — the same rule the PMS enforces."},"V1CreateGuestIn":{"properties":{"first_name":{"type":"string","maxLength":100,"minLength":1,"title":"First Name","description":"First (given) name. Required."},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name","description":"Middle name."},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"Last (family) name."},"suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suffix","description":"Name suffix (Jr., III, …)."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Email address."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Phone number."},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street","description":"Street address, line 1."},"street_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street 2","description":"Street address, line 2."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City."},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State, province, or region."},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"Postal or ZIP code."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country."},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob","description":"Date of birth."}},"type":"object","required":["first_name"],"title":"V1CreateGuestIn","description":"A new guest profile."},"V1CreateProductIn":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Display name, unique among the property's products. Required.","examples":["Parking"]},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"The property's own code for the product."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Free-text description."},"price":{"anyOf":[{"type":"number","maximum":99999.99,"minimum":0.0},{"type":"null"}],"title":"Price","description":"Default unit price, before tax, in the property's currency. Leave it null to price the product each time it is added to a booking.","examples":[25.0]},"is_note_required":{"type":"boolean","title":"Is Note Required","description":"Whether adding the product to a booking requires `notes`.","default":false},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"The product's photo: an `https://` or `http://` address."}},"type":"object","required":["name"],"title":"V1CreateProductIn","description":"A new product. Taxes are dashboard-managed and not writable here."},"V1CreateRatePlanIn":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Display name. Required.","examples":["Non-refundable"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Free-text description shown to guests."},"pricing":{"anyOf":[{"type":"string","enum":["derived","flat"]},{"type":"null"}],"title":"Pricing","description":"Pricing mode: derived plans adjust the room type's rate by the `adjustment_*` fields; flat plans charge per-room-type rates configured in the dashboard. Omitted defaults to `derived`."},"adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjustment Amount","description":"For derived plans: the adjustment applied to the room type's nightly rate, interpreted per `adjustment_type`."},"adjustment_type":{"anyOf":[{"type":"string","enum":["fixed","percentage"]},{"type":"null"}],"title":"Adjustment Type","description":"How `adjustment_amount` applies: `percentage` of the nightly rate, or a `fixed` amount in the property's currency."},"adult_adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adult Adjustment Amount","description":"Flat amount (property currency) added per night for each adult beyond the room type's `max_adults` — never from the first guest. Derived-pricing plans only; null means unconfigured."},"child_adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Child Adjustment Amount","description":"Flat amount (property currency) added per night for each child beyond the room type's `max_children`. Derived-pricing plans only; null means unconfigured."},"is_tax_inclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Tax Inclusive","description":"Whether the plan's rates already include tax. Omitted or null leaves the plan with no setting of its own, so it inherits the property-level setting on every read."},"min_stay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Stay","description":"Minimum stay length in nights, if restricted."},"max_stay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Stay","description":"Maximum stay length in nights, if restricted."},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Whether the plan is offered. Omitted defaults to true."}},"type":"object","required":["name"],"title":"V1CreateRatePlanIn","description":"A new rate plan. Fields mirror the rate-plan read (``RatePlanOut``);\nthe writable surface is the plan's pricing configuration and\nrestrictions. Room-type mappings (including flat per-room-type rates),\ncancellation policies, payment methods, channel mappings, and promo/group\ncodes remain dashboard-managed and are not writable here."},"V1CreatedWebhookEndpointOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public webhook-endpoint ID, prefixed `whe_`.","examples":["whe_184"]},"url":{"type":"string","title":"Url","description":"The receiver URL deliveries POST to."},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","description":"Subscribed event types (exact names and family wildcards)."},"is_enabled":{"type":"boolean","title":"Is Enabled","description":"Whether deliveries are being sent."},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason","description":"Why the endpoint was disabled (set on auto-disable after persistent failures); null while enabled."},"previous_secret_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Secret Expires At","description":"While a secret rotation's grace window is open, when the previous signing secret stops being accepted (UTC); null otherwise. A rotation is refused until this has passed."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When registered (UTC)."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When last changed (UTC)."},"secret":{"type":"string","title":"Secret","description":"Signing secret for verifying delivery signatures. Shown only here, at creation — store it now; it cannot be retrieved again."}},"type":"object","required":["id","url","event_types","is_enabled","created_at","updated_at","secret"],"title":"V1CreatedWebhookEndpointOut","description":"The create response — the only response that ever carries the signing\nsecret."},"V1CursorPageMeta":{"properties":{"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Opaque cursor for the next page, `null` on the last page. Unlike `next_page_marker`, pass this value back as the `cursor` query parameter — it is the resume point, not just an indicator that more exists."}},"type":"object","title":"V1CursorPageMeta","description":"Pagination metadata for a cursor-paged v1 list response."},"V1CursorPage_V1EventOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/V1EventOut"},"type":"array","title":"Data","description":"This page's items, oldest first."},"meta":{"$ref":"#/components/schemas/V1CursorPageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1CursorPage[V1EventOut]"},"V1DailyInventoryLimitEntryIn":{"properties":{"channel_id":{"type":"string","title":"Channel Id","description":"Public channel ID to cap."},"remaining":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Remaining","description":"How many rooms the channel should have available right now — the stored cap becomes `sold + remaining`. Explicit null removes the channel's daily cap for the date."}},"type":"object","required":["channel_id"],"title":"V1DailyInventoryLimitEntryIn","description":"One channel's requested availability for the daily write.\n\n``remaining`` is \"how many rooms should be available to this channel right\nnow\" — the writer stores ``sold + remaining`` as the durable cap, so the\nchannel keeps exactly this much headroom regardless of what it has already\nsold. ``null`` removes the channel's daily cap for the date."},"V1DailyInventoryLimitsIn":{"properties":{"date":{"type":"string","format":"date","title":"Date","description":"The date to cap, property-local."},"limits":{"items":{"$ref":"#/components/schemas/V1DailyInventoryLimitEntryIn"},"type":"array","minItems":1,"title":"Limits","description":"One entry per channel to change."}},"type":"object","required":["date","limits"],"title":"V1DailyInventoryLimitsIn","description":"Per-date, per-channel inventory caps for one room type."},"V1DeletedOut":{"properties":{"deleted":{"type":"boolean","title":"Deleted","description":"Always true.","default":true}},"type":"object","title":"V1DeletedOut","description":"Acknowledgement body for v1 DELETE responses."},"V1Error":{"properties":{"code":{"type":"string","title":"Code","description":"Stable machine-readable error code, e.g. `not_found`, `validation_error`, `missing_scope`, `rate_limited`, `precondition_failed`, `idempotency_key_reuse`. Branch on this, never on `message`.","examples":["validation_error"]},"message":{"type":"string","title":"Message","description":"Human-readable explanation, safe to surface in logs and UIs.","examples":["One or more request fields are invalid."]},"request_id":{"type":"string","title":"Request Id","description":"Correlation id for this request — the same value as the `X-Request-ID` response header. Quote it when contacting support.","examples":["9d2f4f3e-6f68-4c22-9a4e-1c3f8f2f9a10"]},"fields":{"anyOf":[{"items":{"$ref":"#/components/schemas/V1ErrorField"},"type":"array"},{"type":"null"}],"title":"Fields","description":"Per-field details, present only when `code` is `validation_error`."}},"type":"object","required":["code","message","request_id"],"title":"V1Error","description":"The error detail inside the v1 envelope."},"V1ErrorField":{"properties":{"field":{"type":"string","title":"Field","description":"Dot path of the invalid field as the client sent it, e.g. `rooms.0.room_type_id`.","examples":["start_date"]},"message":{"type":"string","title":"Message","description":"Human-readable reason this field was rejected.","examples":["Input should be a valid date"]}},"type":"object","required":["field","message"],"title":"V1ErrorField","description":"One invalid request field, present only on validation failures."},"V1ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/V1Error","description":"The error detail."}},"type":"object","required":["error"],"title":"V1ErrorResponse","description":"The single error envelope every v1 failure uses — auth, validation,\nnot-found, rate limit, conflict, and server fault alike. Documentation\nmirror of ``vacant.routers.v1.error_body``; the handlers build the JSON\ndirectly, so a shape change there must be reflected here."},"V1EventOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public event ID, prefixed `evt_` — the same value the delivery payload carries, and the dedupe key to reconcile a replay against events already processed.","examples":["evt_44127"]},"type":{"type":"string","title":"Type","description":"The event type, e.g. `booking.created`.","examples":["booking.created"]},"created":{"type":"integer","title":"Created","description":"When the event occurred, as a Unix timestamp (UTC).","examples":[1755172800]},"data":{"additionalProperties":true,"type":"object","title":"Data","description":"The event's summary payload, always including `object_id` (the public ID of the entity it is about). Deliberately a summary, not a full entity — fetch current state from the API when you need it. For the coalesced `availability.changed` / `rate.changed` digests this is a re-fetch signal bounding a date span, not a per-change diff.","examples":[{"object_id":"bkg_x7Km2p9Q","status":"RESERVED"}]}},"type":"object","required":["id","type","created","data"],"title":"V1EventOut","description":"One event, in the exact envelope a delivery POSTs.\n\nSame four keys, same values, built by the same function the dispatcher\nsigns (``dispatch.event_envelope``) — so a replay read from this surface\ncan be handed to the handler that processes live deliveries without a\nsecond parser. The signature headers are the only thing a replay lacks:\nthe caller fetched it over its own authenticated key, so there is\nnothing to verify."},"V1EventRedeliveryOut":{"properties":{"event_id":{"type":"string","title":"Event Id","description":"Public `evt_` ID of the event queued for redelivery.","examples":["evt_44127"]},"deliveries":{"items":{"$ref":"#/components/schemas/V1WebhookDeliveryOut"},"type":"array","title":"Deliveries","description":"The deliveries now queued — newly created where the endpoint never received this event, re-queued where it did. Empty when no enabled endpoint subscribes to the event's type."}},"type":"object","required":["event_id","deliveries"],"title":"V1EventRedeliveryOut","description":"What a replay queued: the event, and one delivery row per endpoint\nthat is subscribed to it and enabled right now."},"V1Item_BookingDetailOut_":{"properties":{"data":{"$ref":"#/components/schemas/BookingDetailOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[BookingDetailOut]"},"V1Item_BookingProductOut_":{"properties":{"data":{"$ref":"#/components/schemas/BookingProductOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[BookingProductOut]"},"V1Item_ChannelRateSettingsOut_":{"properties":{"data":{"$ref":"#/components/schemas/ChannelRateSettingsOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[ChannelRateSettingsOut]"},"V1Item_GuestOut_":{"properties":{"data":{"$ref":"#/components/schemas/GuestOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[GuestOut]"},"V1Item_ProductOut_":{"properties":{"data":{"$ref":"#/components/schemas/ProductOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[ProductOut]"},"V1Item_PropertyOut_":{"properties":{"data":{"$ref":"#/components/schemas/PropertyOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[PropertyOut]"},"V1Item_RatePlanOut_":{"properties":{"data":{"$ref":"#/components/schemas/RatePlanOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[RatePlanOut]"},"V1Item_RoomCloseOut_":{"properties":{"data":{"$ref":"#/components/schemas/RoomCloseOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[RoomCloseOut]"},"V1Item_RoomOut_":{"properties":{"data":{"$ref":"#/components/schemas/RoomOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[RoomOut]"},"V1Item_RoomTypeOut_":{"properties":{"data":{"$ref":"#/components/schemas/RoomTypeOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[RoomTypeOut]"},"V1Item_V1BookingMessageOut_":{"properties":{"data":{"$ref":"#/components/schemas/V1BookingMessageOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[V1BookingMessageOut]"},"V1Item_V1CreatedWebhookEndpointOut_":{"properties":{"data":{"$ref":"#/components/schemas/V1CreatedWebhookEndpointOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[V1CreatedWebhookEndpointOut]"},"V1Item_V1DeletedOut_":{"properties":{"data":{"$ref":"#/components/schemas/V1DeletedOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[V1DeletedOut]"},"V1Item_V1EventOut_":{"properties":{"data":{"$ref":"#/components/schemas/V1EventOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[V1EventOut]"},"V1Item_V1EventRedeliveryOut_":{"properties":{"data":{"$ref":"#/components/schemas/V1EventRedeliveryOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[V1EventRedeliveryOut]"},"V1Item_V1RotatedWebhookSecretOut_":{"properties":{"data":{"$ref":"#/components/schemas/V1RotatedWebhookSecretOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[V1RotatedWebhookSecretOut]"},"V1Item_V1WebhookDeliveryOut_":{"properties":{"data":{"$ref":"#/components/schemas/V1WebhookDeliveryOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[V1WebhookDeliveryOut]"},"V1Item_V1WebhookEndpointOut_":{"properties":{"data":{"$ref":"#/components/schemas/V1WebhookEndpointOut","description":"The resource."}},"type":"object","required":["data"],"title":"V1Item[V1WebhookEndpointOut]"},"V1PageMeta":{"properties":{"next_page_marker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Marker","description":"Present when more items exist, `null` on the last page. It is an indicator, not a cursor parameter — page by advancing `offset` by your page size."}},"type":"object","title":"V1PageMeta","description":"Pagination metadata for a v1 list response."},"V1Page_BookingProductOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BookingProductOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[BookingProductOut]"},"V1Page_ChannelOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ChannelOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[ChannelOut]"},"V1Page_GuestOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/GuestOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[GuestOut]"},"V1Page_ProductOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProductOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[ProductOut]"},"V1Page_RateHistoryEntryOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RateHistoryEntryOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[RateHistoryEntryOut]"},"V1Page_RatePlanOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RatePlanOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[RatePlanOut]"},"V1Page_RoomOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RoomOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[RoomOut]"},"V1Page_RoomTypeOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/RoomTypeOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[RoomTypeOut]"},"V1Page_V1WebhookDeliveryOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/V1WebhookDeliveryOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[V1WebhookDeliveryOut]"},"V1Page_V1WebhookEndpointOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/V1WebhookEndpointOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1PageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1Page[V1WebhookEndpointOut]"},"V1RateBatchIn":{"properties":{"items":{"items":{"$ref":"#/components/schemas/V1RateWriteIn"},"type":"array","maxItems":200,"minItems":1,"title":"Items","description":"The writes to apply, each exactly a single rates PUT body. At most 200 items, applied in order and all in one transaction: if any item is rejected, nothing at all is written. Each item spans at most 92 days, and the union of every item's window must itself fit in 92 days — the request's `If-Match` and its read-back are that one window. Two items writing the same room type on overlapping dates are rejected, counting the derived room types a `cascade` item also writes. One batch writes at most 5000 rates in total (each item's dates × the room types it writes). Rates only: room-type and channel inventory caps have their own endpoints and are not writable here."}},"type":"object","required":["items"],"title":"V1RateBatchIn","description":"Several custom calendar rate writes applied as ONE transaction — the\ngrid a revenue system or channel manager pushes, in one request instead of\none request per room type per band."},"V1RateClearIn":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public ID of the room type to clear.","examples":["rmt_5q8w1z"]},"start_date":{"type":"string","format":"date","title":"Start Date","description":"First date to clear — a property-local calendar date."},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date","description":"Last date to clear, inclusive; omit for the single `start_date`."},"cascade":{"type":"boolean","title":"Cascade","description":"When true, also clear the custom rates of every room type whose rate derives from this one (transitively) on the same dates, so the whole derivation chain falls back to its configured pricing.","default":false}},"type":"object","required":["room_type_id","start_date"],"title":"V1RateClearIn","description":"Clear the custom calendar rates of a room type over a date range, so\nthe dates fall back to the base/derived rate. Cascade also clears the\nroom types deriving from this one."},"V1RateWriteIn":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public ID of the room type to write.","examples":["rmt_5q8w1z"]},"start_date":{"type":"string","format":"date","title":"Start Date","description":"First date to write — a property-local calendar date."},"end_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"End Date","description":"Last date to write, inclusive; omit for the single `start_date`."},"rate":{"type":"number","exclusiveMinimum":0.0,"title":"Rate","description":"Nightly rate in the property's currency. A rate below the binding minimum is rejected with a 400 `validation_error` and nothing is written — unless `overwrite_min_rate` is true, in which case the minimum is stored instead."},"overwrite_min_rate":{"type":"boolean","title":"Overwrite Min Rate","description":"When true, a rate below the room type's binding minimum is stored at the minimum; the response's read-back shows the written dates holding each entry's `min_rate`. When false (the default), a below-minimum rate rejects the whole request with a 400 `validation_error` and nothing is written.","default":false},"min_stay":{"type":"integer","minimum":1.0,"title":"Min Stay","description":"Minimum stay in nights for arrivals on the written dates. Omit it to keep each date's stored minimum (a date with none stored gets 1); send 1 to remove a minimum."},"can_checkin":{"type":"boolean","title":"Can Checkin","description":"Whether arrivals are allowed on the written dates. Omit it to keep each date's stored value (a date with none stored allows arrivals)."},"can_checkout":{"type":"boolean","title":"Can Checkout","description":"Whether departures are allowed on the written dates. Omit it to keep each date's stored value (a date with none stored allows departures)."},"cascade":{"type":"boolean","title":"Cascade","description":"When true, recompute derived room types' rates from this write, exactly as the dashboard calendar does. A restriction the request sends is copied to every derived type; one it omits is kept per type.","default":false}},"type":"object","required":["room_type_id","start_date","rate"],"title":"V1RateWriteIn","description":"Custom calendar rate for a room type over a date range. Cascade\nrecomputes derived room types' rates from this one, exactly as the\ncalendar does."},"V1RoomCloseIn":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date","description":"First closed night — a property-local calendar date."},"end_date":{"type":"string","format":"date","title":"End Date","description":"End of the close, exclusive — the room is sellable again on this date."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason","description":"Free-text reason, shown to staff."}},"type":"object","required":["start_date","end_date"],"title":"V1RoomCloseIn","description":"Close the addressed room to sale for [start_date, end_date) in\nproperty-local dates. The room is named by the path, matching the\ndashboard's own room-close write."},"V1RoomTypeCapacityIn":{"properties":{"max_adults":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Adults","description":"New adult capacity limit; explicit null clears the limit. Omit to keep the current value."},"max_children":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Children","description":"New child capacity limit; explicit null clears the limit. Omit to keep the current value."},"max_guests":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Guests","description":"Transitional alias for `max_adults` while the legacy combined total is retired — an explicit `max_adults` in the same payload wins. Prefer `max_adults`."}},"type":"object","title":"V1RoomTypeCapacityIn","description":"Partial capacity update for one room type — the only room-type write\non the public surface, deliberately limited to the capacity limits.\n\nOnly fields present in the payload change; an explicitly-null field\nCLEARS its limit (\"no limit\" on that dimension). ``max_guests`` is a\ntransitional alias while the legacy total is retired: writing it writes\n``max_adults`` instead, an explicit ``max_adults`` in the same payload\nwins, and the resolved value is mirrored onto the legacy column for\nnot-yet-migrated readers. Bounds are enforced by the shared\noccupancy-split validator, not here, so the invariants match the\ndashboard path."},"V1RoomTypeLimitEntryIn":{"properties":{"room_type_id":{"type":"string","title":"Room Type Id","description":"Public room-type ID to cap."},"limit":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Limit","description":"Raw cap against the physical room count — no sold offset, unlike the daily `remaining`. Explicit null removes the cap."}},"type":"object","required":["room_type_id"],"title":"V1RoomTypeLimitEntryIn","description":"One room type's standing cap.\n\nUnlike the daily ``remaining``, ``limit`` is a raw cap measured against\nthe physical room count — there is no sold offset. ``null`` removes the\ncap for that room type."},"V1RoomTypeLimitsIn":{"properties":{"limits":{"items":{"$ref":"#/components/schemas/V1RoomTypeLimitEntryIn"},"type":"array","minItems":1,"title":"Limits","description":"One entry per room type to change."}},"type":"object","required":["limits"],"title":"V1RoomTypeLimitsIn","description":"Standing per-room-type caps (blanket channel caps, or the booking\nengine's own caps)."},"V1RoomUpdateIn":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"New room name or number. Surrounding whitespace is trimmed, and it must be unique on the property, compared ignoring case — `Suite A` conflicts with an existing `suite a`. Requires `properties:write`.","examples":["204"]},"housekeeping_status":{"anyOf":[{"$ref":"#/components/schemas/HousekeepingStatus"},{"type":"null"}],"description":"New housekeeping status: `clean`, `dirty`, or `cleaning`. Requires `housekeeping:write`.","examples":["clean"]}},"type":"object","title":"V1RoomUpdateIn","description":"Partial update of one room: its name, its housekeeping status, or both.\n\nOnly fields present in the payload change. Neither field can be cleared,\nso an explicit null is rejected rather than read as \"leave alone\"."},"V1RotatedWebhookSecretOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public webhook-endpoint ID, prefixed `whe_`.","examples":["whe_184"]},"secret":{"type":"string","title":"Secret","description":"The new signing secret. Shown only here — store it now; it cannot be retrieved again.","examples":["whsec_kR3n..."]},"previous_secret_expires_at":{"type":"string","format":"date-time","title":"Previous Secret Expires At","description":"When the outgoing secret stops being accepted (UTC). Until then every delivery is signed with both secrets, so the `Vacant-Signature` header carries two `v1` values and either one verifies.","examples":["2026-09-04T12:00:00"]}},"type":"object","required":["id","secret","previous_secret_expires_at"],"title":"V1RotatedWebhookSecretOut","description":"The rotation response — the new signing secret, shown once, and when\nthe outgoing one stops being honoured.\n\nA dedicated shape, not the endpoint shape with a secret bolted on: every\nendpoint serializer is guarded against ever emitting ``secret``, and\nloosening one of them to serve rotation would give that up on every read\nof every endpoint."},"V1SendBookingMessageIn":{"properties":{"message":{"type":"string","maxLength":5000,"minLength":1,"title":"Message","description":"The message to send. Supports the scheduled-message variables `{{guest_full_name}}`, `{{guest_first_name}}`, `{{guest_last_name}}`, `{{property_name}}`, `{{arrival_date}}`, `{{departure_date}}`, `{{room_type}}`, `{{room_types}}`, `{{confirmation_number}}`, `{{self_checkin_link}}` (the guest's short self check-in link) and `{{upsell_link}}` (a short link to add products to the stay), each minted on first use and reused after.","examples":["Hi {{guest_first_name}}, check in before you arrive: {{self_checkin_link}}"]},"subject":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Subject","description":"Email subject, with the same variables available. Used only when `email` is given; a text has no subject. Null means the property's default subject.","examples":["Your stay at {{property_name}}"]},"channels":{"items":{"type":"string","enum":["sms","email","ota"]},"type":"array","minItems":1,"title":"Channels","description":"Where to send it: `sms` texts the guest's phone number on file, `email` emails the guest's address on file, `ota` messages the guest through the booking channel's messenger (Airbnb, Booking.com, Expedia), joining the reservation's existing conversation or starting one. Give several to send on each. The booking's primary guest is always the recipient.","examples":[["sms"],["sms","email"],["ota"]]}},"type":"object","required":["message","channels"],"title":"V1SendBookingMessageIn","description":"A message to send the booking's primary guest right now, rendered with\nthe same variables a scheduled message uses."},"V1SyncPageMeta":{"properties":{"next_page_marker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Marker","description":"Present when more items exist, `null` on the last page. An indicator, not a parameter: outside a sync, page by advancing `offset`; during a sync, pass `next_cursor` back."},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor","description":"Resume point for an incremental sync — present on every response to a sync request (`updated_since` or `cursor`), including an empty one, and `null` otherwise. Store it and pass it back unchanged as `cursor`, both to fetch the next page and to start your next poll. Opaque; a value this API did not issue returns 400."}},"type":"object","title":"V1SyncPageMeta","description":"Pagination metadata for a list that can be walked as a change feed."},"V1SyncPage_BookingOut_":{"properties":{"data":{"items":{"$ref":"#/components/schemas/BookingOut"},"type":"array","title":"Data","description":"This page's items."},"meta":{"$ref":"#/components/schemas/V1SyncPageMeta","description":"Pagination metadata."}},"type":"object","required":["data","meta"],"title":"V1SyncPage[BookingOut]"},"V1UpdateBookingIn":{"properties":{"start_date":{"type":"string","format":"date","title":"Start Date","description":"New check-in date — a property-local calendar date."},"end_date":{"type":"string","format":"date","title":"End Date","description":"New check-out date — a property-local calendar date."}},"type":"object","required":["start_date","end_date"],"title":"V1UpdateBookingIn","description":"Whole-stay date change. Both dates are required — partial updates\nwould make multi-room semantics ambiguous; room reassignment is a\nseparate, future surface."},"V1UpdateBookingProductIn":{"properties":{"quantity":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"Quantity","description":"Units to charge."},"unit_price":{"type":"number","maximum":99999.99,"minimum":0.0,"title":"Unit Price","description":"Price per unit, before tax."},"notes":{"type":"string","minLength":1,"title":"Notes","description":"Notes for the line. Replaces the stored notes."}},"type":"object","title":"V1UpdateBookingProductIn","description":"Change a product line on a booking. Omitted fields are untouched. To\nremove the line, delete it."},"V1UpdateGuestIn":{"properties":{"first_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Name","description":"First (given) name."},"middle_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Middle Name","description":"Middle name."},"last_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Name","description":"Last (family) name."},"suffix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suffix","description":"Name suffix (Jr., III, …)."},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email","description":"Email address."},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone","description":"Phone number."},"marketing_opt_in":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Marketing Opt In","description":"Whether the guest opted into marketing communications."},"street":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street","description":"Street address, line 1."},"street_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street 2","description":"Street address, line 2."},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","description":"City."},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","description":"State, province, or region."},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code","description":"Postal or ZIP code."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country."},"dob":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Dob","description":"Date of birth."}},"type":"object","title":"V1UpdateGuestIn","description":"Partial update: only fields present in the request are applied — an\nexplicit null clears a nullable field, an omitted field is untouched."},"V1UpdateProductIn":{"properties":{"name":{"type":"string","minLength":1,"title":"Name","description":"Display name, unique among the property's products."},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"The property's own code. Explicit null clears it."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Free-text description. Explicit null clears it."},"price":{"anyOf":[{"type":"number","maximum":99999.99,"minimum":0.0},{"type":"null"}],"title":"Price","description":"Default unit price, before tax, in the property's currency. Explicit null clears it. Products already on bookings keep the price they were added at."},"is_note_required":{"type":"boolean","title":"Is Note Required","description":"Whether adding the product to a booking requires `notes`."},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"The product's photo: an `https://` or `http://` address. Explicit null clears it."}},"type":"object","title":"V1UpdateProductIn","description":"Partial update: only fields present in the request are applied. An\nexplicit null clears `code`, `description`, `price` or `image_url`; an\nomitted field is untouched."},"V1UpdateRatePlanIn":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Display name."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Free-text description shown to guests."},"pricing":{"anyOf":[{"type":"string","enum":["derived","flat"]},{"type":"null"}],"title":"Pricing","description":"Pricing mode: derived plans adjust the room type's rate by the `adjustment_*` fields; flat plans charge per-room-type rates configured in the dashboard."},"adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adjustment Amount","description":"For derived plans: the adjustment applied to the room type's nightly rate, interpreted per `adjustment_type`."},"adjustment_type":{"anyOf":[{"type":"string","enum":["fixed","percentage"]},{"type":"null"}],"title":"Adjustment Type","description":"How `adjustment_amount` applies: `percentage` of the nightly rate, or a `fixed` amount in the property's currency."},"adult_adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Adult Adjustment Amount","description":"Flat amount (property currency) added per night for each adult beyond the room type's `max_adults`. Explicit null clears it."},"child_adjustment_amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Child Adjustment Amount","description":"Flat amount (property currency) added per night for each child beyond the room type's `max_children`. Explicit null clears it."},"is_tax_inclusive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Tax Inclusive","description":"Whether the plan's rates already include tax; explicit null means the plan inherits the property-level setting."},"min_stay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Stay","description":"Minimum stay length in nights; explicit null unrestricts."},"max_stay":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Stay","description":"Maximum stay length in nights; explicit null unrestricts."},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active","description":"Whether the plan is offered."}},"type":"object","title":"V1UpdateRatePlanIn","description":"Partial update: only fields present in the request are applied — an\nexplicit null clears a nullable field, an omitted field is untouched.\nThe writable surface matches the create body."},"V1WebhookDeliveryOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public delivery ID, prefixed `whd_`.","examples":["whd_9021"]},"event_id":{"type":"string","title":"Event Id","description":"Public `evt_` ID of the delivered event — the same value receivers get in the payload for dedupe.","examples":["evt_44127"]},"event_type":{"type":"string","title":"Event Type","description":"The event's type.","examples":["booking.created"]},"status":{"$ref":"#/components/schemas/WebhookDeliveryStatus","description":"`pending` (an attempt is still owed), `delivered`, or `failed` (retry schedule exhausted). `would_deliver` records a shadow-mode dry run — no HTTP was sent."},"attempt_count":{"type":"integer","title":"Attempt Count","description":"HTTP attempts made so far."},"last_response_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last Response Status","description":"HTTP status of the last attempt; null before any attempt."},"last_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Attempt At","description":"When the last attempt ran (UTC)."},"next_attempt_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Attempt At","description":"When the next retry is due (UTC); null when terminal."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the delivery was queued (UTC)."}},"type":"object","required":["id","event_id","event_type","status","attempt_count","created_at"],"title":"V1WebhookDeliveryOut","description":"One delivery on the public surface. ``event_id`` is the ``evt_``\npublic ID — the same value receivers get in the payload for dedupe."},"V1WebhookEndpointOut":{"properties":{"id":{"type":"string","title":"Id","description":"Public webhook-endpoint ID, prefixed `whe_`.","examples":["whe_184"]},"url":{"type":"string","title":"Url","description":"The receiver URL deliveries POST to."},"event_types":{"items":{"type":"string"},"type":"array","title":"Event Types","description":"Subscribed event types (exact names and family wildcards)."},"is_enabled":{"type":"boolean","title":"Is Enabled","description":"Whether deliveries are being sent."},"disabled_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Disabled Reason","description":"Why the endpoint was disabled (set on auto-disable after persistent failures); null while enabled."},"previous_secret_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Previous Secret Expires At","description":"While a secret rotation's grace window is open, when the previous signing secret stops being accepted (UTC); null otherwise. A rotation is refused until this has passed."},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When registered (UTC)."},"updated_at":{"type":"string","format":"date-time","title":"Updated At","description":"When last changed (UTC)."}},"type":"object","required":["id","url","event_types","is_enabled","created_at","updated_at"],"title":"V1WebhookEndpointOut","description":"An endpoint as the public surface shows it: ``whe_`` public ID, no\nsecret (create responses use the Created variant)."},"WebhookDeliveryStatus":{"type":"string","enum":["pending","delivered","failed","would_deliver"],"title":"WebhookDeliveryStatus","description":"Delivery lifecycle, stored as a plain string column. ``pending`` means\nthe dispatcher still owes an attempt (fresh, retrying, or re-marked for\nredelivery); ``delivered`` and ``failed`` are terminal — ``failed`` only\nafter the full retry schedule is exhausted. ``would_deliver`` is the\nshadow-mode outcome: the dispatcher ran with sends disabled and recorded\nwhat it would have POSTed — no HTTP happened, and the status takes the\nrow out of the pending due-scan so a soak logs each delivery once."},"WindowPageMeta":{"properties":{"next_page_marker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Page Marker","description":"Present when more items exist, `null` on the last page. It is an indicator, not a cursor parameter — page by advancing `offset` by your page size."},"next_start_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Next Start Date","description":"Pass this as `start_date` on the next request to continue from where this window stopped, keeping your original `end_date`. Null when the window reached your requested `end_date`."}},"type":"object","title":"WindowPageMeta","description":"Pagination metadata for a date-window read (rates, availability).\n\nThe window cap is the page size. A request wider than the cap is served up\nto the cap and reports where to resume, so a caller asking for a longer\nhorizon in one call gets data rather than an error.\n\n``next_page_marker`` carries the same meaning it does on every other v1\nresponse — non-null means more exists — but these endpoints are continued\nby moving ``start_date`` to ``next_start_date``, NOT by advancing an\noffset. Both fields are null together on the last window."}},"securitySchemes":{"ApiKeyBearer":{"type":"http","scheme":"bearer","bearerFormat":"vk_live_…","description":"A property API key, sent as `Authorization: Bearer vk_live_…`. Keys are minted in the dashboard and are bound to one property and a set of scopes; each operation names the scope it requires."}}},"tags":[{"name":"Properties","description":"The property itself and its room types, including room-type capacity limits. Reads require `properties:read`; the capacity PUT requires `properties:write`."},{"name":"Rooms","description":"The property's physical rooms: listing them, renaming them, setting their housekeeping status, and closing them to sale. Reads require `properties:read`. Renaming and closing a room require `properties:write`; setting housekeeping status requires `housekeeping:write`, so a housekeeping integration doesn't need the broader property write."},{"name":"Rates","description":"Rate plans and effective calendar rates. Reads require `rates:read`, writes `rates:write`. The rates GET/PUT pair supports optimistic concurrency: the GET's `ETag` can be sent as `If-Match` on a PUT over the same date window."},{"name":"Inventory","description":"What the property has to sell: nightly availability counts, plus caps on how many rooms each sales channel may sell — daily per-channel caps, standing per-channel caps, and the booking engine's direct caps. Reads require `inventory:read`, writes `inventory:write`. The daily cap layer writes `remaining` (availability as of now); the standing layers write a raw `limit` against the physical room count."},{"name":"Channels","description":"Connected OTA channels and their rate adjustments (daily overrides, channel globals, and the property-wide fallback they shadow). Reads require `channels:read`, writes `channels:write`. Note the one-way door: a channel's first daily adjustment permanently migrates it to absolute-rate rate plans on the channel manager."},{"name":"Bookings","description":"Reservations: list and filter, create, change stay dates, and cancel. Reads require `bookings:read`, writes `bookings:write`. Bookings reference guests by public ID only — guest details live behind the Guests endpoints and their explicit scope."},{"name":"Products","description":"The products and services the property sells (parking, breakfast, a late checkout) and the ones charged on a booking. The product catalog is property configuration: reads require `properties:read`, writes `properties:write`. A booking's products are part of the booking: reads require `bookings:read`, writes `bookings:write`. Each booking product is a line on the booking's folio, with the product's taxes as their own lines. Product taxes are configured in the dashboard."},{"name":"Guests","description":"Guest profiles. Everything here is personal data, so the `guests:read` / `guests:write` scopes are explicit grants — never bundled into a default key. The list shows master profiles only; a merged duplicate's old ID keeps resolving to its master on the detail endpoint."},{"name":"Reports","description":"Aggregated reporting over a date window: daily activity, occupancy, revenue, booking sources, and pickup. Requires `reports:read`."},{"name":"Webhooks","description":"Self-service webhook endpoint management and delivery history. Requires `webhooks:manage`. Each signing secret is shown exactly once: a new endpoint's in the create response, and a replacement in the `rotate_secret` response (the previous secret keeps verifying for a 24-hour grace window). Redelivery re-queues a delivery for the dispatcher."},{"name":"Events","description":"The log of what happened on the property, and replay. Items are the exact envelopes deliveries POST, so a receiver that missed events can backfill through the same handler; the list is cursor-paged (pass `meta.next_cursor` back as `cursor`), and events are retained for 30 days. Reading needs `events:read` — a read-only grant, so polling never brings the ability to register endpoints — or `webhooks:manage`, which covers it too; replaying an event sends to endpoints, so it needs `webhooks:manage`. Endpoints are delivery configuration you change, events are history you read."}],"security":[{"ApiKeyBearer":[]}]}