Skip to main content

Endpoints

Read endpoints require products:read; mutations require products:write. All routes are scoped to the current workspace and rely on Upstash Redis for caching alongside Postgres persistence.

Key concepts

  • Accommodation sets group candidate properties/room types per product. Sets can use different selection_strategy values (e.g., priority order).
  • Candidate items hold references to property products, property IDs, room types, rate plans, and pricing metadata used by the booking wizard.
  • Candidate priorities determine the ordering of fallback selections when multiple accommodations are available.
  • Payload schemas live in @workspace/types (createAccommodationSetSchema, updateAccommodationSetSchema, createAccommodationSetItemSchema).