# GENERATED by scripts/sync-api-docs.mjs — do not edit by hand
openapi: 3.0.3
info:
  title: Turneo API
  version: 2.0.0
  description: >-
    The Turneo API — experiences, options, availability, orders and bookings.


    ## Authentication


    Every request must include your API key in the `X-API-Key` header. Partner
    scoping is derived from the key.


    ## Conventions


    - All request and response bodies are JSON with **camelCase** keys.

    - List endpoints are paginated with `page` and `page_size` query parameters
    (default page size 50). Responses use the envelope `{count, next, previous,
    results}`. Pass `nopagination=true` to disable pagination where supported.

    - Errors follow a standardized envelope: `{type, errors: [{code, field,
    message}]}`.

    - Multilingual text fields are objects keyed by language code (e.g. `{"en":
    "...", "de": "..."}`); pass `?language=de` to select a single language.

    - All endpoints live under `/v2/...`.
  contact:
    name: Turneo
    email: support@turneo.com
    url: https://www.turneo.com
servers:
  - url: https://api.turneo.co
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Experiences
    description: >
      Create, read, update and list experiences (tours, activities, events), and
      check their guest-facing availability. Anonymous and unauthenticated
      requests see only `ACTIVE` experiences that are publicly listed;
      authenticated callers additionally see their own experiences (any status)
      plus any experiences other organizers have explicitly shared with them.
      All multilingual fields follow the platform multilang convention — stored
      as `{"en": "...", "de": "...", ...}` objects; on read they resolve to a
      single string in the language selected by the `language` query parameter
      (falling back to English when the whole object is not consistently
      translated), unless `showTranslations=true` is passed, in which case the
      full per-language object is returned.


      Availability is a two-step flow under
      `/v2/experiences/{experienceId}/availability`: call `dates` to paint a
      calendar of bookable days in a range, then `slots` for a selected day to
      get concrete bookable time slots per option, with per-variant availability
      and explicit unavailability reasons. Both accept an optional
      `participants` spec (`typeId:count,typeId:count`); when omitted the check
      is participant-agnostic (a party of one). You only see availability for
      experiences you can see — anything else is a 404.
  - name: Options
    description: >
      Options are the bookable products of an experience. Each option carries
      its own schedule (slot configuration and availability period), pricing
      model (flat rate, per person, per group size, or duration based),
      variants, add-ons, extra booking fields, discounts and resource
      requirements. Options are managed under their experience at
      `/v2/experiences/{experienceId}/options` — reads are public; mutations are
      restricted to the experience's organizer and rejected on experiences whose
      availability is synced from an external provider (Bokun, Regiondo,
      Kompas). Deletions are soft deletes. The nested `slots` actions expose the
      full calendar for an option, including slots the guest-facing availability
      endpoints hide. The flat `/v2/options` surface is strictly read-only: it
      lists and retrieves options across experiences for the public booking
      flow.


      Participant types (`/v2/experiences/{experienceId}/participant-types`) are
      the categories a guest can book: Adult, Child, Infant, plus
      organizer-defined custom types such as Senior or Student. Every experience
      is seeded with the three default types (`isDefault: true`), which can
      never be deleted and only have their age range edited. Custom types start
      disabled on every existing option — organizers enable them per option (and
      add a price, for per-person pricing) before they're bookable.
      `isEnabledOnBookableOptions` tells you whether at least one sellable
      option currently accepts the type.
  - name: Orders
    description: >
      Multi-booking checkout. An order is a shopping cart that groups one or
      more bookings. The typical flow is:


      1. **Reserve** — `POST /v2/booking-orders` creates the order and one or
      more bookings
         in `ON_HOLD` status. Each booking holds its slot for 15 minutes.
      2. **Adjust** — `POST .../add` and `POST .../remove` manage the cart
      contents;
         `PATCH .../{id}` updates order-level fields and patches individual bookings
         (payment details, extra-field answers, meeting point, notes...).
      3. **Confirm** — `POST .../confirm` finalizes all bookings, transitioning
      them from
         `ON_HOLD` to `ACCEPTED` (instant confirmation) or `PENDING` (organizer review),
         and fires all side effects (confirmation emails, PMS folio entries, QR tickets).

      An order can also carry retail lines (`retailItems`): products and gift
      vouchers sold from SKUs,

      alongside bookings or on their own. They are held, confirmed and counted
      in the order's status and

      totals just like bookings; see the Retail group.


      ### Order status lifecycle


      An order has no stored status of its own — `status` is derived from its
      bookings and retail lines:


      | Status | Meaning |

      |--------|---------|

      | `ON_HOLD` | All active lines are still `ON_HOLD` (cart not yet
      confirmed). |

      | `BOOKED` | At least one line has progressed past `ON_HOLD` (a booking
      `ACCEPTED`, `PENDING`, `COMPLETED` or `CANCELLED`; a retail line `PAID`,
      `DELIVERED` or `CANCELLED`). |

      | `EXPIRED` | The order has lines but none are active — every hold timer
      ran out (or all were removed). |


      ### Access scoping


      Authentication uses the global `x-api-key` (+ optional `x-partner-id`)
      headers. You

      only see orders you created — an order belonging to someone else returns
      404, never

      403, so its existence isn't leaked.


      ### Choosing resources


      To book a specific therapist, room, sunbed, table or rental unit, pass its
      id in a

      booking's `resources` (ids come from the option's `resourceGroups`). Each
      resource

      must belong to one of the option's resource groups and be free for the
      slot, or the

      request returns 400. Leave `resources` out and Turneo assigns them.


      ### Concierge-only fields


      `skipCutoff`, and `skipPending` on confirm, along with booking slots in
      the past,

      are reserved for Turneo's own concierge tooling and are not available to
      API-key

      integrations: `skipCutoff` and `skipPending` are silently ignored, and a
      past slot

      returns a 400. Omitted payment details default to `processedBy: null` /

      `status: PAYMENT_PENDING`.
  - name: Bookings
    description: >
      Bookings are the heart of the API. A booking reserves capacity on an

      **availability slot** of an experience **option** for a specific
      **variant**

      (group-size / pricing tier), on behalf of a traveler.


      ## Lifecycle


      Bookings are **created through orders** (`POST /v2/booking-orders`) and

      start in `ON_HOLD` (reserved in a shopping cart for 15 minutes).
      Confirming the order

      transitions each booking to `ACCEPTED` (instantly-confirmable slots) or
      `PENDING`

      (organizer must accept within an expiration window). From there:


      - `PENDING` → `ACCEPTED` — organizer accepts (`POST
      /v2/bookings/{id}/accept`)

      - `PENDING` → `REJECTED` — organizer rejects (`POST
      /v2/bookings/{id}/reject`), or
        the reservation timer (`reservationExpiresAt`) runs out
      - `PENDING` (alternatives offered) → `ACCEPTED` — traveler accepts one of
      the
        organizer's alternative slots (`POST /v2/bookings/{id}/accept-alternative`)
      - `REJECTED` → `PENDING` — reinstated with a fresh response window (`POST
        /v2/bookings/{id}/reinstate`)
      - `REJECTED` → `ACCEPTED` — organizer or the booking's reseller recovers a
        rejected booking (reseller-collected payments only; see accept)
      - `ACCEPTED` → `COMPLETED` — the experience time passes (scheduled task),
      or
        manually for past-dated bookings (`POST /v2/bookings/{id}/mark-completed`)
      - `COMPLETED` → `ACCEPTED` — a completed booking rescheduled to a future
      slot
        re-enters the lifecycle (`POST /v2/bookings/{id}/reschedule`)
      - `ACCEPTED`/`COMPLETED` → `NO_SHOW` — traveler did not show up (in-house
      only)

      - any live status → `CANCELLED` — via `POST /v2/bookings/{id}/cancel`

      - `ON_HOLD` → `EXPIRED` — hold timer runs out, or the ON_HOLD booking is
      cancelled

      - `REMOVED` — removed from the cart; never returned by this API


      ## Status values


      `ON_HOLD`, `PENDING`, `ACCEPTED`, `COMPLETED`, `CANCELLED`, `EXPIRED`,
      `NO_SHOW`,

      `REJECTED`, `REMOVED`. The list/retrieve endpoints exclude `REMOVED` and
      soft-deleted

      bookings entirely.


      ## Access scoping


      All endpoints authenticate with the global API-key scheme (`x-api-key` +

      `x-partner-id`). Resellers see only bookings they sold (`reseller` =
      caller);

      organizers see only bookings on their own experiences; `BOTH` partners see
      the union.

      A booking outside the caller's scope behaves as if it does not exist
      (404), so

      existence is never leaked across partners.


      All wire payloads are camelCase; request bodies accept camelCase or
      snake_case.
  - name: Activity Feed
    description: >
      The activity feed — an append-only log of noteworthy platform events
      (bookings created/confirmed/cancelled/rejected, reviews submitted,
      experiences published/updated). Each row is a self-contained snapshot of
      the event at the time it happened; a later change to the source
      booking/experience does not rewrite history. Visibility mirrors the
      existing list pages: you only see events for resources you already have
      access to elsewhere in the API.
  - name: Retail
    description: >
      Retail products are things you sell without a date or time slot:
      merchandise, gifts and gift

      vouchers. Each is an experience with `experienceType` `RETAIL` (or
      `VOUCHER` for a gift voucher)

      that sells from SKUs instead of options and slots. Optional variation axes
      (Colour, Size) combine

      into SKUs, and each SKU has its own price, optional stock count and
      purchase questions.


      Retail is bought on an ordinary booking order: send `retailItems` to `POST
      /v2/booking-orders` or

      `.../add`, and the lines are held and confirmed with the order. Each
      confirmed line is a retail

      item you can list, mark delivered, cancel and refund under
      `/v2/retail-items`. Buying a gift

      voucher produces a code that its holder redeems on a later order against
      the seller's own

      experiences: check it with `GET /v2/retail-vouchers/{code}`, then send it
      as the order's

      `voucherCode` or as its `payment` at confirm.
paths:
  /v2/experiences:
    get:
      operationId: listExperiences
      summary: List experiences
      tags:
        - Experiences
      security:
        - apiKeyAuth: []
        - {}
      description: >
        Returns a paginated list of experiences visible to the caller.


        ### Visibility


        Anonymous and unauthenticated requests see only `ACTIVE` experiences
        that are

        publicly listed. Authenticated callers additionally see their own
        experiences,

        at any status, plus any experiences that other organizers have
        explicitly

        shared with them. Custom one-off experiences created for a specific
        private

        booking are never included in this list — they exist only for their
        booking

        and are not reachable here.


        ### Response shape


        Experiences you own are serialized with extra owner-only fields
        (`contacts`,

        `notificationSettings`, the full `commissionSettings` list,
        `availabilitySource`,

        `createdAt`, `updatedAt`, ...); other experiences use the public read
        shape.

        Both shapes can appear in the same `results` array.


        ### Ordering


        Default order is by relevance (highest first), then newest first.
        Override

        with the `sort` parameter.


        ### Availability window filtering


        When `from` and `until` are given (both required together,
        `YYYY-MM-DD`), only

        experiences having at least one bookable availability slot with a start
        date inside

        the window are returned. This is a schedule-only check — capacity and
        resources are

        not consulted.
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
          description: Page number of the paginated result set (1-based).
          example: 1
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            default: 50
          description: Number of results per page. Defaults to 50.
          example: 25
        - name: nopagination
          in: query
          required: false
          schema:
            type: boolean
          description: >
            When `true`, disables pagination and returns a bare array of
            experiences instead of the `{count, next, previous, results}`
            envelope. Currently capped at 500 results as a safety limit.
          example: false
        - name: id
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated list of experience UUIDs to fetch. When present, the
            default ACTIVE-only restriction for non-owned experiences is lifted.
            Returns 400 when the first value is not a valid UUID.
          example: 5f8b8c1e-3f8a-4a1e-9d2b-1c2d3e4f5a6b
        - name: storeId
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated list of store IDs. Restricts results to experiences
            assigned to those stores (assignments are looked up in the store
            configuration database).
          example: 64a1f0c2e4b0a1b2c3d4e5f6
        - name: elementId
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated list of embeddable-element IDs. Restricts results to
            experiences configured on those elements, returned in the order they
            are arranged in within the element. Elements are honoured in the
            order listed here, and within an element its own configured order;
            an experience on several of them keeps its first position and is
            returned once. Experiences the request cannot see drop out, so the
            result is a subsequence of that order. An explicit `sort` overrides
            it.
          example: element-123
        - name: name
          in: query
          required: false
          schema:
            type: string
          description: >
            Exact name match, checked against every supported language of the
            multilang name. Partial values will not match — use `nameContains`
            or `search` for that.
          example: Sunset Cruise
        - name: nameContains
          in: query
          required: false
          schema:
            type: string
          description: Case-insensitive substring match on the English name only.
          example: cruise
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: >
            Free-text search. Case-insensitive substring match across the
            multilang name (all languages), category theme names, location city
            and location country. Whitespace-only terms are ignored.
          example: paris
        - name: categories
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated list of category names. Each value is matched
            against the category `type`, the category `theme` list, and custom
            category-theme default names.
          example: Day trips,Dining
        - name: country
          in: query
          required: false
          schema:
            type: string
          description: Exact match on `location.country`.
          example: France
        - name: city
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated list of cities. Matches experiences whose
            `location.city` equals one of the values, **or** whose geo-location
            lies within the configured search radius of a known city with that
            name (proximity search).
          example: Paris,Rome
        - name: location
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated list of cities matched **exactly** against
            `location.city` — no proximity radius, unlike `city`. Values are
            trimmed, so `?location=Paris, Rome` works. `location__city` and
            `meetingPoint__city` are accepted as legacy aliases.
          example: Paris, Rome
        - name: experienceType
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated list of experience types: `EXPERIENCE` (bookable),
            `RETAIL` (retail products) and `VOUCHER` (gift vouchers). Unknown
            values match nothing.
          example: RETAIL,VOUCHER
        - name: status
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated list of experience statuses (`ACTIVE`, `DRAFT`,
            `INACTIVE`, `CATALOGUE`). Passing this lifts the default ACTIVE-only
            restriction on non-owned experiences (experiences shared only with
            specific partners stay limited to them).
          example: ACTIVE,DRAFT
        - name: publishedAtFrom
          in: query
          required: false
          schema:
            type: string
            format: date
          description: >
            Only experiences first published on or after this date. Must be a
            plain `YYYY-MM-DD` date — datetimes are rejected with 400.
          example: 2026-01-01
        - name: publishedAtUntil
          in: query
          required: false
          schema:
            type: string
            format: date
          description: >
            Only experiences first published on or before this date. Must be a
            plain `YYYY-MM-DD` date — datetimes are rejected with 400.
          example: 2026-06-30
        - name: sort
          in: query
          required: false
          schema:
            type: string
          description: >
            Sort override. Accepts the bracket convention `field[asc|desc]` for
            `publishedAt`, `createdAt` and `updatedAt` (e.g. `updatedAt[desc]`),
            plus the legacy forms `publishedAt` / `-publishedAt`. Unrecognized
            values are silently ignored and the default sort-score ordering
            applies. A recognized value also overrides the element ordering
            applied by `elementId`.
          example: updatedAt[desc]
        - name: from
          in: query
          required: false
          schema:
            type: string
            format: date
          description: >
            Start of an availability window (`YYYY-MM-DD`). Must be passed
            together with `until` (400 otherwise) and must not be after `until`.
            Filters to experiences with at least one bookable slot in the
            window.
          example: 2026-07-10
        - name: until
          in: query
          required: false
          schema:
            type: string
            format: date
          description: End of the availability window (`YYYY-MM-DD`). See `from`.
          example: 2026-07-20
        - name: organizer__partnerId
          in: query
          required: false
          schema:
            type: string
          description: Comma-separated list of organizer partner IDs to filter by.
          example: partner-abc,partner-def
        - name: organizer__partnerType
          in: query
          required: false
          schema:
            type: string
          description: Filter by the organizer's partner type (e.g. `Organizer`, `BOTH`).
          example: Organizer
        - name: organizer__name
          in: query
          required: false
          schema:
            type: string
          description: Exact match on the organizer's name.
          example: Acme Tours
        - name: unapproved_reviews
          in: query
          required: false
          schema:
            type: boolean
          description: >
            When `true`, the embedded `reviews` object also includes reviews
            that have not been approved yet (any status). Default is accepted
            reviews only.
          example: false
        - name: language
          in: query
          required: false
          schema:
            type: string
            default: en
          description: >
            Language for multilingual fields. Multilang fields resolve to a
            single string in this language when a complete translation exists,
            otherwise fall back to English.
          example: de
        - name: showTranslations
          in: query
          required: false
          schema:
            type: boolean
          description: >
            When `true`, multilingual fields are returned as full per-language
            objects (`{"en": "...", "de": "..."}`) instead of a resolved single
            string. Intended for editing UIs.
          example: false
      responses:
        "200":
          description: >
            Paginated list of experiences. With `nopagination=true` the body is
            a bare array of experience objects instead.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedExperiences"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
    post:
      operationId: createExperience
      summary: Create an experience
      tags:
        - Experiences
      description: >
        Creates a new experience owned by the authenticated partner; any
        `organizer` value in

        the body is ignored. Three default participant types (Adult, Child,
        Infant) are

        created automatically.


        Creating with `status: ACTIVE` requires a location and at least one
        meeting point (or

        `allowFreePickup: true`), otherwise the request fails with 400;
        activation also stamps

        `publishedAt` and kicks off automatic translation, categorization and
        traveler-type

        scoring. If `commissionSettings` is given, it must include exactly one
        `MARKETPLACE`

        row without a reseller; otherwise the legacy `commission` field is
        stored as the

        default rate. `orderedOptionIds` cannot be set on create (400), since
        the experience

        has no options yet. Setting an external `availabilitySource` (`Bokun`,
        `Regiondo`)

        together with an `EXTERNAL_ID` link triggers an immediate availability
        sync.


        Only organizer accounts may create experiences; reseller-only accounts
        receive 403.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceWriteRequest"
            examples:
              minimalDraft:
                summary: Minimal draft experience
                value:
                  name:
                    en: Sunset Kayak Tour
                  allowFreePickup: true
              activeWithDetails:
                summary: Publish-ready experience
                value:
                  name:
                    en: Sunset Kayak Tour
                    de: Kajaktour bei Sonnenuntergang
                  description:
                    en: Paddle along the coast at golden hour.
                  highlight:
                    en: Golden-hour paddling
                  status: ACTIVE
                  location:
                    city: Split
                    country: Croatia
                    address: Riva 1
                    latitude: 43.508
                    longitude: 16.44
                  meetingPoints:
                    - type: CENTRAL_MEETING_POINT
                      city: Split
                      country: Croatia
                      address: Riva 1
                      latitude: 43.508
                      longitude: 16.44
                      timeBeforeStart: 15
                  categories:
                    type: Water sports
                  commission: 20
                  included:
                    - name: Kayak and paddle
                  excluded:
                    - name: Hotel transfer
                  images:
                    - urlHigh: https://res.cloudinary.com/x/hi.jpg
                      urlLow: https://res.cloudinary.com/x/lo.jpg
                      altText: Kayaks at sunset
                  refundPolicy:
                    tiers:
                      - hoursBeforeStart: 48
                        refundPercentage: 100
                      - hoursBeforeStart: 0
                        refundPercentage: 0
      responses:
        "201":
          description: >
            Experience created. The response uses the owner read shape (includes
            `allowedPartners`, `contacts`, `notificationSettings`, `createdAt`,
            ...).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceOwnDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
  /v2/experiences/available-filters:
    get:
      operationId: getExperienceAvailableFilters
      summary: Facet counts for the experiences list
      tags:
        - Experiences
      security:
        - apiKeyAuth: []
        - {}
      description: >
        Returns per-facet counts (statuses, categories, locations, organizers)
        for the

        experiences the caller can see, for building filter UIs next to the list
        endpoint.


        Accepts the same filter query parameters as `GET /v2/experiences`.
        Counts use

        **self-excluded semantics**: when computing a facet's counts, that
        facet's own

        filter is dropped from the request, so the caller sees the alternatives
        they could

        switch to. Example: with `?status=ACTIVE`, the `status` facet still
        reports the

        DRAFT and INACTIVE counts. Pagination and sort parameters are ignored.


        The `status` facet always contains the three keys `ACTIVE`, `INACTIVE`
        and `DRAFT`

        (zero-filled); `categories`, `locations` and `organizers` only contain
        keys that

        have at least one matching experience.
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
          description: Same as on the list endpoint; excluded from the `status` facet's
            own counts.
          example: ACTIVE
        - name: location
          in: query
          required: false
          schema:
            type: string
          description: Same as on the list endpoint; excluded from the `locations` facet's
            own counts.
          example: Paris
        - name: categories
          in: query
          required: false
          schema:
            type: string
          description: Same as on the list endpoint; excluded from the `categories`
            facet's own counts.
          example: Day trips
        - name: search
          in: query
          required: false
          schema:
            type: string
          description: Free-text search, applied to every facet.
          example: kayak
      responses:
        "200":
          description: Facet counts.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceAvailableFilters"
        "400":
          $ref: "#/components/responses/badRequest"
  /v2/experiences/search:
    get:
      operationId: searchExperiences
      summary: Semantic experience search within a store
      tags:
        - Experiences
      security:
        - apiKeyAuth: []
        - {}
      description: >
        Free-text semantic search over the experiences assigned to one store,
        backed by the

        AI agents service. Intended for storefront search boxes.


        The store is identified by the **`x-store-id` request header** (required
        — missing

        header returns 400). The AI service returns matching experience IDs,
        which are then

        serialized with the public experience read shape.


        Returns **404 when the search produces no matches** — treat 404 as "no
        results",

        not as a missing route. The `summary` field is reserved for a future
        version of the

        semantic search and is currently always `null`.
      parameters:
        - name: term
          in: query
          required: true
          schema:
            type: string
          description: The search phrase. Required — missing values return 400.
          example: romantic dinner on the water
        - name: language
          in: query
          required: true
          schema:
            type: string
          description: Language code of the search term and of the localized response
            fields. Required.
          example: en
        - name: x-store-id
          in: header
          required: true
          schema:
            type: string
          description: ID of the store whose assigned experiences are searched.
          example: 64a1f0c2e4b0a1b2c3d4e5f6
      responses:
        "200":
          description: Matching experiences.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceSearchResponse"
        "400":
          $ref: "#/components/responses/badRequest"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/experience_recommendations:
    get:
      operationId: getExperienceRecommendations
      summary: AI experience recommendations for a guest
      tags:
        - Experiences
      security:
        - apiKeyAuth: []
        - {}
      description: >
        Returns AI-generated experience recommendations for a guest of a store,
        with an

        explanatory text per recommendation. Used for personalized storefront
        and

        pre-arrival recommendations.


        ### Guest resolution


        Pass `guestId` directly, or pass `email` — when `guestId` is absent the
        guest is

        looked up by exact email match. If neither resolves, recommendations are
        computed

        without guest personalization.


        ### Store resolution


        `storeId` may be passed as a query parameter or as the `x-store-id`
        header; one of

        the two is required (400 otherwise).


        ### Degradation


        When AI recommendations are disabled on the environment, the store's top

        experiences are returned with an empty `recommendationText`. When the AI
        call

        fails, the error is captured and the endpoint still returns 200 with an
        empty

        recommendation. `from`/`until` values that fail to parse are silently
        ignored.


        The response echoes the request's query parameters (except `name` and
        `email`)

        as top-level keys alongside `recommendationText`, `experiences` and

        `experienceExplanations`.
      parameters:
        - name: storeId
          in: query
          required: false
          schema:
            type: string
          description: Store to recommend from. Falls back to the `x-store-id` header; one
            of the two is required.
          example: 64a1f0c2e4b0a1b2c3d4e5f6
        - name: resellerId
          in: query
          required: false
          schema:
            type: string
          description: Reseller (hotel) partner ID, used as additional personalization
            context.
          example: reseller-123
        - name: guestId
          in: query
          required: false
          schema:
            type: string
          description: Guest UUID to personalize for. Takes precedence over `email`.
          example: 0d9f4a3e-6a7b-4c1d-8e2f-3a4b5c6d7e8f
        - name: email
          in: query
          required: false
          schema:
            type: string
            format: email
          description: Guest email; used to resolve the guest when `guestId` is absent
            (exact match). Never echoed back in the response.
          example: guest@example.com
        - name: language
          in: query
          required: false
          schema:
            type: string
            default: en
          description: Language for the recommendation text and localized fields.
          example: en
        - name: from
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: Start of the guest's stay / date window (ISO 8601). Unparseable
            values are ignored.
          example: 2026-05-01T10:00:00Z
        - name: until
          in: query
          required: false
          schema:
            type: string
            format: date-time
          description: End of the guest's stay / date window (ISO 8601). Unparseable
            values are ignored.
          example: 2026-05-03T10:00:00Z
        - name: group
          in: query
          required: false
          schema:
            type: string
          description: Free-text description of the travel party.
          example: 2 adults, 1 child
        - name: interests
          in: query
          required: false
          schema:
            type: string
          description: Free-text guest interests to steer the recommendation.
          example: wellness,food
      responses:
        "200":
          description: Recommendations plus echoed request parameters.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceRecommendationsResponse"
        "400":
          $ref: "#/components/responses/badRequest"
  /v2/experiences/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: >
          Experience UUID, or the legacy string `experienceId` of an experience
          migrated from the old platform — UUIDs are tried first, any non-UUID
          value is looked up as a legacy ID.
        example: 5f8b8c1e-3f8a-4a1e-9d2b-1c2d3e4f5a6b
    get:
      operationId: retrieveExperience
      summary: Retrieve an experience
      tags:
        - Experiences
      security:
        - apiKeyAuth: []
        - {}
      description: >
        Returns a single experience. Unlike the list endpoint, `from`/`until`
        availability

        filters do not apply — a directly retrieved experience is returned even
        if it has no

        availability in the window. Custom one-off experiences created for a
        private booking

        are reachable here even though they never appear in lists.


        404 means the experience does not exist or is not visible to the caller.


        If the caller is the experience's organizer, the owner read shape is
        returned (extra

        fields such as `contacts`, `notificationSettings`, `availabilitySource`,
        `createdAt`,

        `updatedAt`).


        Pass `includeOptions=1` to embed the experience's options under an
        `options` key, with

        the same item shape as `GET /v2/experiences/{id}/options`; without the
        flag the

        key is absent. Use `status`, `restricted`, `language` and
        `showTranslations` to

        filter and localize the embedded options, same as on the options
        endpoint.
      parameters:
        - name: includeOptions
          in: query
          required: false
          schema:
            type: string
            enum:
              - "1"
              - "true"
              - "True"
          description: Embed the experience's options in the response (retrieve only).
          example: "1"
        - name: status
          in: query
          required: false
          schema:
            type: string
          description: >
            Comma-separated option statuses for the embedded `options` list
            (requires `includeOptions`). Defaults to `ACTIVE`; empty value
            disables the filter.
          example: ACTIVE,INACTIVE
        - name: restricted
          in: query
          required: false
          schema:
            type: boolean
          description: Filter the embedded options' variants by their restricted flag
            (requires `includeOptions`).
          example: false
        - name: language
          in: query
          required: false
          schema:
            type: string
            default: en
          description: Language for multilingual fields.
          example: de
        - name: showTranslations
          in: query
          required: false
          schema:
            type: boolean
          description: Return multilingual fields as full per-language objects.
          example: false
        - name: unapproved_reviews
          in: query
          required: false
          schema:
            type: boolean
          description: Include not-yet-approved reviews in the embedded `reviews` object.
          example: false
      responses:
        "200":
          description: The experience (owner shape when the caller is the organizer).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "404":
          $ref: "#/components/responses/notFound"
    put:
      operationId: updateExperience
      summary: Update an experience
      tags:
        - Experiences
      description: >
        Full update of an experience. Only the organizer who owns the experience
        may update

        it (403 otherwise); the owner cannot be changed, and private
        custom-booking

        experiences cannot be edited (400).


        `images` and `externalLinks` are fully replaced on each update;
        `included`,

        `excluded`, `meetingPoints`, `commissionSettings` and
        `notificationSettings` are

        diff-merged by ID (matched items are updated, new items without an ID
        are created,

        and omitted items are deleted). `orderedOptionIds`, when present, must
        list every

        visible option exactly once (see the reorder-options endpoint) and is
        rejected for

        experiences with an external availability source.


        Activating an experience (status transitioning to `ACTIVE`) requires a
        meeting point

        or `allowFreePickup`, and stamps a fresh `publishedAt`; removing city,
        country or

        coordinates from the location of an active experience is rejected with
        400. Editing

        English text on an active experience re-triggers translation, and
        activating

        re-triggers categorization and scoring. Changing the availability source
        to

        Bokun/Regiondo while an `EXTERNAL_ID` link exists triggers an
        availability sync.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceWriteRequest"
      responses:
        "200":
          description: Updated experience, in the owner read shape when the caller owns it.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    patch:
      operationId: partialUpdateExperience
      summary: Partially update an experience
      tags:
        - Experiences
      description: >
        Partial update — identical semantics, permissions and side effects as
        `updateExperience` (PUT), but only submitted fields are validated and
        changed.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceWriteRequest"
            examples:
              rename:
                summary: Rename
                value:
                  name:
                    en: Updated name
              reorderOptions:
                summary: Reorder options inline
                value:
                  orderedOptionIds:
                    - 9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f
                    - 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
              connectBokun:
                summary: Flip availability source to Bokun
                value:
                  availabilitySource: Bokun
      responses:
        "200":
          description: Updated experience.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    delete:
      operationId: deleteExperience
      summary: Delete (deactivate) an experience
      tags:
        - Experiences
      description: >
        Soft-deletes an experience by flagging it inactive; the record is
        retained (bookings may reference it forever) but disappears from all API
        reads. Only the owning organizer may delete (403 otherwise). Returns 204
        with no body.
      responses:
        "204":
          description: Experience deactivated.
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{id}/reorder-options:
    post:
      operationId: reorderExperienceOptions
      summary: Reorder an experience's options
      tags:
        - Experiences
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Experience UUID (or legacy experience ID).
          example: 5f8b8c1e-3f8a-4a1e-9d2b-1c2d3e4f5a6b
      description: >
        Sets the display order of all of an experience's options in one call.
        The submitted

        list must contain every visible option exactly once — partial lists,
        duplicates,

        unknown IDs and empty lists are all rejected with 400. Options of
        experiences with an

        external availability source (Bokun/Regiondo) cannot be reordered (400).


        Only the owning organizer can reorder (403 otherwise). The new order is
        immediately

        reflected by `GET /v2/experiences/{id}/options` and the embedded
        `options` list,

        and can alternatively be set inline via `PATCH /v2/experiences/{id}`
        with

        `orderedOptionIds`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceReorderOptionsRequest"
            examples:
              reorder:
                value:
                  orderedOptionIds:
                    - 9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f
                    - 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
      responses:
        "200":
          description: Order applied.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceReorderOptionsResponse"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/options:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    get:
      operationId: listExperienceOptions
      summary: List options of an experience
      tags:
        - Options
      description: >
        Returns the options of an experience, ordered by the organizer's sort
        order. Reads are public: any authenticated API-key caller may list
        options of an experience.


        ### Status filtering

        Defaults to `ACTIVE` options only. Pass a comma-separated list
        (`?status=ACTIVE,INACTIVE`) to widen it, or repeat the parameter
        (`?status=ACTIVE&status=INACTIVE`); any value outside
        `DRAFT`/`ACTIVE`/`INACTIVE` is a 400. The filter applies to the list
        action only — a DRAFT or INACTIVE option can still be fetched directly
        by id.


        ### Variant visibility

        `restricted=false` returns only public variants; `restricted=true`
        returns the restricted (member-only) variants, falling back to public
        ones when the option has none. Omitted, all active variants are
        returned.


        ### Localization

        Multilingual fields (`name`, `note`, and nested
        variant/add-on/extra-field names) are returned as full language objects
        (`{"en": ..., "de": ...}`). Pass `?language=de` to collapse them to
        plain strings in that language.
      parameters:
        - name: status
          in: query
          required: false
          description: >
            Comma-separated option statuses to include. Defaults to `ACTIVE`
            when omitted. Invalid values return a 400 listing the allowed
            statuses.
          schema:
            type: string
          example: ACTIVE,INACTIVE
        - name: restricted
          in: query
          required: false
          description: >
            Variant visibility filter. `false` — public variants only; `true` —
            restricted (member-only) variants, falling back to public ones when
            the option has no active restricted variants; omitted — no
            filtering. Any value other than `true` is treated as `false`.
          schema:
            type: boolean
          example: false
        - name: language
          in: query
          required: false
          description: >
            Two-letter language code. When present, multilingual fields collapse
            from full language objects to plain strings in that language.
          schema:
            type: string
          example: de
        - name: page
          in: query
          required: false
          description: Page number (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          required: false
          description: Items per page (default 50). Note the snake_case wire name.
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          required: false
          description: Set to `true` to disable pagination and return the bare array of
            results.
          schema:
            type: boolean
            default: false
          example: false
      responses:
        "200":
          description: Paginated list of options.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedExperienceOptions"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
    post:
      operationId: createExperienceOption
      summary: Create an option
      tags:
        - Options
      description: >
        Creates a new option on the experience. Requires authentication and is
        restricted to the experience's organizer; other callers get a 403.
        Returns 400 if the experience's availability is sourced from an external
        provider (Bokun/Regiondo/Kompas) — externally-synced options can only be
        managed by the sync.


        Options default to `status: DRAFT` and are placed at the bottom of the
        sort order unless `score` is given; if no `variants` are provided a
        single default variant is created automatically. Creating with `status:
        ACTIVE` requires a complete configuration — `startDate`, `pricingModel`,
        `slotType`, slot config and variant pricing matching that model, and any
        resource-group requirements — a DRAFT option can be saved
        half-configured, an ACTIVE one cannot (400 otherwise). Activating an
        option immediately generates its availability slots and may trigger
        auto-translation of the experience content.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceOptionWrite"
            examples:
              draft:
                summary: Minimal draft option
                value:
                  name:
                    en: Shared boat tour
              active:
                summary: Active per-person option with a fixed schedule
                value:
                  status: ACTIVE
                  name:
                    en: Morning kayak
                  startDate: 2026-07-01
                  endDate: 2026-09-30
                  slotType: FIXED
                  fixedSlotConfig:
                    - time: 09:00
                      daysOfWeek:
                        - 0
                        - 1
                        - 2
                        - 3
                        - 4
                  pricingModel: PER_PERSON
                  slotCapacity: 10
                  duration:
                    days: 0
                    hours: 2
                    minutes: 0
                  variants:
                    - name:
                        en: Standard
                      participantPrices:
                        - participantTypeId: a7c53f01-6f9c-4d1c-9c30-1c19a1a5bd44
                          price: "45.00"
      responses:
        "201":
          description: Option created. Returns the full read shape.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceOption"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/options/{optionId}:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: optionId
        in: path
        required: true
        description: UUID of the option (must belong to the experience in the path).
        schema:
          type: string
          format: uuid
        example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
    get:
      operationId: getExperienceOption
      summary: Retrieve an option
      tags:
        - Options
      description: >
        Returns a single option by id. Unlike the list endpoint, this resolves
        options in **any** status (DRAFT/ACTIVE/INACTIVE) so organizers can keep
        managing unpublished options. The `restricted` and `language` query
        parameters behave exactly as on the list endpoint. Returns 404 for
        soft-deleted options or options belonging to a different experience.
      parameters:
        - name: restricted
          in: query
          required: false
          description: >
            Variant visibility filter. `false` — public variants only; `true` —
            restricted (member-only) variants, falling back to public ones when
            the option has no active restricted variants; omitted — no
            filtering. Any value other than `true` is treated as `false`.
          schema:
            type: boolean
          example: false
        - name: language
          in: query
          required: false
          description: >
            Two-letter language code. When present, multilingual fields collapse
            from full language objects to plain strings in that language.
          schema:
            type: string
          example: de
      responses:
        "200":
          description: The option.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceOption"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    put:
      operationId: updateExperienceOption
      summary: Update an option
      tags:
        - Options
      description: >
        Full update of an option. Only the experience's organizer may update
        (403 otherwise); returns 400 on externally-sourced experiences.


        ### Status rules

        An option can never go back to `DRAFT` once it has been `ACTIVE` or
        `INACTIVE`. Setting the status to `INACTIVE` pushes the option to the
        bottom of the sort order. Saving with a non-DRAFT status re-runs the
        activation validation from the create operation. `pricingModel` may be
        changed on a live option except across the `DURATION_BASED` boundary,
        which is only allowed while the option is still DRAFT.


        ### Nested reconciliation

        `variants`, `addons`, `extraFields`, `discounts` and `resourceGroups`
        are reconciled by id when present in the payload: entries with an
        existing `id` are updated, entries without one are created, and active
        entries omitted from the list are soft-deleted. Omitting the array
        entirely leaves that relation untouched — the same applies one level
        down for a variant's `pricingTiers` and `participantPrices`.


        ### Slot regeneration

        When the option is ACTIVE and a schedule field changed (`startDate`,
        `endDate`, `slotType`, `flexibleSlotConfig`, `fixedSlotConfig`) — or the
        option was just activated — its availability slots are regenerated.
        Slots that no longer match the schedule but still carry live bookings
        are kept, marked non-bookable.
      parameters:
        - name: restricted
          in: query
          required: false
          description: >
            Variant visibility filter. `false` — public variants only; `true` —
            restricted (member-only) variants, falling back to public ones when
            the option has no active restricted variants; omitted — no
            filtering. Any value other than `true` is treated as `false`.
          schema:
            type: boolean
          example: false
        - name: language
          in: query
          required: false
          description: >
            Two-letter language code. When present, multilingual fields collapse
            from full language objects to plain strings in that language.
          schema:
            type: string
          example: de
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceOptionWrite"
      responses:
        "200":
          description: Updated option (full read shape).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceOption"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    patch:
      operationId: partialUpdateExperienceOption
      summary: Partially update an option
      tags:
        - Options
      description: >
        Partial update of an option. Identical semantics to PUT (organizer-only,
        rejected on externally-sourced experiences, status rules, by-id
        reconciliation of nested arrays, slot regeneration) but only the
        supplied fields are touched. Note that supplying a nested array still
        reconciles it fully: to update one variant without deleting its
        siblings, include **all** active variants (existing ones by id).
      parameters:
        - name: restricted
          in: query
          required: false
          description: >
            Variant visibility filter. `false` — public variants only; `true` —
            restricted (member-only) variants, falling back to public ones when
            the option has no active restricted variants; omitted — no
            filtering. Any value other than `true` is treated as `false`.
          schema:
            type: boolean
          example: false
        - name: language
          in: query
          required: false
          description: >
            Two-letter language code. When present, multilingual fields collapse
            from full language objects to plain strings in that language.
          schema:
            type: string
          example: de
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceOptionWrite"
            examples:
              deactivate:
                summary: Deactivate an option
                value:
                  status: INACTIVE
      responses:
        "200":
          description: Updated option (full read shape).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceOption"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    delete:
      operationId: deleteExperienceOption
      summary: Delete an option
      tags:
        - Options
      description: >
        Soft-deletes an option: it disappears from all API reads but its
        historical bookings keep their snapshots. Only the experience's
        organizer may delete (403 otherwise); returns 400 on externally-sourced
        experiences. The deleted option is also pushed to the bottom of the
        sibling sort order and the experience's minimum price is recomputed
        asynchronously.
      responses:
        "204":
          description: Option deleted.
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/options/{optionId}/upload-tickets:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: optionId
        in: path
        required: true
        description: UUID of the option (must belong to the experience in the path).
        schema:
          type: string
          format: uuid
        example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
    post:
      operationId: uploadExperienceOptionTickets
      summary: Upload ticket codes for an option
      tags:
        - Options
      description: >
        Bulk-uploads pre-generated ticket codes (e.g. entrance QR/barcode pools)
        for an option. Requires authentication and is restricted to the
        experience's organizer; returns 400 on externally-sourced experiences.


        Send one or more files as `multipart/form-data`; every non-empty line of
        every uploaded file becomes one ticket code. Codes that already exist
        are silently skipped (duplicate-safe re-upload). An optional
        `participantTypeId` form field restricts the uploaded codes to a
        specific participant type — it must belong to this experience, otherwise
        the request is a 400. The response body is empty.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: >
                    Text file with one ticket code per line. Multiple file parts
                    may be sent in one request; all of them are ingested.
                participantTypeId:
                  type: string
                  format: uuid
                  description: >
                    Optional participant type the codes are valid for. When
                    omitted the codes apply to any participant type. Must be a
                    participant type of this experience.
                  example: a7c53f01-6f9c-4d1c-9c30-1c19a1a5bd44
      responses:
        "201":
          description: Ticket codes ingested (empty body).
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/options/{optionId}/slots:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: optionId
        in: path
        required: true
        description: UUID of the option (must belong to the experience in the path).
        schema:
          type: string
          format: uuid
        example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
    get:
      operationId: listExperienceOptionSlots
      summary: List calendar slots of an option
      tags:
        - Options
      description: >
        Full calendar view of an option's availability slots in a date range,
        for managing your own inventory. Unlike the guest-facing availability
        endpoints, this returns every operational slot — selling, sold-out,
        blocked, sales-closed and soft-deleted ones — each with a computed
        `availabilityStatus`, live booked quantity and remaining capacity.


        Requires authentication; only the experience's organizer, or a partner
        explicitly granted access to it, may read this calendar. Everyone else
        gets a 403.


        `from` and `until` are required `YYYY-MM-DD` dates (inclusive, matched
        on the slot's local start date) and `from` must not be after `until`.


        ### Status semantics

        `SELLING` — bookable with remaining capacity. `SOLD_OUT` — no remaining
        capacity. `BLOCKED` — an active option block overlaps the slot. `CLOSED`
        — sales are stopped on this slot (`isBookable: false`); the slot is
        still live and its bookings are untouched. `CANCELLED` — the slot is
        soft-deleted and every booking on it has been cancelled.


        `SOLD_OUT` outranks `CLOSED`: a slot at capacity reports `SOLD_OUT`
        whether or not its sales are stopped, so read `isBookable` rather than
        inferring it from the status.
      parameters:
        - name: from
          in: query
          required: true
          description: Range start date (inclusive), local to the experience, `YYYY-MM-DD`.
          schema:
            type: string
            format: date
          example: 2026-07-01
        - name: until
          in: query
          required: true
          description: Range end date (inclusive), local to the experience, `YYYY-MM-DD`.
          schema:
            type: string
            format: date
          example: 2026-07-31
      responses:
        "200":
          description: All operational slots in the range, ordered by date and time.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceOptionCalendar"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/options/{optionId}/slots/{slotId}:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: optionId
        in: path
        required: true
        description: UUID of the option (must belong to the experience in the path).
        schema:
          type: string
          format: uuid
        example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
      - name: slotId
        in: path
        required: true
        description: UUID of the availability slot (must belong to the option in the path).
        schema:
          type: string
          format: uuid
        example: 6a5b4c3d-2e1f-4a9b-8c7d-6e5f4a3b2c1d
    patch:
      operationId: updateExperienceOptionSlot
      summary: Update a calendar slot
      tags:
        - Options
      description: >
        Updates the organizer-managed settings of a single availability slot.
        Requires authentication and is restricted to the experience's organizer.
        Returns 400 on externally-sourced experiences and on options synced from
        an external provider (`externalId` set) — external capacity is owned by
        the sync.


        At least one field must be present: `capacityOverride` (a per-slot
        capacity cap; `null` clears it back to the option's `slotCapacity`; must
        be a non-negative integer and cannot be set below the slot's current
        live-booked participant quantity) or `isBookable` (opens or closes sales
        for the slot without cancelling existing bookings).


        Responds with the slot re-serialized in the calendar shape, so
        `availableQuantity` and `availabilityStatus` reflect the change.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceOptionSlotUpdate"
            examples:
              cap:
                summary: Cap the slot at 3 seats
                value:
                  capacityOverride: 3
              clear:
                summary: Clear the override
                value:
                  capacityOverride: null
              close:
                summary: Close sales for the slot
                value:
                  isBookable: false
      responses:
        "200":
          description: The updated slot in calendar shape.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceOptionCalendarSlot"
        "204":
          description: >
            Edge case — the update was persisted but the slot no longer appears
            in the recomputed calendar for its date; no body is returned.
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/options/{optionId}/slots/{slotId}/cancel:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: optionId
        in: path
        required: true
        description: UUID of the option (must belong to the experience in the path).
        schema:
          type: string
          format: uuid
        example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
      - name: slotId
        in: path
        required: true
        description: UUID of the availability slot (must belong to the option in the path).
        schema:
          type: string
          format: uuid
        example: 6a5b4c3d-2e1f-4a9b-8c7d-6e5f4a3b2c1d
    post:
      operationId: cancelExperienceOptionSlot
      summary: Cancel a slot and its live bookings
      tags:
        - Options
      description: >
        Cancels an availability slot and every live booking on it in one atomic
        operation. Requires authentication and is restricted to the experience's
        organizer; externally-sourced experiences/options are rejected with 400.


        The slot is closed for sales and soft-deleted. Each live booking
        (`ACCEPTED`/`PENDING`/`ON_HOLD`) is cancelled with `cancelledBy:
        Organizer`, a full refund (zero cancellation fee) and the optional
        `reason` recorded on it; the usual per-booking notifications and refunds
        fire, except `ON_HOLD` cart bookings, which are silently transitioned to
        `EXPIRED` with no side effects.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/experienceOptionSlotCancelRequest"
      responses:
        "200":
          description: Slot cancelled.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/experienceOptionSlotCancelResult"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/participant-types:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    get:
      operationId: listExperienceParticipantTypes
      summary: List participant types of an experience
      tags:
        - Options
      description: >
        Returns all active participant types of the experience, ordered by
        `sortOrder`. Reads are public to API-key callers. Every row carries the
        computed `isEnabledOnBookableOptions` flag: `true` only when at least
        one ACTIVE, non-custom option of the experience does not disable the
        type **and** has at least one future bookable availability slot — i.e.
        the type is actually purchasable right now. Use it to hide dead types
        from guest-facing pickers while still showing organizers the complete
        list.
      parameters:
        - name: language
          in: query
          required: false
          description: >
            Two-letter language code. When present, multilingual fields collapse
            from full language objects to plain strings in that language.
          schema:
            type: string
          example: de
        - name: page
          in: query
          required: false
          description: Page number (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          required: false
          description: Items per page (default 50). Note the snake_case wire name.
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          required: false
          description: Set to `true` to disable pagination and return the bare array of
            results.
          schema:
            type: boolean
            default: false
          example: false
      responses:
        "200":
          description: Paginated list of participant types.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedParticipantTypes"
        "401":
          $ref: "#/components/responses/unauthorized"
    post:
      operationId: createExperienceParticipantType
      summary: Create a custom participant type
      tags:
        - Options
      description: >
        Creates a custom participant type (e.g. Senior, Student) on the
        experience. The three default types (Adult, Child, Infant) are seeded
        automatically when the experience is created and cannot be created via
        the API.


        A newly created custom type starts **disabled on every existing option**
        of the experience: organizers must explicitly enable it per option (by
        removing it from the option's `disabledParticipantTypes`) and, on
        per-person priced options, add a `participantPrices` entry for it before
        it can be booked. Creating a type may enqueue auto-translation of the
        experience content.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/participantTypeWrite"
            examples:
              senior:
                summary: Senior type with an age floor
                value:
                  name:
                    en: Senior
                  minAge: 65
                  sortOrder: 4
      responses:
        "201":
          description: Participant type created.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/participantType"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/participant-types/{participantTypeId}:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: participantTypeId
        in: path
        required: true
        description: UUID of the participant type (must belong to the experience in the
          path).
        schema:
          type: string
          format: uuid
        example: a7c53f01-6f9c-4d1c-9c30-1c19a1a5bd44
    get:
      operationId: getExperienceParticipantType
      summary: Retrieve a participant type
      tags:
        - Options
      description: >
        Returns a single active participant type by id, including its computed
        `isEnabledOnBookableOptions` flag. Soft-deleted types and types of other
        experiences return 404.
      parameters:
        - name: language
          in: query
          required: false
          description: >
            Two-letter language code. When present, multilingual fields collapse
            from full language objects to plain strings in that language.
          schema:
            type: string
          example: de
      responses:
        "200":
          description: The participant type.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/participantType"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    put:
      operationId: updateExperienceParticipantType
      summary: Update a participant type
      tags:
        - Options
      description: >
        Full update of a participant type. Only the experience's organizer may
        update (403 otherwise). On the three **default** types (Adult, Child,
        Infant; `isDefault: true`) only the age range may be changed — any field
        other than `minAge`/`maxAge` in the payload is rejected with a 400.
        Custom types are freely editable. Updates may enqueue auto-translation
        of the experience content.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/participantTypeWrite"
      responses:
        "200":
          description: Updated participant type.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/participantType"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    patch:
      operationId: partialUpdateExperienceParticipantType
      summary: Partially update a participant type
      tags:
        - Options
      description: >
        Partial update of a participant type. Same rules as PUT: organizer-only,
        and default types accept changes to `minAge`/`maxAge` only.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/participantTypeWrite"
            examples:
              ageRange:
                summary: Tune the Child age range on a default type
                value:
                  minAge: 4
                  maxAge: 15
      responses:
        "200":
          description: Updated participant type.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/participantType"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    delete:
      operationId: deleteExperienceParticipantType
      summary: Delete a participant type
      tags:
        - Options
      description: >
        Soft-deletes a custom participant type. Only the experience's organizer
        may delete. Default types (Adult, Child, Infant) can never be deleted
        (403). The type must first be disabled on every active option of the
        experience — if any active option still enables it, the delete is
        rejected with a 400. On success the type and its per-variant prices are
        deactivated together and the experience's minimum price is recomputed
        asynchronously.
      responses:
        "204":
          description: Participant type deleted.
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/availability/dates:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    get:
      operationId: getExperienceAvailabilityDates
      summary: List available dates for an experience
      tags:
        - Experiences
      description: >
        Returns the dates in `[from, until]` on which the experience has at
        least one bookable slot on at least one option for the requested party —
        a flat, sorted date list intended to paint a booking calendar. There is
        no per-option breakdown here; drill into a specific date with the
        `slots` endpoint.


        ### Visibility

        The experience must be visible to the caller: their own experiences,
        experiences explicitly shared with them, or public active ones.
        Otherwise this returns 404 — indistinguishable from a non-existent id.


        ### Participants

        `participants` is a comma-separated `typeId:count` list; every type id
        must be an active participant type of this experience (400 otherwise).
        When omitted, availability is participant-agnostic — evaluated for a
        single participant — and the exact party is re-validated at booking
        time. Participant types marked capacity-exempt (e.g. infants) do not
        consume capacity.
      parameters:
        - name: from
          in: query
          required: true
          description: Range start date (inclusive), `YYYY-MM-DD`. Must not be after
            `until`.
          schema:
            type: string
            format: date
          example: 2026-07-01
        - name: until
          in: query
          required: true
          description: Range end date (inclusive), `YYYY-MM-DD`.
          schema:
            type: string
            format: date
          example: 2026-07-31
        - name: participants
          in: query
          required: false
          description: >
            Requested party as comma-separated `participantTypeId:count` pairs
            (counts must be positive; all type ids must be active types of this
            experience). When omitted, availability is evaluated for a single
            participant with no type filtering; the real party is validated at
            booking time.
          schema:
            type: string
          example: a7c53f01-6f9c-4d1c-9c30-1c19a1a5bd44:2,b8d64e12-7a0d-4e2d-8d41-2d2ab2b6ce55:1
        - name: optionId
          in: query
          required: false
          description: >
            Narrow the availability check to a single option. Must be a valid
            UUID (400 otherwise). The snake_case alias `option_id` is accepted
            during migration.
          schema:
            type: string
            format: uuid
          example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
        - name: restricted
          in: query
          required: false
          description: >
            Variant visibility filter. `false` — public variants only; `true` —
            restricted (member-only) variants, falling back to public ones when
            the option has no active restricted variants; omitted — no
            filtering. Any value other than `true` is treated as `false`.
          schema:
            type: boolean
          example: false
      responses:
        "200":
          description: Sorted list of available dates.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/availabilityDates"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/availability/slots:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the parent experience.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    get:
      operationId: getExperienceAvailabilitySlots
      summary: List available time slots for a date
      tags:
        - Experiences
      description: >
        Returns slot-level availability for a single date, broken down by
        option. Every active option of the experience appears in the response
        (or just one when `optionId` is passed): options with bookable slots
        carry them sorted by start time with `unavailabilityReason: null`;
        options without carry an empty `slots` array and a machine-readable
        reason. Visibility and participant semantics are identical to the
        `dates` endpoint.


        For experiences synced from an external provider
        (Bokun/Regiondo/Kompas), the provider's availability for the requested
        date is refreshed best-effort before computing the response.


        ### Option unavailability reasons

        `PARTICIPANT_TYPE_MISMATCH` — the option disables one of the requested
        participant types. `MAX_PARTICIPANTS_EXCEEDED` — no visible variant can
        hold the requested party. `NO_SLOTS` — no availability slots exist for
        the option on this date. `SOLD_OUT` — slots exist but none has
        sufficient remaining capacity.


        ### Variants

        Each option also lists its visible variants with a per-variant
        `isAvailable` flag; the only per-variant reason is
        `MAX_PARTICIPANTS_EXCEEDED` (the variant's `maxParticipants` is below
        the requested party size).


        ### Discounts

        Each bookable slot carries the discount a booking made now would get:
        the option's early-bird discount when booking far enough in advance
        (`type: EARLY_BIRD`) or the best matching scheduled availability
        discount (`type: AVAILABILITY`), or `null`.
      parameters:
        - name: date
          in: query
          required: true
          description: The date to check, local to the experience, `YYYY-MM-DD`.
          schema:
            type: string
            format: date
          example: 2026-07-14
        - name: participants
          in: query
          required: false
          description: >
            Requested party as comma-separated `participantTypeId:count` pairs
            (counts must be positive; all type ids must be active types of this
            experience). When omitted, availability is evaluated for a single
            participant with no type filtering; the real party is validated at
            booking time.
          schema:
            type: string
          example: a7c53f01-6f9c-4d1c-9c30-1c19a1a5bd44:2,b8d64e12-7a0d-4e2d-8d41-2d2ab2b6ce55:1
        - name: optionId
          in: query
          required: false
          description: >
            Narrow the availability check to a single option. Must be a valid
            UUID (400 otherwise). The snake_case alias `option_id` is accepted
            during migration.
          schema:
            type: string
            format: uuid
          example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
        - name: restricted
          in: query
          required: false
          description: >
            Variant visibility filter. `false` — public variants only; `true` —
            restricted (member-only) variants, falling back to public ones when
            the option has no active restricted variants; omitted — no
            filtering. Any value other than `true` is treated as `false`.
          schema:
            type: boolean
          example: false
      responses:
        "200":
          description: Per-option slot availability for the date.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/availabilitySlots"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/options:
    get:
      operationId: listOptions
      summary: List options across experiences
      tags:
        - Options
      description: >
        Lists active (non-deleted) options across all experiences. This is the
        cross-experience read surface used by the booking flow to load the
        bookable products for one or more experiences in a single call —
        typically narrowed with `experienceIds`.


        ### Status

        Defaults to `ACTIVE` options only. Pass a comma-separated `status` list
        (e.g. `ACTIVE,INACTIVE`) to widen the result.


        ### Variant visibility

        Each option embeds its variants. Use `restricted=true` to get the
        member-only variants (falling back to public ones when an option has
        none), `restricted=false` for public variants only, or omit the
        parameter to get all active variants.


        ### Multilingual fields

        `name` and `note` (and nested variant/add-on/extra-field names) resolve
        to a single string in the requested `language` by default. Pass
        `showTranslations=true` to get the full per-language object instead
        (e.g. `{"en": "Shared", "de": "Geteilt"}`).


        Soft-deleted options never appear. Results are ordered by each option's
        score, ascending.
      parameters:
        - name: experienceIds
          in: query
          required: false
          description: >
            Comma-separated list of experience UUIDs to narrow the result to.
            Only options belonging to these experiences are returned. The legacy
            snake_case alias `experience_ids` is also accepted during the
            frontend migration; `experienceIds` is canonical.
          schema:
            type: string
          example: 8f14e45f-ceea-467f-a34e-4a3d1a3f5b6a,6512bd43-d9ca-4e90-b1aa-cf1c75f6d9e1
        - name: status
          in: query
          required: false
          description: >
            Comma-separated option statuses to include (`DRAFT`, `ACTIVE`,
            `INACTIVE`). Defaults to `ACTIVE` when omitted. Unknown values
            return a 400 listing the allowed statuses.
          schema:
            type: string
          example: ACTIVE,INACTIVE
        - name: restricted
          in: query
          required: false
          description: >
            Variant visibility filter. `true` returns restricted (member-only)
            variants per option, falling back to public variants when an option
            has none; `false` returns only public variants; omit to return all
            active variants. Any value other than `true` counts as `false`.
          schema:
            type: string
            enum:
              - "true"
              - "false"
          example: "false"
        - name: language
          in: query
          required: false
          description: >
            Language code used to resolve multilingual fields (e.g. `de`). Falls
            back to the default language when a translation is missing.
          schema:
            type: string
          example: de
        - name: showTranslations
          in: query
          required: false
          description: >
            Set to `true` to return multilingual fields as full per-language
            objects instead of a single resolved string.
          schema:
            type: string
            enum:
              - "true"
              - "false"
          example: "false"
        - name: page
          in: query
          required: false
          description: 1-based page number for pagination.
          schema:
            type: integer
            minimum: 1
            default: 1
          example: 1
        - name: page_size
          in: query
          required: false
          description: Number of results per page (server default applies when omitted).
          schema:
            type: integer
            minimum: 1
          example: 50
        - name: nopagination
          in: query
          required: false
          description: >
            Set to `true` to return the full result set as a flat array without
            the pagination envelope.
          schema:
            type: string
            enum:
              - "true"
              - "false"
          example: "false"
      responses:
        "200":
          description: >
            Paginated list of options (or a flat array when `nopagination=true`).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedOptions"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
  /v2/options/{optionId}:
    get:
      operationId: retrieveOption
      summary: Retrieve an option
      tags:
        - Options
      description: >
        Retrieves a single option by UUID, with its full tree of variants
        (including pricing tiers and per-participant prices), add-ons, extra
        fields, discounts and resource groups.


        Unlike the list endpoint, no status filter applies here: `DRAFT` and
        `INACTIVE` options resolve normally. Soft-deleted options return 404.


        The `restricted`, `language` and `showTranslations` query parameters
        behave exactly as on the list endpoint (see `listOptions`).
      parameters:
        - name: optionId
          in: path
          required: true
          description: UUID of the option.
          schema:
            type: string
            format: uuid
          example: 0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
        - name: restricted
          in: query
          required: false
          description: |
            Variant visibility filter — same semantics as on `listOptions`.
          schema:
            type: string
            enum:
              - "true"
              - "false"
          example: "true"
        - name: language
          in: query
          required: false
          description: Language code used to resolve multilingual fields.
          schema:
            type: string
          example: en
        - name: showTranslations
          in: query
          required: false
          description: >
            Set to `true` to return multilingual fields as full per-language
            objects instead of a single resolved string.
          schema:
            type: string
            enum:
              - "true"
              - "false"
          example: "false"
      responses:
        "200":
          description: The option with its full nested configuration tree.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/optionDetail"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings:
    get:
      operationId: listBookings
      summary: List bookings
      description: >
        Lists all bookings visible to the calling partner, newest start time
        first

        (default ordering `-time`). Resellers get bookings they sold, organizers
        get

        bookings on their experiences, `BOTH` partners get the union — there is
        no way to

        list another partner's bookings.


        Results are paginated (`page`, `page_size`, default page size 50); pass

        `nopagination=true` to receive a plain array instead of the pagination
        envelope.


        ### Filtering


        Most filters accept comma-separated lists (e.g.
        `bookingStatus=ACCEPTED,PENDING`).

        The relative filters `startTime`, `bookingCreated`,
        `bookingLastModified`,

        `finalRetailPrice` and `cancellationFeeAmount` accept the modifiers
        `[eq]`, `[gt]`,

        `[lt]`, `[gte]`, `[lte]` appended to the parameter name (e.g.

        `startTime[gte]=2026-07-01T00:00:00`). Notes:


        - `startTime` filters compare **local calendar dates** — the value is
        truncated to
          `YYYY-MM-DD` and matched against the booking's local start date, so bookings do
          not drift across day boundaries between timezones.
        - `finalRetailPrice` / `cancellationFeeAmount` must be numeric; a
        non-numeric value
          is a 400. A `cancellationFeeAmount` bound only constrains `CANCELLED` bookings —
          non-cancelled bookings always pass it.
        - `activeOn=YYYY-MM-DD` is additive to `startTime` and matches every
        local day a
          multi-day/daily booking covers, not just its start day.
        - `search` is free text over booking id (exact UUID), booking code
          (case-insensitive exact), experience name, organizer name, reseller name, store
          name (contains) and traveler email (case-insensitive exact) / traveler full name
          (contains).
        - `optionId` is the v2 filter for the booked option; `rateId` is kept as
        a
          backward-compatible alias with identical behaviour.

        Sorting uses `ordering` with `time`, `createdAt` or `updatedAt` (prefix
        with `-`

        for descending).
      tags:
        - Bookings
      parameters:
        - name: page
          in: query
          description: Page number to return (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          description: Number of bookings per page. Defaults to 50.
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          description: Set to `true` to disable pagination and return a plain array of
            bookings.
          schema:
            type: boolean
            default: false
          example: false
        - name: ordering
          in: query
          description: >
            Sort field: `time`, `createdAt` or `updatedAt`. Prefix with `-` for
            descending. Defaults to `-time` (newest start time first).
          schema:
            type: string
          example: -time
        - name: bookingStatus
          in: query
          description: Comma-separated list of booking statuses to include (e.g.
            `ACCEPTED,PENDING`).
          schema:
            type: string
          example: ACCEPTED,PENDING
        - name: bookingSource
          in: query
          description: Comma-separated list of booking source identifiers (e.g. the
            widget/store that created the booking).
          schema:
            type: string
          example: experience-store
        - name: organizerId
          in: query
          description: Comma-separated list of organizer partner IDs — bookings on those
            organizers' experiences.
          schema:
            type: string
          example: org-partner-1
        - name: resellerId
          in: query
          description: Comma-separated list of reseller partner IDs — bookings sold by
            those resellers.
          schema:
            type: string
          example: hotel-partner-1
        - name: guestId
          in: query
          description: Comma-separated list of guest UUIDs the bookings are linked to.
          schema:
            type: string
          example: 6a1f2f0e-3f6a-4a9a-9d8e-1c2b3a4d5e6f
        - name: paymentProcessedBy
          in: query
          description: >
            Comma-separated list of payment collectors. Values: `TURNEO`,
            `TURNEO_LINK`, `RESELLER_CONCIERGE`, `RESELLER_ROOM`,
            `RESELLER_CARD`, `RESELLER_DEFERRED`, `ORGANIZER`,
            `PMS_ROOM_CHARGE`, `RETAIL_VOUCHER` (paid with a gift voucher),
            `RESELLER` (deprecated).
          schema:
            type: string
          example: TURNEO,TURNEO_LINK
        - name: redeemedRetailItemId
          in: query
          description: UUID of a gift voucher's retail item — returns the bookings
            redeemed with that voucher.
          schema:
            type: string
            format: uuid
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        - name: paymentStatus
          in: query
          description: "Filter by payment status: `PAYMENT_PENDING`, `PAYMENT_COLLECTED`,
            `REFUNDED` or `FREE`."
          schema:
            type: string
          example: PAYMENT_COLLECTED
        - name: optionId
          in: query
          description: Comma-separated list of option UUIDs the bookings were made on.
            Malformed UUIDs return a 400.
          schema:
            type: string
          example: 0d9f4c1a-2b3c-4d5e-8f9a-0b1c2d3e4f5a
        - name: rateId
          in: query
          description: Alias for `optionId`, kept for older integrations — prefer
            `optionId`. Malformed UUIDs return a 400.
          schema:
            type: string
          example: 0d9f4c1a-2b3c-4d5e-8f9a-0b1c2d3e4f5a
        - name: experienceId
          in: query
          description: Comma-separated list of experience UUIDs.
          schema:
            type: string
          example: 9b2e6c7d-1f2a-4b3c-8d9e-0a1b2c3d4e5f
        - name: category
          in: query
          description: Comma-separated list of experience category types (e.g.
            `Wellness`). Matched on the booked experience's `categories.type`.
          schema:
            type: string
          example: Wellness
        - name: storeId
          in: query
          description: Comma-separated list of store IDs (matched against booking metadata).
          schema:
            type: string
          example: store-123
        - name: resourceId
          in: query
          description: Comma-separated list of resource UUIDs — bookings holding a block
            on any of those resources. Malformed UUIDs return a 400.
          schema:
            type: string
          example: 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
        - name: bookingCode
          in: query
          description: Comma-separated list of short booking codes (exact match).
          schema:
            type: string
          example: AC3F1TT2
        - name: resellerReference
          in: query
          description: Reseller's internal reference (contains, case-insensitive).
          schema:
            type: string
          example: PMS-42
        - name: travelerEmail
          in: query
          description: Traveler email (exact match, case-insensitive).
          schema:
            type: string
          example: ada.lovelace@example.com
        - name: agentName
          in: query
          description: One agent name or a comma-separated list of exact agent names
            stored on booking metadata.
          schema:
            type: string
          example: Iva,Marta
        - name: organizerPropertyId
          in: query
          description: Property UUID associated with the experience (organizer side).
          schema:
            type: string
            format: uuid
          example: 5f6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c
        - name: resellerPropertyId
          in: query
          description: Property UUID the booking was sold at (reseller side).
          schema:
            type: string
            format: uuid
          example: 5f6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c
        - name: hasReviews
          in: query
          description: "`true` returns only bookings with at least one review; `false`
            only bookings without reviews."
          schema:
            type: boolean
          example: true
        - name: reviewStatus
          in: query
          description: "Comma-separated review statuses: `PENDING`, `ACCEPTED`, `REJECTED`."
          schema:
            type: string
          example: ACCEPTED
        - name: reviewSource
          in: query
          description: Comma-separated review sources.
          schema:
            type: string
          example: reseller
        - name: reviewRating
          in: query
          description: Comma-separated integer ratings (1–5).
          schema:
            type: string
          example: 4,5
        - name: reviewText
          in: query
          description: Review text search (contains, case-insensitive).
          schema:
            type: string
          example: amazing guide
        - name: reviewFrom
          in: query
          description: Reviews dated on or after this date (`YYYY-MM-DD`).
          schema:
            type: string
            format: date
          example: 2026-06-01
        - name: reviewUntil
          in: query
          description: Reviews dated on or before this date (`YYYY-MM-DD`, inclusive of
            the whole day).
          schema:
            type: string
            format: date
          example: 2026-06-30
        - name: search
          in: query
          description: >
            Free-text search across booking id (exact UUID), booking code
            (exact, case-insensitive), experience name, organizer name, reseller
            name, store name (contains) and traveler email (exact,
            case-insensitive) / traveler full name (all words must match).
          schema:
            type: string
          example: Ada Lovelace
        - name: activeOn
          in: query
          description: >
            Local date (`YYYY-MM-DD`). Returns bookings whose occupied span
            (start date through computed end date, mode-aware for multi-day
            rentals) overlaps that day. Additive to `startTime` filters.
            Malformed dates return a 400.
          schema:
            type: string
            format: date
          example: 2026-07-14
        - name: startTime[gte]
          in: query
          description: >
            Bookings starting on or after this local date. The value is
            truncated to `YYYY-MM-DD` and compared against the booking's local
            start date. Also supports `[lte]`, `[gt]`, `[lt]`, `[eq]`.
          schema:
            type: string
          example: 2026-07-01T00:00:00
        - name: startTime[lte]
          in: query
          description: Bookings starting on or before this local date (truncated to
            `YYYY-MM-DD`).
          schema:
            type: string
          example: 2026-07-31T23:59:59
        - name: bookingCreated[gte]
          in: query
          description: Bookings created at or after this timestamp. Also supports `[lte]`,
            `[gt]`, `[lt]`, `[eq]`.
          schema:
            type: string
            format: date-time
          example: 2026-06-01T00:00:00Z
        - name: bookingLastModified[gte]
          in: query
          description: Bookings last modified at or after this timestamp. Also supports
            `[lte]`, `[gt]`, `[lt]`, `[eq]`.
          schema:
            type: string
            format: date-time
          example: 2026-06-15T00:00:00Z
        - name: finalRetailPrice[gte]
          in: query
          description: Bookings with a final price greater than or equal to this numeric
            amount. Also supports `[lte]`, `[gt]`, `[lt]`, `[eq]`. Non-numeric
            values return a 400.
          schema:
            type: number
          example: 100
        - name: cancellationFeeAmount[gte]
          in: query
          description: >
            Constrains the cancellation fee of `CANCELLED` bookings
            (non-cancelled bookings always pass). Also supports `[lte]`, `[gt]`,
            `[lt]`, `[eq]`. Non-numeric values return a 400.
          schema:
            type: number
          example: 1
      responses:
        "200":
          description: Paginated list of bookings. Each result embeds its full experience
            and option objects.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedBookings"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
    post:
      operationId: createBooking
      summary: Create a booking (not supported — use orders)
      description: >
        Direct booking creation is intentionally **not supported** in v2. This
        endpoint

        always returns a 400 with the message

        `"Bookings must be created through orders. Use POST
        /v2/booking-orders/"`.


        To create bookings: create an order (`POST /v2/booking-orders`), add
        bookings to

        it (each starts `ON_HOLD` with capacity reserved), then confirm the
        order to

        transition them to `ACCEPTED` / `PENDING`.
      tags:
        - Bookings
      responses:
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
  /v2/bookings/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: >
          Booking UUID **or** short booking code (e.g. `AC3F1TT2`) — non-UUID
          values are looked up by booking code. A booking outside the caller's
          scope returns 404.
        schema:
          type: string
        example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
    get:
      operationId: retrieveBooking
      summary: Retrieve a booking
      description: >
        Returns the full booking, including the embedded experience and option
        objects,

        price breakdown, traveler information, payment state, resources, notes,
        review

        and any pending alternative slots.


        The `{id}` path segment accepts either the booking UUID or the
        human-friendly

        booking code. 404 means the booking does not exist, is soft-deleted /
        `REMOVED`,

        **or belongs to a partner other than the caller** — existence is never
        leaked

        across partners.


        `DELETE` on this URL is not supported (405) — v2 bookings are never
        hard-deleted;

        use `POST /v2/bookings/{id}/cancel` instead.
      tags:
        - Bookings
      responses:
        "200":
          description: The booking.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    patch:
      operationId: updateBooking
      summary: Update booking details
      description: >
        Partially updates non-structural booking details. Supported fields:


        - `travelerInformation` — merged onto the stored object (only supplied
        keys change)

        - `extraFieldResponses` — replaced; every `fieldId` must belong to the
        booking's
          option or the request is a 400
        - `payment` — merged; transitioning a Turneo-processed payment from
        `REFUNDED`
          back to `PAYMENT_COLLECTED`/`PAYMENT_PENDING` is rejected (400)
        - `meetingPointId` / `meetingPoint` — resolves a predefined meeting
        point of the
          experience, or sets a custom pickup
        - `notes` — one note per source (`fromSeller`, `fromOrganizer`,
        `fromTraveler`);
          appended on a new line per source
        - `resellerProperty` — property UUID to set, or `null` to clear

        - `reseller` — store/agent metadata (`storeId`, `storeName`,
        `agentName`, ...)
          extracted and merged into booking metadata

        ### Rejected fields (400)


        - `bookingStatus` — use the dedicated `accept` / `reject` / `complete` /
          `cancel` endpoints
        - structural fields: `variantId`, `availabilitySlotId`,
        `participantCounts`,
          `bookingAddons`, `durationUnits` — fixed after creation (use `reschedule` to
          move slots)
        - `resources` — use `POST /v2/bookings/{id}/reassign-resources`


        ### Side effects


        Edits to externally-sourced bookings (Bokun/Regiondo) are pushed to the
        external

        provider (payment-only edits stay local; some providers reject edits
        entirely,

        which surfaces as a 400). While the booking is `PENDING`, the organizer
        response

        deadline (`reservationExpiresAt`) is recalculated after the update.
      tags:
        - Bookings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingUpdateRequest"
            examples:
              traveler:
                summary: Fix the traveler's phone number
                value:
                  travelerInformation:
                    phone: "+385911234567"
              notesAndProperty:
                summary: Add a concierge note and link the hotel property
                value:
                  notes:
                    fromSeller: Guest asked for a vegetarian lunch
                  resellerProperty: 5f6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c
              paymentCollected:
                summary: Record that payment was collected
                value:
                  payment:
                    status: PAYMENT_COLLECTED
      responses:
        "200":
          description: The updated booking.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/cancel:
    post:
      operationId: cancelBooking
      summary: Cancel a booking
      description: >
        Cancels a booking and frees its reserved capacity and resources.


        - `ON_HOLD` bookings take a fast path: they are set to `EXPIRED` with no
          cancellation details, fee or notifications (removing an unconfirmed cart item).
        - All other cancellable bookings are set to `CANCELLED` with a
        `cancellation`
          object recording who cancelled, when, why and the fee.

        ### Cancellation fee


        - `cancelledBy: Organizer` → fee 0 (full refund)

        - `cancelledBy: Traveler` while alternative slots were offered → fee 0

        - otherwise the experience's tiered refund policy applies (tier chosen
        by hours
          until start); an experience with **no** refund policy is non-refundable — the
          full price becomes the fee.
        - `cancellationFeeAmount` (optional) overrides the policy-computed fee.
        It never
          applies to the two full-refund branches above and cannot exceed the booking
          price.

        ### Guards (400)


        - already `CANCELLED` / `EXPIRED` bookings cannot be cancelled again

        - cannot cancel more than 24 hours after the booking's start time

        - `cancelledBy` is required and must be one of `Traveler`, `Organizer`,
          `Reseller`, `Admin`

        ### Side effects


        Externally-sourced bookings (Bokun/Regiondo) are cancelled at the
        provider. A

        refund for the non-fee remainder is issued automatically for
        gateway-collected

        payments. Cancellation emails are sent (organizer-cancelled vs

        traveler/reseller-cancelled templates), the reseller is notified, and
        the hotel

        PMS folio is updated to "Cancelled".
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingCancelRequest"
            examples:
              traveler:
                summary: Traveler-initiated cancellation
                value:
                  cancelledBy: Traveler
                  cancelledReason: Change of plans
              organizer:
                summary: Organizer cancels (full refund)
                value:
                  cancelledBy: Organizer
                  cancelledReason: Bad weather
      responses:
        "204":
          description: Booking cancelled (or ON_HOLD booking expired). No response body.
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/accept:
    post:
      operationId: acceptBooking
      summary: Accept a pending booking
      description: >
        Accept a booking. No request body is needed.


        - `PENDING` → `ACCEPTED`: the normal on-request acceptance — **organizer
        only**
          (other partners get a 403).
        - `REJECTED` → `ACCEPTED`: recovering a rejected booking — the organizer
        **or
          the booking's reseller** may call it, and it is allowed **only when payment is
          collected by the reseller** (`RESELLER_CONCIERGE`, `RESELLER_ROOM`,
          `RESELLER_CARD`, `RESELLER_DEFERRED`) — a Turneo/Stripe authorization is
          voided on rejection, so those must go through `POST /v2/bookings/{id}/reinstate`
          instead. Slot capacity and resources are re-validated and re-reserved (they
          were freed on rejection) — if either is no longer available the request fails
          with a 400.

        Any other current status is a 400. For the initial checkout flow
        (`ON_HOLD` →

        confirmed), use the order confirm endpoint instead.


        ### Side effects


        Confirmation emails to traveler and organizer, resource-assignment
        notifications,

        reseller "new booking" notification, and the PMS folio is updated to
        "Approved".
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      responses:
        "200":
          description: The accepted booking.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/reinstate:
    post:
      operationId: reinstateBooking
      summary: Reinstate a rejected booking to pending
      description: >
        Moves a `REJECTED` booking back to `PENDING` with a fresh organizer
        response

        window — the Hub "revive" for bookings rejected by mistake or by the
        response

        timeout. No request body.


        ### Eligibility (400 with the reason otherwise)


        - booking status is `REJECTED`

        - not an externally-sourced booking (Bokun/Regiondo)

        - the payment can still be collected — for Turneo/Stripe the
        authorization must
          still be capturable; for Square the payment must be APPROVED/COMPLETED;
          reseller-collected methods are always eligible. A gateway probe failure
          is a 400 ("try again"), never a 500.
        - the slot and resources still have capacity (re-reserved atomically)


        ### Side effects


        Organizer "please respond" email (+ WhatsApp) and the guest's
        awaiting-confirmation

        email are re-sent. Recorded on the activity feed (`booking.modified`,
        with the

        acting user).
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      responses:
        "200":
          description: The reinstated booking (now `PENDING`).
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/mark-completed:
    post:
      operationId: markBookingCompleted
      summary: Manually mark a past-dated booking as completed
      description: >
        Sets a `PENDING`, `ACCEPTED` or `REJECTED` booking to `COMPLETED` — the
        manual

        counterpart of the automatic completion sweep. No request body.


        ### Guards (400)


        - the booking's start time must have passed (future-dated bookings go
        through
          accept/reinstate instead)
        - `CANCELLED` / `NO_SHOW` / already-`COMPLETED` bookings cannot be
        completed

        - a gateway-charged (Stripe/Square) payment still `PAYMENT_PENDING` must
        hold a live,
          collectable authorization — a voided one is refused, since completion would recognize
          revenue that can never be collected. Property-collected payments always pass (the
          money settles at the property).
        - the booking's month must not have an issued organizer invoice (closed
        accounting
          period) — ask finance to credit or regenerate the statement first

        From `REJECTED` ("the guest attended anyway") resources are re-reserved

        best-effort — completion is never blocked by the slot having since
        filled up.


        ### Side effects


        Fires the same "completed" booking event as the sweep and records

        `booking.modified` on the activity feed with the acting user. Organizer
        and

        reseller receive the booking-modified notification (no guest email).
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      responses:
        "200":
          description: The completed booking.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/adjust-pricing:
    post:
      operationId: adjustBookingPricing
      summary: Adjust a booking's price or commission (admin-only)
      description: >
        Manually corrects a booking's pricing. At least one of the two fields
        must be

        sent.


        - `finalPriceAmount` — only when the payment was collected by the
        property
          (not `TURNEO`/`TURNEO_LINK`/`RESELLER_CARD` — re-pricing a gateway charge would
          desync it). `netRate` scales to preserve the commission fraction; payout
          fields recompute.
        - `commission` — percent, **custom bookings only**; recomputes `netRate`
        and
          updates the custom experience's commission.

        A booking already carrying a discount or voucher cannot be re-priced
        (400), and neither can a booking in

        a month whose organizer statement has already been invoiced (closed
        accounting

        period).


        ### Side effects


        Recorded on the activity feed (`booking.price_changed`, with old→new
        amounts

        and the acting user). Organizer and reseller receive the
        booking-modified

        notification (no guest email — pricing is payout bookkeeping).
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingAdjustPricingRequest"
            examples:
              price:
                summary: Correct the price of a property-collected booking
                value:
                  finalPriceAmount: 150
                  note: Guest upgraded on site
              commission:
                summary: Fix a custom booking's commission
                value:
                  commission: 25
      responses:
        "200":
          description: The booking with updated pricing.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/reject:
    post:
      operationId: rejectBooking
      summary: Reject a pending booking (optionally with alternatives)
      description: >
        Organizer rejects a `PENDING` booking. Only the organizer of the booked

        experience may call this (403 otherwise); any status other than
        `PENDING` is a

        400. Reserved resources are freed in both variants.


        ### Straight rejection


        Send only `notes` (optional). The booking moves `PENDING` → `REJECTED`
        and the

        traveler receives a rejection email (including any `fromOrganizer`
        note).


        ### Rejection with alternatives


        Send `alternativeSlots` — a list of availability-slot UUIDs belonging to
        the same

        option. The booking **stays `PENDING`** with the offered slots stored on

        `alternativeSlots`, the organizer response deadline is refreshed, and
        the traveler

        receives an "alternatives offered" email. The traveler then either
        accepts one via

        `POST /v2/bookings/{id}/accept-alternative` (→ `ACCEPTED`) or cancels
        with a full

        refund. Offering the booking's current slot, or a slot that is inactive,
        not

        bookable or from another option, is a 400.
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingRejectRequest"
            examples:
              straight:
                summary: Reject outright
                value:
                  notes:
                    fromOrganizer: Fully booked that day
              withAlternatives:
                summary: Offer two alternative slots
                value:
                  alternativeSlots:
                    - 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
                    - 4d5e6f7a-8b9c-4d0e-1f2a-3b4c5d6e7f8a
                  notes:
                    fromOrganizer: We're full, but these dates work
      responses:
        "200":
          description: The booking — `REJECTED`, or still `PENDING` with
            `alternativeSlots` populated.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/accept-alternative:
    post:
      operationId: acceptBookingAlternative
      summary: Accept an offered alternative slot
      description: >
        Accepts one of the alternative slots the organizer offered on rejection.
        The slot

        must be among the booking's pending `alternativeSlots` (400 otherwise,
        and 400 if

        no alternatives are pending).


        Atomically re-validates capacity and reserves resources on the chosen
        slot (400

        if it filled up in the meantime), moves the booking to the new slot's
        date/time,

        sets the status to `ACCEPTED` and clears the pending alternatives.
        Pricing is

        preserved from the original booking.


        ### Side effects


        If the option carries pre-uploaded QR ticket codes, tickets are assigned
        and

        emailed to the traveler. Traveler/organizer confirmation emails are sent
        and the

        PMS folio is updated to "Approved" (no reseller or admin notification
        for this

        transition).
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingAcceptAlternativeRequest"
            examples:
              accept:
                value:
                  availabilitySlotId: 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
      responses:
        "200":
          description: The booking, now `ACCEPTED` on the chosen slot.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/reschedule:
    post:
      operationId: rescheduleBooking
      summary: Reschedule a booking to a different slot or, for custom bookings, a new
        time
      description: >
        Moves a `PENDING`, `ACCEPTED` or `COMPLETED` booking. The payload
        carries **exactly one** of:


        - `availabilitySlotId` — move to a different availability slot of the
        **same option**.

        - `localTime` — **custom bookings only**: a custom booking's synthesised
        option is pinned
          to exactly one slot, so there is never another slot to move to — instead the slot itself
          (and the option's window/schedule config) moves to the given wall-clock time in the
          experience's timezone. Manually attached resource blocks move with it, re-checked for
          conflicts at the new window. No cut-off check (same trust as creation); refused more
          than 24 hours in the past.

        Pricing is preserved in both modes. In one transaction: old resource
        blocks are

        freed (slot mode) or moved (localTime mode), the new slot's capacity and
        resource availability are validated and

        reserved, and the booking's date/time move to the new slot. While
        `PENDING`, the

        organizer response deadline is recalculated. A `COMPLETED` booking moved
        to a

        new slot returns to `ACCEPTED` and re-completes automatically

        once the new date has passed; its captured payment is untouched.


        ### Guards (400)


        - booking status is not `PENDING`/`ACCEPTED`/`COMPLETED`

        - the payment was refunded — the guest's money was returned and there is
        no
          re-collection flow, so the booking cannot re-enter the lifecycle
        - neither or both of `availabilitySlotId` and `localTime` provided

        - `availabilitySlotId` unknown, inactive or not bookable

        - the slot belongs to a different option, or is the booking's current
        slot

        - `localTime` on a non-custom booking, malformed, equal to the current
        start,
          or more than 24 hours in the past
        - a future slot inside the experience's cut-off window. Past slots are
        allowed
          (a date change may record what actually happened), guarded only by the
          accounting rule below
        - the new slot no longer has capacity or free resources

        - the booking is externally sourced (Bokun/Regiondo) — rescheduling
        external
          bookings is not supported
        - the current or the target month already has an issued organizer
        invoice
          (closed accounting period)

        ### Side effects


        "Booking updated" emails to traveler and organizer, resource
        notifications,

        reseller update notification, and the PMS folio is updated to "Updated".
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingRescheduleRequest"
            examples:
              move:
                value:
                  availabilitySlotId: 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
              moveCustomBooking:
                value:
                  localTime: 2026-08-12T06:00:00
      responses:
        "200":
          description: The rescheduled booking.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/complete:
    post:
      operationId: completeBookingPayment
      summary: Mark a booking's payment as collected
      description: >
        Sets the booking's `payment.status` to `PAYMENT_COLLECTED`. No request
        body is

        needed. Used when the reseller/organizer collects payment outside the
        Turneo

        gateway (concierge, room charge, on-site).


        Guards (400): the booking must be `PENDING` or `ACCEPTED`, and a
        Turneo-processed

        payment already `REFUNDED` cannot be flipped back to collected.


        Despite the name, this does **not** change the booking status —
        `COMPLETED`

        booking status is set automatically when the experience time passes.
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      responses:
        "200":
          description: The booking with `payment.status` set to `PAYMENT_COLLECTED`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/refund:
    post:
      operationId: refundBooking
      summary: Refund a booking payment
      description: >
        Refunds a booking's payment. Works for `CANCELLED` bookings (the normal

        path, using the stored cancellation details) and for `COMPLETED`
        bookings

        (late refunds — the booking status is untouched; the fee defaults to the

        override or 0). `NO_SHOW` bookings are **not** refundable directly:
        cancel

        first, so the refund lands in the statement as a cancellation refund
        (note

        that cancellation is only possible up to 24 hours after the start time).

        Optionally override the cancellation fee: the refunded amount is the
        final

        price minus `cancellationFeeAmount`, and must be positive — a fee
        covering

        the full price is refused (nothing to refund).


        Gateway-charged payments are refunded through Stripe/Square.

        **Property-collected payments** have no gateway to call — the endpoint
        records

        the off-platform settlement by flipping `payment.status` to `REFUNDED`.

        Bookings in a month whose organizer statement has already been invoiced
        are

        refused (400) — a refund would silently rewrite the closed period.


        A reseller (or `BOTH`-type partner) can refund a booking they own; a
        booking

        outside their scope returns 404. Any other caller gets a 401 (empty
        body).

        A missing gateway payment/intent is a 400 (nothing was

        refunded); gateway errors surface as a 500 with

        `{"message": "...", "error": "..."}` — the refund can be retried.
        Successful

        refunds are recorded on the activity feed (`booking.refunded`, with the

        acting user).
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: V2REFUND001
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingRefundRequest"
            examples:
              storedFee:
                summary: Refund using the stored cancellation fee
                value: {}
              overrideFee:
                summary: Keep a 10 EUR fee, refund the rest
                value:
                  cancellationFeeAmount: 10
      responses:
        "200":
          description: Refund processed.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingRefundResponse"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/reassign-resources:
    post:
      operationId: reassignBookingResources
      summary: Reassign the booking's resources
      description: >
        Replaces **all** current resource assignments (guides, vehicles, courts,
        ...) with

        the given list — always send the complete desired set, not a diff. In
        one

        transaction the old resource blocks are freed and the requested
        resources are

        validated against the booking's slot, party size and duration, then
        reserved.


        Guards (400): `resources` must be a non-empty list of valid UUIDs; the
        requested

        resources must belong to the option's resource groups and be free for
        the

        booking's time window, and the slot must still have capacity.
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingReassignResourcesRequest"
            examples:
              swapGuide:
                value:
                  resources:
                    - 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
      responses:
        "200":
          description: The booking with its new resource assignments.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/no-show:
    post:
      operationId: markBookingNoShow
      summary: Mark a booking as a no-show
      description: >
        Marks an `ACCEPTED` or `COMPLETED` booking as `NO_SHOW` and frees its
        resource

        blocks so the resources become available again. **No refund is issued.**
        No

        request body is needed.


        ### Guards


        - only for in-house experiences where the reseller is also the organizer
        (403
          otherwise)
        - status must be `ACCEPTED` or `COMPLETED` (400)

        - allowed only from the booking's start time until 24 hours after it
        (400)


        No traveler, organizer or reseller notifications are sent.
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      responses:
        "200":
          description: The booking with status `NO_SHOW`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/reviews:
    post:
      operationId: createBookingReview
      summary: Create a review on a booking
      description: >
        Creates a traveler review attached to this booking (the booking id is
        taken from

        the URL). Only the booking's reseller may post a review on it (403
        otherwise).

        Reviews start in `PENDING` status and are surfaced on the booking's
        `review` field

        once accepted (auto-accepted after 24h if not moderated).
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingReviewRequest"
            examples:
              full:
                value:
                  rating: 5
                  reviewText: Great tour, amazing guide!
                  reviewerName: Ada Lovelace
                  reviewDate: 2026-07-01
                  internalFeedback: Guide was excellent
      responses:
        "201":
          description: The created review.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingReview"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    patch:
      operationId: updateBookingReview
      summary: Update the booking's review
      description: >
        Partially updates the booking's existing review (the first review on the

        booking). Returns 404 if the booking has no review yet — create one with
        POST

        first.
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingReviewRequest"
            examples:
              ratingOnly:
                value:
                  rating: 4
      responses:
        "200":
          description: The updated review.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingReview"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/{id}/available-emails:
    get:
      operationId: listBookingAvailableEmails
      summary: List resendable emails for a booking
      description: >
        Returns every resendable email type with a flag indicating whether it
        can

        currently be sent for this booking, and a human-readable reason when it
        cannot.

        Availability depends on the booking's state:


        - `guest_confirmation` — booking must be `ACCEPTED`

        - `guest_review` — booking must be `COMPLETED`

        - `guest_alternatives` — booking must be `PENDING` with alternatives
        offered

        - `organizer_confirmation` — booking must be `PENDING`

        - `organizer_accepted` — booking must be `ACCEPTED`


        Use the returned `id` values as the `emailType` for

        `POST /v2/bookings/resend-email`.
      tags:
        - Bookings
      parameters:
        - name: id
          in: path
          required: true
          description: Booking UUID or booking code.
          schema:
            type: string
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
      responses:
        "200":
          description: The list of email types (always all five, with availability flags).
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/bookingAvailableEmail"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/resend-email:
    post:
      operationId: resendBookingEmail
      summary: Resend a booking email
      description: >
        Re-sends one of the booking's transactional emails, optionally CC-ing
        extra

        recipients. The email type must currently be sendable for the booking's
        state

        (see `GET /v2/bookings/{id}/available-emails`) — otherwise a 400 with
        the same

        reason string is returned. The booking must be within the caller's scope
        (404

        otherwise).
      tags:
        - Bookings
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/bookingResendEmailRequest"
            examples:
              guestConfirmation:
                value:
                  bookingId: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
                  emailType: guest_confirmation
                  additionalEmails:
                    - copy@example.com
      responses:
        "200":
          description: Email dispatched.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Human-readable confirmation.
                    example: Email sent successfully
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/bookings/digest:
    get:
      operationId: getBookingsDigest
      summary: Flat booking and retail digest for export
      description: >
        Returns one flat row per booking, retail sale, or voucher sale, shaped
        for CSV/Excel export.

        Takes the same filters, scoping and pagination as `GET /v2/bookings`
        (including

        `nopagination=true` for a plain array).


        Pass `columns` (comma-separated camelCase field names, e.g.

        `columns=bookingId,bookingCode,retailPrice`) to choose the fields;
        omitted, every field

        your `role` allows is returned.


        Money columns depend on `role`. With `role=reseller` you get the selling
        side:

        `retailPrice`, `retailPriceBreakdown`, `commission` (your earnings on
        the booking; 0 for

        in-house bookings) and `refundAmount` (non-zero only for `CANCELLED`
        bookings: final price

        minus cancellation fee). With `role=organizer` you get the supplying
        side instead:

        `currency`, `turneoFee` and `organizerPayout`. Timestamps (`startTime`,
        `bookingCreated`)

        are local wall-clock strings in the experience's timezone (`YYYY-MM-DD
        HH:MM:SS`).
      tags:
        - Bookings
      parameters:
        - name: page
          in: query
          description: Page number to return (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          description: Number of rows per page. Defaults to 50.
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          description: Set to `true` to disable pagination and return a plain array of rows.
          schema:
            type: boolean
            default: false
          example: false
        - name: columns
          in: query
          description: Comma-separated camelCase digest field names to include. Defaults
            to every field your `role` allows; money fields outside your role
            are ignored even when requested.
          schema:
            type: string
          example: bookingId,bookingCode,retailPrice,currency
        - name: role
          in: query
          description: >
            Which side of the bookings you report on. `reseller`: bookings you
            sold, with the selling-side money columns. `organizer`: bookings of
            experiences you run, with `currency`, `turneoFee` and
            `organizerPayout` instead of the selling-side money columns.
          schema:
            type: string
            enum:
              - organizer
              - reseller
          example: reseller
        - name: bookingStatus
          in: query
          description: Comma-separated booking statuses (same as the list endpoint).
          schema:
            type: string
          example: ACCEPTED,COMPLETED,CANCELLED
        - name: netRevenue
          in: query
          description: Filters rows by canonical net revenue (`retailPrice -
            refundAmount`). `positive` returns values greater than zero; `zero`
            returns values equal to zero. The filter applies consistently to
            BOOKING, RETAIL, and VOUCHER rows after authenticated partner and
            assignment scoping.
          schema:
            type: string
            enum:
              - positive
              - zero
          example: positive
        - name: agentName
          in: query
          description: One agent name or a comma-separated list of exact agent names.
            Multiple values are OR-combined and only narrow the authenticated
            partner and assignment scope.
          schema:
            type: string
          example: Iva,Marta
        - name: startTime[gte]
          in: query
          description: Local start-date lower bound (value truncated to `YYYY-MM-DD`). All
            list-endpoint filters and modifiers are supported.
          schema:
            type: string
          example: 2026-07-01T00:00:00
        - name: cancellationFeeAmount[gte]
          in: query
          description: Numeric cancellation-fee bound applied to CANCELLED bookings only.
            Non-numeric values return a 400.
          schema:
            type: number
          example: 1
      responses:
        "200":
          description: Paginated digest rows.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedBookingDigest"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
  /v2/bookings/available-filters:
    get:
      operationId: getBookingAvailableFilters
      summary: Distinct filter values for the caller's bookings
      description: >
        Returns the de-duplicated sets of experiences, stores, agent names,
        resellers and

        organizers that appear across the bookings visible to the caller — used
        to

        populate the bookings-page filter dropdowns. Honors the same query
        filters as the

        list endpoint, so the options can be narrowed to a filtered subset.
      tags:
        - Bookings
      responses:
        "200":
          description: Distinct filter options.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingAvailableFilters"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
  /v2/bookings/summary:
    get:
      operationId: getBookingsSummary
      summary: Review summary over the caller's bookings
      description: >
        Aggregates review statistics over the bookings visible to the caller
        (after

        applying any list-endpoint filters passed in the query string): the
        average

        review rating (rounded to 2 decimals) and the review count. By default
        only

        `ACCEPTED` reviews are counted; pass `unapprovedReviews` (any truthy
        value) to

        include pending/rejected reviews too.
      tags:
        - Bookings
      parameters:
        - name: unapprovedReviews
          in: query
          description: When present, includes reviews of every moderation status instead
            of only ACCEPTED ones.
          schema:
            type: boolean
          example: true
      responses:
        "200":
          description: Aggregated review stats.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/bookingSummary"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
  /v2/booking-orders:
    get:
      operationId: listBookingOrders
      summary: List booking orders
      tags:
        - Orders
      description: >
        Returns a paginated list of v2 booking orders you created, newest first

        (`-createdAt`). Soft-deleted orders (see `DELETE
        /v2/booking-orders/{id}`)

        are excluded.


        ### Filtering


        - `status` — comma-separated derived order statuses. An order is
        `ON_HOLD` only when
          it has at least one `ON_HOLD` booking and nothing has progressed to a booked state;
          `BOOKED` when any booking is `ACCEPTED`/`PENDING`/`COMPLETED`/`CANCELLED`; `EXPIRED`
          only when nothing on the order is alive. Unknown status values return a 400 listing
          the allowed values.
        - `search` — free-text, whitespace-tokenized; every token must match.
        Each token is
          matched (case-insensitive, partial) against the experience name (in the request
          language, with an `en` fallback), the order-level traveler first/last name, and each
          booking's traveler first/last name. A token that parses as a UUID additionally
          matches the order id exactly.
        - `viaPaymentLink` — `true` returns orders where any booking's payment
        carries
          `viaPaymentLink: true`; `false` returns everything else (including bookings where
          the key is absent).
      parameters:
        - name: page
          in: query
          required: false
          description: Page number to return (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          required: false
          description: Number of orders per page (default 50).
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          required: false
          description: When `true`, disables pagination and returns all matching orders in
            a plain array.
          schema:
            type: boolean
          example: false
        - name: status
          in: query
          required: false
          description: >
            Comma-separated list of derived order statuses to include. Allowed
            values: `ON_HOLD`, `BOOKED`, `EXPIRED`. Any other value returns a
            400.
          schema:
            type: string
          example: ON_HOLD,BOOKED
        - name: search
          in: query
          required: false
          description: >
            Free-text search. Tokens are ANDed and matched against experience
            names, order and booking traveler names, and (for UUID-shaped
            tokens) the order id.
          schema:
            type: string
          example: Kayak Alice
        - name: viaPaymentLink
          in: query
          required: false
          description: >
            Filter by payment-link orders. `true` matches orders with at least
            one booking whose payment has `viaPaymentLink: true`; `false`
            matches all others.
          schema:
            type: boolean
          example: true
      responses:
        "200":
          description: Paginated list of orders.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedOrders"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
    post:
      operationId: createBookingOrder
      summary: Create a booking order
      tags:
        - Orders
      description: >
        Creates a new order together with its first lines — v2 bookings, retail
        lines, or

        both — in a single atomic call. At least one line is required (400,
        `ORDER_EMPTY`).

        Each booking is created in `ON_HOLD` status with a 15-minute hold timer;
        if the

        order isn't confirmed before the timer runs out, the booking expires and
        the order

        becomes `EXPIRED`.


        Each booking needs a `variantId` + `availabilitySlotId` pair and
        `participantCounts`

        (participant-type ID to head count). Pricing is always computed
        server-side from the

        variant/option configuration — don't send prices. `durationUnits` is
        required for

        `DURATION_BASED` pricing options and rejected otherwise. A too-large
        party or an

        unavailable slot returns 400; booking a slot in the past, or inside the

        experience's cut-off window, also returns 400.


        Retail lines (`retailItems`) buy SKUs of retail products or gift
        vouchers. They hold

        their units for as long as the order is held and are sold at confirm; a
        counted SKU

        without enough free units returns 400 (`RETAIL_STOCK_INSUFFICIENT`). To
        redeem a gift

        voucher, send its code as `voucherCode`: every booking is checked
        against the voucher

        (rules under `POST .../confirm`) and holds one of its uses, but keeps
        its real price

        until confirm.


        Returns 201 with the full order and its bookings. No confirmation side
        effects

        (emails, PMS, notifications) fire here — those are dispatched by `POST
        .../confirm`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderCreateRequest"
            examples:
              minimal:
                summary: Single booking, minimal payload
                value:
                  travelerInformation:
                    email: guest@example.com
                  bookings:
                    - variantId: 3f2e6d1c-8a4b-4f0e-9c7d-2b1a0e9f8d7c
                      availabilitySlotId: 9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
                      participantCounts:
                        c1a2b3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d: 2
              concierge:
                summary: Reseller concierge booking with a reference
                value:
                  travelerInformation:
                    email: guest@example.com
                    firstName: Alice
                    lastName: Smith
                  resellerReference: HOTEL-4711
                  bookings:
                    - variantId: 3f2e6d1c-8a4b-4f0e-9c7d-2b1a0e9f8d7c
                      availabilitySlotId: 9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
                      participantCounts:
                        c1a2b3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d: 1
              retail:
                summary: Buy a retail product and a gift voucher
                value:
                  travelerInformation:
                    email: guest@example.com
                  retailItems:
                    - retailSkuId: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
                      quantity: 2
                    - retailSkuId: 5c6d7e8f-9a0b-4c1d-8e2f-3a4b5c6d7e8f
                      quantity: 1
                      recipientEmail: recipient@guest.example
                      recipientName: Alex Example
              giftVoucher:
                summary: Book an experience with a gift voucher
                value:
                  travelerInformation:
                    email: guest@example.com
                  voucherCode: 7WF4MRY2KC8N
                  bookings:
                    - variantId: 3f2e6d1c-8a4b-4f0e-9c7d-2b1a0e9f8d7c
                      availabilitySlotId: 9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
                      participantCounts:
                        c1a2b3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d: 1
      responses:
        "201":
          description: Order created with all lines ON_HOLD.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
  /v2/booking-orders/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: UUID of the booking order.
        schema:
          type: string
          format: uuid
        example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
    get:
      operationId: retrieveBookingOrder
      summary: Retrieve a booking order
      tags:
        - Orders
      description: >
        Returns the order with all its bookings embedded, newest first. Normally
        only

        active bookings are shown (everything except `EXPIRED`/`REMOVED`); if
        every booking

        has expired, the `EXPIRED` ones are shown instead so the client can
        render the dead

        cart. Aggregated `finalPrice`/`basePrice` follow the same selection.


        Pass `?refresh=true` to atomically re-reserve every `EXPIRED` booking
        with a fresh

        15-minute hold — either all of them succeed or nothing changes. Refresh
        failures

        (past cut-off, or the slot no longer available) are silent: you still
        get a 200

        with the order's current state.


        Requesting an order you don't own returns 404.
      parameters:
        - name: refresh
          in: query
          required: false
          description: >
            When `true`, atomically attempts to re-reserve all EXPIRED bookings
            in the order before returning it. Failures are silent — the response
            is the current order state.
          schema:
            type: boolean
          example: true
      responses:
        "200":
          description: The order with embedded bookings.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    patch:
      operationId: updateBookingOrder
      summary: Update a booking order
      tags:
        - Orders
      description: >
        Partially updates order-level fields (`travelerInformation`,
        `resellerReference`,

        `emailNotification`, `utmMedium`, `utmSource`) and, optionally, patches
        individual

        bookings already in the order via the `bookings` array (each item needs
        the booking

        `id`; an id outside the order returns 400). This is how checkout fills
        in payment,

        traveler info, extra-field answers, meeting point and notes between
        reserve and

        confirm — bookings themselves can't be added or removed here, use
        `.../add` and

        `.../remove` for that.


        Retail lines are patched the same way through the `retailItems` array,
        which carries the

        buyer's answers to each SKU's purchase questions.


        Returns 400 if the order has already `EXPIRED`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderUpdateRequest"
            examples:
              orderOnly:
                summary: Update traveler info only
                value:
                  travelerInformation:
                    email: alice@example.com
                    firstName: Alice
              withBookingPatch:
                summary: Answer required extra fields on one booking
                value:
                  bookings:
                    - id: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
                      extraFieldResponses:
                        - fieldId: aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f
                          response: Vegetarian
              withRetailPatch:
                summary: Answer a retail SKU's purchase question
                value:
                  retailItems:
                    - id: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
                      extraFieldResponses:
                        - fieldId: bb2cc3dd-4ee5-4ff6-8a7b-1c2d3e4f5a6b
                          response: Happy birthday!
      responses:
        "200":
          description: The updated order with embedded bookings.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    put:
      operationId: replaceBookingOrder
      summary: Replace a booking order's editable fields
      tags:
        - Orders
      description: >
        Full-update variant of `PATCH`. Behaves identically — the same five
        order-level

        fields are writable and the same optional per-booking `bookings` patch
        list is

        supported — but omitted writable fields are treated as unset rather than
        left

        unchanged. Prefer `PATCH` for incremental checkout updates. Returns 400
        if the

        order has already `EXPIRED`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderUpdateRequest"
      responses:
        "200":
          description: The updated order with embedded bookings.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    delete:
      operationId: deleteBookingOrder
      summary: Soft-delete a booking order
      tags:
        - Orders
      description: >
        Soft-deletes the order: it is flagged inactive and disappears from list
        and

        retrieve endpoints, but the row is kept and its bookings are left
        completely

        untouched — bookings have their own lifecycle and are never cascaded.
        This is

        never a hard delete.
      responses:
        "204":
          description: Order soft-deleted. No content.
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/booking-orders/{id}/add:
    post:
      operationId: addBookingsToOrder
      summary: Add bookings or retail lines to an order
      tags:
        - Orders
      parameters:
        - name: id
          in: path
          required: true
          description: UUID of the booking order.
          schema:
            type: string
            format: uuid
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
      description: >
        Adds one or more new bookings to an existing `ON_HOLD` order; adding to
        a `BOOKED`

        or `EXPIRED` order returns 400. Each entry follows the same shape and
        validation as

        `POST /v2/booking-orders` (variant/slot pairing, participant counts,
        hold

        timers, and the reseller-only fields). New bookings inherit the order's

        `travelerInformation` when they don't provide their own, and must use
        the same

        currency as the rest of the order.


        Retail lines are added the same way through `retailItems` (same shape
        and checks as

        on order creation); send bookings, retail lines or both. On an order
        with a gift

        voucher (`voucherCode`), new bookings are checked against the voucher
        and hold a use.


        Returns the full updated order.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderAddBookingsRequest"
            examples:
              addOne:
                summary: Add a second activity to the cart
                value:
                  bookings:
                    - variantId: 3f2e6d1c-8a4b-4f0e-9c7d-2b1a0e9f8d7c
                      availabilitySlotId: 9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
                      participantCounts:
                        c1a2b3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d: 2
              addRetailLine:
                summary: Add a retail product to the cart
                value:
                  retailItems:
                    - retailSkuId: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
                      quantity: 1
      responses:
        "200":
          description: The updated order including the new bookings.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/booking-orders/{id}/remove:
    post:
      operationId: removeBookingsFromOrder
      summary: Remove bookings or retail lines from an order
      tags:
        - Orders
      parameters:
        - name: id
          in: path
          required: true
          description: UUID of the booking order.
          schema:
            type: string
            format: uuid
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
      description: >
        Removes bookings from an `ON_HOLD` order — they're transitioned to
        `REMOVED`

        (never deleted) and any resource blocks they held (guides, vehicles,
        slot-capacity

        seats) are freed immediately. Returns 400 when the order is already

        `BOOKED`/`EXPIRED`, or when none of the given ids belong to this order
        (unmatched

        ids are otherwise ignored).


        Retail lines are removed the same way by listing them in
        `removeRetailItems`: they

        become `REMOVED` and the units they held are released. Removing the last
        booking

        covered by a gift voucher also takes the voucher off the order.


        Returns the full updated order; removed bookings disappear from the
        embedded

        `bookings` list and price totals.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderRemoveBookingsRequest"
            examples:
              removeOne:
                value:
                  expireBookings:
                    - 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
              removeRetailLine:
                value:
                  removeRetailItems:
                    - 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
      responses:
        "200":
          description: The updated order without the removed bookings.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/booking-orders/{id}/confirm:
    post:
      operationId: confirmBookingOrder
      summary: Confirm a booking order
      tags:
        - Orders
      parameters:
        - name: id
          in: path
          required: true
          description: UUID of the booking order.
          schema:
            type: string
            format: uuid
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
      description: >
        Finalizes the order: applies any final order-level and per-booking data,
        then

        transitions every active booking out of `ON_HOLD` to `ACCEPTED` (instant

        confirmation) or `PENDING` (organizer review), depending on the option's
        cut-off

        configuration.


        Every booking needs a meeting point and an answer for each required
        extra field

        before it can be confirmed — reserve doesn't enforce this, confirm does;
        answer

        them via `PATCH` first. Orders with no active bookings or retail lines,
        or already

        `EXPIRED`, return 400.


        Order-level fields (`travelerInformation`, `resellerReference`,

        `emailNotification`, `bookingSource`, `utmMedium`, `utmSource`) are
        updated when

        provided and inherited by bookings that don't set their own; per-booking
        `payment`

        merges onto the stored payment (typically the Stripe payment-intent code
        and final

        status).


        Retail lines are confirmed with the order: each `ON_HOLD` line becomes
        `PAID`, its

        units leave stock, and each gift voucher line emails its code to the
        recipient (or

        to the buyer). Required purchase questions must be answered first (400,

        `CHECKOUT_REQUIRED_RETAIL_ANSWERS_MISSING`), and a line whose units are
        no longer

        available fails the whole confirm. `retailItems[].payment` works like
        per-booking

        `payment`; lines without one take the order-level `payment`.


        To pay with a gift voucher, send `payment: {processedBy: RETAIL_VOUCHER,
        code}` with

        the voucher code (or set `voucherCode` when creating the order). The
        voucher pays

        for every booking in the order, so each must be redeemable: an
        experience in the

        voucher's scope, one participant on per-person pricing, no
        duration-based option,

        and an add-on only if the voucher includes one. The order must be placed
        by the

        partner that sold the voucher, and the voucher needs a use left per
        booking. Otherwise the confirm

        returns 400 on `retail_voucher_code`, one error per failing booking, and
        nothing

        changes. On success each booking is priced at 0 with
        `payment.processedBy:

        RETAIL_VOUCHER` and `status: FREE`. A voucher-paid order can't also
        contain retail

        lines (400, `VOUCHER_MIXED_ORDER_UNSUPPORTED`).


        Confirming an already-`BOOKED` order is idempotent: it returns 200 with
        the

        current state, doesn't re-fire side effects, and ignores any payload
        sent with the

        retry — so clients can safely retry after a payment blip without
        double-charging or

        double-emailing.


        On success this sends confirmation and ticket emails, records PMS folio
        entries,

        and confirms with the external provider (Bokun/Regiondo) when
        applicable.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderConfirmRequest"
            examples:
              minimal:
                summary: Confirm as-is
                value: {}
              withPayment:
                summary: Confirm with Stripe payment result per booking
                value:
                  travelerInformation:
                    email: guest@example.com
                    firstName: Alice
                  bookings:
                    - id: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
                      payment:
                        code: pi_3OqX8s2eZvKYlo2C
                        status: PAYMENT_COLLECTED
                        processedBy: TURNEO
              conciergeSkipPending:
                summary: Reseller concierge forcing instant acceptance
                value:
                  bookings:
                    - id: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
                      skipPending: true
              withRetailPayment:
                summary: Confirm with a card payment for a retail line
                value:
                  retailItems:
                    - id: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
                      payment:
                        code: pi_3OqX8s2eZvKYlo2C
                        processedBy: TURNEO
              giftVoucher:
                summary: Pay the whole order with a gift voucher
                value:
                  payment:
                    processedBy: RETAIL_VOUCHER
                    code: 7WF4MRY2KC8N
      responses:
        "200":
          description: >
            The confirmed order (status `BOOKED`) with all bookings
            transitioned. Also returned unchanged on idempotent retries of an
            already-confirmed order.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/booking-orders/{id}/payment-link:
    post:
      operationId: sendBookingOrderPaymentLink
      summary: Send a payment link email
      tags:
        - Orders
      parameters:
        - name: id
          in: path
          required: true
          description: UUID of the booking order.
          schema:
            type: string
            format: uuid
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
      description: >
        Emails the traveler a payment link for this order and flags the order as

        payment-link-sent. The request body is empty.


        Deliberately allowed for `EXPIRED` orders: the 15-minute hold often
        elapses before

        a guest gets around to paying, and the payment link itself re-reserves
        the bookings

        when clicked, so the guest can recover from hold expiry.


        The email is dispatched asynchronously after the request commits; a 200
        means the

        send was queued, not that the email was delivered.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              description: Empty object — the endpoint takes no input.
            examples:
              empty:
                value: {}
      responses:
        "200":
          description: Payment link email queued. Empty response body.
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/booking-orders/{id}/vouchers:
    parameters:
      - name: id
        in: path
        required: true
        description: UUID of the booking order.
        schema:
          type: string
          format: uuid
        example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
    post:
      operationId: addBookingOrderVoucher
      summary: Apply a promo code to an order
      tags:
        - Orders
      description: >
        Applies a seller promo code (a percentage discount code of the selling
        partner) to

        every active, Turneo-sourced booking in the order (externally sourced
        bookings — Bokun/Regiondo

        — are skipped). Booking prices are recalculated with the discount and
        the updated order is

        returned.


        Returns 400 when the voucher code is missing/invalid or the order has
        `EXPIRED`.


        This is not how gift vouchers are redeemed: send a gift voucher code as
        `voucherCode`

        when creating the order, or as `payment` (`processedBy: RETAIL_VOUCHER`)
        at confirm.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderVoucherRequest"
            examples:
              apply:
                value:
                  voucherCode: SAVE10
      responses:
        "200":
          description: The order with voucher-discounted prices.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    delete:
      operationId: removeBookingOrderVoucher
      summary: Remove the promo code from an order
      tags:
        - Orders
      description: >
        Removes any applied promo code from every active, Turneo-sourced booking
        in the order

        and restores the undiscounted prices. The request body is empty. Returns
        400 when

        the order has `EXPIRED`. To take a gift voucher off an order, use

        `POST /v2/booking-orders/{id}/remove-voucher`.
      responses:
        "200":
          description: The order with voucher discounts removed.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/booking-orders/{id}/remove-voucher:
    parameters:
      - name: id
        in: path
        required: true
        description: UUID of the booking order.
        schema:
          type: string
          format: uuid
        example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
    post:
      operationId: removeBookingOrderGiftVoucher
      summary: Remove the gift voucher from an order
      tags:
        - Orders
      description: >
        Takes the gift voucher (`voucherCode`) off an `ON_HOLD` order: the order
        forgets the code, its

        bookings stop being covered by it, and the uses they held go back to the
        voucher. Prices are

        untouched (bookings keep their real price until confirm), so the order
        can then be paid another

        way. Any other order status returns 400
        (`ORDER_VOUCHER_REMOVAL_NOT_ALLOWED`). No request body.

        For seller promo codes use `DELETE /v2/booking-orders/{id}/vouchers`
        instead.
      responses:
        "200":
          description: The order without the gift voucher.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/booking-orders/{id}/concierge-discount:
    parameters:
      - name: id
        in: path
        required: true
        description: UUID of the booking order.
        schema:
          type: string
          format: uuid
        example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
    post:
      operationId: addConciergeDiscount
      summary: Apply a concierge discount to a booking
      tags:
        - Orders
      description: >
        Applies a manual discount amount to a single active booking in the order
        — a

        reseller-facing feature for things like a goodwill discount at the desk.
        Only

        works on Turneo-sourced bookings (not externally sourced ones).


        Returns 400 for a missing `bookingId`/`discountAmount` or an `EXPIRED`
        order, 404

        when the booking isn't an active booking of this order. Returns the
        updated order

        with recalculated prices.


        Send `retailItemId` instead of `bookingId` to discount a retail line of
        a product you

        sell yourself; a discount equal to the line price gives a gift voucher
        away for free.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderConciergeDiscountRequest"
            examples:
              apply:
                value:
                  bookingId: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
                  discountAmount: 10.5
                  discountNote: Special customer discount
      responses:
        "200":
          description: The order with the concierge discount applied.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    delete:
      operationId: removeConciergeDiscount
      summary: Remove a concierge discount from a booking
      tags:
        - Orders
      description: >
        Removes a previously applied concierge discount from a single booking in
        the order

        and restores the undiscounted price. Requires `bookingId` (or
        `retailItemId` for a

        retail line) in the body. Returns 400 for a missing id or an `EXPIRED`
        order, 404

        when the booking is not an active booking of this order.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                bookingId:
                  type: string
                  format: uuid
                  description: UUID of the booking whose concierge discount should be removed.
                  example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
                retailItemId:
                  type: string
                  format: uuid
                  description: UUID of the retail line whose concierge discount should be removed.
                    Send this or `bookingId`, not both.
                  example: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
            examples:
              remove:
                value:
                  bookingId: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
      responses:
        "200":
          description: The order with the concierge discount removed.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/booking-orders/add-custom-booking:
    post:
      operationId: createCustomBookingOrder
      summary: Create a custom one-off booking
      tags:
        - Orders
      description: >
        Creates a one-off, private experience on the fly (its own option,
        variant and

        availability slot) and books it — for ad-hoc reservations like
        restaurants,

        private tours or services that aren't in the catalog. Only reseller
        accounts may

        call this; `organizerId` must be an organizer-type partner to attribute
        the

        booking to.


        Builds a private experience under the given organizer with the provided
        name,

        duration, meeting point and price, then books it immediately in
        `ON_HOLD`

        (payment defaults to `processedBy: RESELLER_CONCIERGE` / `status:

        PAYMENT_PENDING`). `localTime` may be up to 24 hours in the past. Pass
        `orderId`

        to append the booking to an existing order of yours (same currency, not
        yet

        `BOOKED`/`EXPIRED`); otherwise a new order is created. Optional
        `resources`

        (guide/vehicle IDs) are validated and blocked for the booking's
        duration.


        Returns 201 with the full order containing the new custom booking.
        Confirm the

        order as usual to finalize.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/orderCustomBookingRequest"
            examples:
              restaurant:
                summary: Ad-hoc restaurant reservation
                value:
                  name: Dinner at Konoba Mate
                  organizerId: partner-org-123
                  commission: 15
                  duration:
                    days: 0
                    hours: 2
                    minutes: 0
                  price:
                    amount: 120
                    currency: EUR
                  localTime: 2026-07-10T19:30:00
                  meetingPoint:
                    title: Konoba Mate
                    address: Pupnat 28
                    city: Korcula
                    country: Croatia
                    latitude: 42.9235
                    longitude: 17.0312
                    timeBeforeStart: 0
                  notes:
                    fromSeller: Table by the window, anniversary.
      responses:
        "201":
          description: Order (new or existing) containing the custom booking.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/orderDetail"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/activities:
    get:
      operationId: listActivities
      summary: List activity feed events
      tags:
        - Activity Feed
      description: >
        Returns activity events visible to the caller, newest first. Intended
        for polling: pass `since` with the `occurredAt` of the last event you've
        already seen to fetch only what's new.


        ### Scoping


        You only see events for resources you already have access to elsewhere
        in the API. There is no way to see another partner's activity.


        ### Filtering


        `category` and `actor` each accept a comma-separated list restricted to
        the values below; an unrecognized value is a 400 naming the offending
        entry.
      parameters:
        - in: query
          name: since
          schema:
            type: string
            format: date-time
          description: >
            ISO 8601 datetime. Only events with `occurredAt` strictly after this
            instant are returned. Naive datetimes (no timezone offset) are
            interpreted as UTC. An unparsable value is a 400.
          example: 2026-07-01T12:00:00Z
        - in: query
          name: category
          schema:
            type: string
          description: >
            Comma-separated list of categories to include. One of `booking`,
            `experience`, `review`, `retail`.
          example: booking,review
        - in: query
          name: actor
          schema:
            type: string
          description: >
            Comma-separated list of actor types to include. One of `guest`,
            `concierge`, `organizer`, `turneo_ai`.
          example: guest,concierge
        - in: query
          name: booking_id
          schema:
            type: string
            format: uuid
          description: >
            Only events for this booking — powers the booking sidebar's
            per-booking history. Composes with the caller's scope (it can never
            widen visibility). A non-UUID value is a 400. Events written before
            this field existed are not matched.
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
        - in: query
          name: page
          schema:
            type: integer
          description: Page number (1-based).
          example: 1
        - in: query
          name: page_size
          schema:
            type: integer
          description: Items per page (default 50). Note the snake_case wire name — query
            parameters are not camelCased.
          example: 50
        - in: query
          name: nopagination
          schema:
            type: boolean
          description: When `true`, disables pagination and returns the bare array of
            results.
          example: false
      responses:
        "200":
          description: Returns the caller's scoped activity feed.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedActivities"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
  /v2/activities/available-filters:
    get:
      operationId: listActivityAvailableFilters
      summary: List activity feed filter facets
      tags:
        - Activity Feed
      description: >
        Returns the `category` and `actor` values actually present in the
        caller's activity feed (not the full fixed vocabulary), each with its
        display label. A value absent from the caller's activity is simply
        omitted, so this endpoint also tells you which filters are worth showing
        at all.
      responses:
        "200":
          description: Returns the available filter facets.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/activityAvailableFilters"
        "401":
          $ref: "#/components/responses/unauthorized"
  /v2/activities/{activityId}:
    parameters:
      - in: path
        name: activityId
        required: true
        schema:
          type: string
          format: uuid
        description: The unique identifier of the activity event.
        example: 7a1e74c3-d0f2-41e6-ac12-33108100200e
    get:
      operationId: retrieveActivity
      summary: Retrieve a single activity event
      tags:
        - Activity Feed
      description: >
        Returns a single activity event by id. Subject to the same scoping as
        the list endpoint — requesting an event outside the caller's scope
        returns 404 rather than 403, to avoid revealing that the event exists.
      responses:
        "200":
          description: Returns the requested activity event.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/activity"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-attributes:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product (an experience with `experienceType`
          `RETAIL` or `VOUCHER`).
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    get:
      operationId: listExperienceRetailAttributes
      summary: List a retail product's variation axes
      tags:
        - Retail
      description: >
        Returns the product's variation axes (Colour, Size, ...) in `sortOrder`,
        each with its values.

        A product without variations has no axes and sells from a single SKU. An
        unknown experience,

        or one that is not a retail product, returns an empty list.
      parameters:
        - name: page
          in: query
          required: false
          description: Page number to return (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          required: false
          description: Number of axes per page (default 50).
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          required: false
          description: When `true`, disables pagination and returns all axes in a plain
            array.
          schema:
            type: boolean
          example: false
      responses:
        "200":
          description: Paginated list of variation axes.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedRetailAttributes"
        "401":
          $ref: "#/components/responses/unauthorized"
    post:
      operationId: createExperienceRetailAttribute
      summary: Add a variation axis
      tags:
        - Retail
      description: >
        Adds a variation axis to your retail product, optionally with its
        values. Only the product's

        organizer can call it (403 otherwise); an experience that is not a
        retail product returns 400

        (`RETAIL_EXPERIENCE_REQUIRED`). New values become SKUs only when you
        call

        `POST /v2/experiences/{experienceId}/retail-skus/generate`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailAttributeWrite"
            examples:
              withValues:
                summary: Colour axis with two values
                value:
                  name:
                    en: Colour
                  sortOrder: 0
                  values:
                    - label:
                        en: Red
                      sortOrder: 0
                    - label:
                        en: Blue
                      sortOrder: 1
      responses:
        "201":
          description: The new axis with its values.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailAttribute"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-attributes/{attributeId}:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: attributeId
        in: path
        required: true
        description: UUID of the variation axis.
        schema:
          type: string
          format: uuid
        example: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
    get:
      operationId: getExperienceRetailAttribute
      summary: Get a variation axis
      tags:
        - Retail
      description: Returns one variation axis with its values.
      responses:
        "200":
          description: The variation axis.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailAttribute"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    put:
      operationId: updateExperienceRetailAttribute
      summary: Replace a variation axis
      tags:
        - Retail
      description: Replaces the axis's name, sort order and values. Same rules as the
        `PATCH` operation.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailAttributeWrite"
      responses:
        "200":
          description: The updated axis.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailAttribute"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    patch:
      operationId: partialUpdateExperienceRetailAttribute
      summary: Update a variation axis
      tags:
        - Retail
      description: >
        Updates the axis. Organizer only (403 otherwise). When `values` is sent
        it replaces the whole

        set: entries with an `id` are updated, entries without one are created,
        and values left out are

        removed. An `id` from another axis returns 400
        (`RETAIL_ATTRIBUTE_VALUE_SCOPE_INVALID`). Omit

        `values` to leave them as they are. Call the generate endpoint
        afterwards to update the SKUs.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailAttributeWrite"
            examples:
              rename:
                summary: Rename the axis only
                value:
                  name:
                    en: Colour
              replaceValues:
                summary: Keep one value, add another, drop the rest
                value:
                  values:
                    - id: 9a8b7c6d-5e4f-4a3b-8c1d-0e9f8a7b6c5d
                      label:
                        en: Red
                    - label:
                        en: Green
      responses:
        "200":
          description: The updated axis.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailAttribute"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    delete:
      operationId: deleteExperienceRetailAttribute
      summary: Remove a variation axis
      tags:
        - Retail
      description: >
        Removes the axis and its values. Organizer only (403 otherwise). The
        SKUs built from them

        stay until you call the generate endpoint.
      responses:
        "204":
          description: Axis removed. No response body.
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-skus:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    get:
      operationId: listExperienceRetailSkus
      summary: List a retail product's SKUs
      tags:
        - Retail
      description: >
        Returns every SKU of the product, disabled and unpriced ones included,
        with its price, stock

        mode and on-hand `stockQuantity`. Shoppers see only the enabled, priced
        SKUs, with live

        availability, as `retailSkus` on `GET /v2/experiences/{id}`. SKUs are
        created by the generate

        endpoint, never directly. An unknown experience returns an empty list.
      parameters:
        - name: page
          in: query
          required: false
          description: Page number to return (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          required: false
          description: Number of SKUs per page (default 50).
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          required: false
          description: When `true`, disables pagination and returns all SKUs in a plain
            array.
          schema:
            type: boolean
          example: false
      responses:
        "200":
          description: Paginated list of SKUs.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedRetailSkus"
        "401":
          $ref: "#/components/responses/unauthorized"
  /v2/experiences/{experienceId}/retail-skus/generate:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    post:
      operationId: generateExperienceRetailSkus
      summary: Build the SKU grid
      tags:
        - Retail
      description: >
        Builds the product's SKUs from its current variation values, one per
        combination, and returns

        them. Organizer only (403 otherwise); 400 (`RETAIL_EXPERIENCE_REQUIRED`)
        when the experience is

        not a retail product. No request body, and safe to repeat. New
        combinations arrive disabled and

        unpriced; existing SKUs keep their price, stock and settings;
        combinations that no longer exist

        leave the grid, and come back with their old settings if their values
        return. A product with

        no axes gets exactly one SKU; an axis with no values leaves the grid
        empty.
      responses:
        "200":
          description: What changed, plus the resulting SKUs.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailSkuGenerateResponse"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-skus/bulk-update:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    post:
      operationId: bulkUpdateExperienceRetailSkus
      summary: Update many SKUs at once
      tags:
        - Retail
      description: >
        Applies partial updates to up to 500 SKUs of this product. Send either
        `{ids, patch}` to apply

        one patch to several SKUs, or `{updates: [{id, patch}]}` for a patch per
        SKU; both shapes,

        neither, or an empty list is a 400. Organizer only (403 otherwise). Each
        row follows the rules

        of `PATCH .../retail-skus/{skuId}` and succeeds or fails on its own, so
        the call returns 200

        with an `ok` or `error` result per id (`not_found` for a SKU that is not
        on this product).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailSkuBulkUpdateRequest"
            examples:
              sharedPatch:
                summary: Price and enable several SKUs
                value:
                  ids:
                    - 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
                    - 3b241101-e2bb-4255-8caf-4136c566a962
                  patch:
                    price: "24.00"
                    isEnabled: true
              perSkuPatches:
                summary: A different patch per SKU
                value:
                  updates:
                    - id: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
                      patch:
                        price: "19.00"
                    - id: 3b241101-e2bb-4255-8caf-4136c566a962
                      patch:
                        tracksStock: true
      responses:
        "200":
          description: One result per id. Row-level failures are reported here, not as a
            400.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailSkuBulkResults"
              examples:
                mixed:
                  summary: One saved, one rejected
                  value:
                    results:
                      - id: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
                        status: ok
                      - id: 3b241101-e2bb-4255-8caf-4136c566a962
                        status: error
                        error:
                          type: validation_error
                          errors:
                            - code: RETAIL_SKU_PRICE_REQUIRED
                              field: is_enabled
                              message: Cannot enable a SKU without a price.
                              attr: is_enabled
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-skus/{skuId}:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: skuId
        in: path
        required: true
        description: UUID of the SKU.
        schema:
          type: string
          format: uuid
        example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
    get:
      operationId: getExperienceRetailSku
      summary: Get a SKU
      tags:
        - Retail
      description: Returns one SKU with its price, stock and purchase-time questions.
      responses:
        "200":
          description: The SKU.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailSku"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
    put:
      operationId: updateExperienceRetailSku
      summary: Replace a SKU's settings
      tags:
        - Retail
      description: Replaces the SKU's writable settings. Same rules as the `PATCH`
        operation.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailSkuWrite"
      responses:
        "200":
          description: The updated SKU.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailSku"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    patch:
      operationId: partialUpdateExperienceRetailSku
      summary: Configure a SKU
      tags:
        - Retail
      description: >
        Sets a SKU's price, code, stock mode, image, purchase-time questions and
        whether it is on sale.

        Organizer only (403 otherwise). `isEnabled` can't be turned on while
        `price` is null (400,

        `RETAIL_SKU_PRICE_REQUIRED`). `stockQuantity` is read-only: move stock
        with the add-stock and

        remove-stock actions. `imageId` must be one of the product's images
        (400,

        `RETAIL_IMAGE_SCOPE_INVALID`). `extraFields`, when sent, replaces the
        whole question set; omit

        it to leave the questions as they are. Price and on-sale changes also
        refresh the product's

        `minPrice` and `maxPrice` shortly afterwards.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailSkuWrite"
            examples:
              priceAndEnable:
                summary: Price a SKU and put it on sale
                value:
                  price: "24.00"
                  isEnabled: true
              trackStock:
                summary: Count stock for this SKU
                value:
                  tracksStock: true
              purchaseQuestion:
                summary: Ask a question at purchase time
                value:
                  extraFields:
                    - name:
                        en: Gift message
                      fieldType: QUESTION
                      required: false
      responses:
        "200":
          description: The updated SKU.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailSku"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-skus/{skuId}/add-stock:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: skuId
        in: path
        required: true
        description: UUID of the SKU.
        schema:
          type: string
          format: uuid
        example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
    post:
      operationId: addExperienceRetailSkuStock
      summary: Add stock to a SKU
      tags:
        - Retail
      description: >
        Adds `quantity` units to the SKU's on-hand stock, records a `RESTOCK`
        entry in its stock

        ledger, and returns the entry and the new count. Organizer only (403
        otherwise). The SKU must

        count stock (`tracksStock: true`), otherwise 400
        (`RETAIL_STOCK_NOT_TRACKED`).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailStockActionRequest"
            examples:
              restock:
                value:
                  quantity: 20
                  note: Delivery from supplier
      responses:
        "200":
          description: The recorded ledger entry and the SKU's new on-hand count.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailStockActionResponse"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-skus/{skuId}/remove-stock:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: skuId
        in: path
        required: true
        description: UUID of the SKU.
        schema:
          type: string
          format: uuid
        example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
    post:
      operationId: removeExperienceRetailSkuStock
      summary: Remove stock from a SKU
      tags:
        - Retail
      description: >
        Takes `quantity` units off the SKU's on-hand stock (breakage,
        write-offs), records a

        `MANUAL_REMOVAL` entry in its stock ledger, and returns the entry and
        the new count. Organizer

        only (403 otherwise). Stock can't go below zero (400,
        `RETAIL_STOCK_REMOVAL_EXCEEDS_ON_HAND`),

        and the SKU must count stock (400, `RETAIL_STOCK_NOT_TRACKED`).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailStockActionRequest"
            examples:
              writeOff:
                value:
                  quantity: 2
                  note: Damaged in storage
      responses:
        "200":
          description: The recorded ledger entry and the SKU's new on-hand count.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailStockActionResponse"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-skus/{skuId}/stock-movements:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the retail product.
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
      - name: skuId
        in: path
        required: true
        description: UUID of the SKU.
        schema:
          type: string
          format: uuid
        example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
    get:
      operationId: listExperienceRetailSkuStockMovements
      summary: List a SKU's stock ledger
      tags:
        - Retail
      description: >
        Returns the SKU's stock history, newest first: restocks, manual
        removals, sales (recorded when

        an order is confirmed) and returns (recorded when a sold line is
        cancelled). Organizer only

        (403 otherwise).
      parameters:
        - name: page
          in: query
          required: false
          description: Page number to return (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          required: false
          description: Number of entries per page (default 50).
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          required: false
          description: When `true`, disables pagination and returns all entries in a plain
            array.
          schema:
            type: boolean
          example: false
      responses:
        "200":
          description: Paginated stock ledger, newest first.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedRetailStockMovements"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/experiences/{experienceId}/retail-voucher-config:
    parameters:
      - name: experienceId
        in: path
        required: true
        description: UUID of the gift voucher product (an experience with
          `experienceType` `VOUCHER`).
        schema:
          type: string
          format: uuid
        example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
    get:
      operationId: getExperienceRetailVoucherConfig
      summary: Get a gift voucher's redemption rules
      tags:
        - Retail
      description: >
        Returns the redemption rules of your gift voucher product. Organizer
        only (403 otherwise).

        Returns 400 (`VOUCHER_EXPERIENCE_REQUIRED`) when the experience is not a
        `VOUCHER`, and 404

        when no rules have been set yet.
      responses:
        "200":
          description: The voucher's redemption rules.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailVoucherConfig"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
    put:
      operationId: putExperienceRetailVoucherConfig
      summary: Set a gift voucher's redemption rules
      tags:
        - Retail
      description: >
        Creates or replaces the redemption rules of your gift voucher product:
        how many uses one

        voucher grants, which experiences it can be redeemed against, and
        whether a redemption may

        include one add-on. Organizer only (403 otherwise). Every id in
        `scopeExperienceIds` must be

        one of your own active, bookable experiences (400,
        `VOUCHER_SCOPE_EXPERIENCE_INVALID`). Rules

        are read live, so a change also applies to vouchers already sold. A
        voucher product can't be

        set `ACTIVE` until its rules cover at least one experience.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailVoucherConfigWrite"
            examples:
              fivePack:
                summary: Five uses across two experiences
                value:
                  redemptionsPerUnit: 5
                  scopeExperienceIds:
                    - 0d4dbb2e-8a51-4a4b-9d3e-6f2b7c1a9e55
                    - 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
                  includesAddon: false
      responses:
        "200":
          description: The stored redemption rules.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailVoucherConfig"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "403":
          $ref: "#/components/responses/forbidden"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/retail-vouchers/{code}:
    parameters:
      - name: code
        in: path
        required: true
        description: The gift voucher code (12 characters), as emailed to the voucher's
          holder.
        schema:
          type: string
        example: 7WF4MRY2KC8N
    get:
      operationId: lookupRetailVoucher
      summary: Look up a gift voucher code
      tags:
        - Retail
      description: >
        Resolves a gift voucher code: the voucher product, how many uses it
        grants and has left

        (uses held by unconfirmed orders already count), whether a redemption
        may include an add-on,

        the experiences it can be redeemed against, and the redemptions already
        made (experience, date

        and status only). Use it to check a code before redeeming it on an
        order. Only a paid voucher

        resolves: an unknown, cancelled or refunded code returns 404
        (`VOUCHER_INVALID`). The

        10-character `retailCode` of the purchase is a reference, not a voucher
        code.
      responses:
        "200":
          description: What the voucher covers right now.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailVoucherLookup"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/retail-items:
    get:
      operationId: listRetailItems
      summary: List retail items
      tags:
        - Retail
      description: >
        Returns the retail and gift voucher lines on your products, plus the
        lines you sold of other

        partners' products, newest first. Every status is included, unconfirmed
        cart lines too, so

        filter with `status=PAID,DELIVERED` for completed sales. Filters
        combine; comma-separated values

        are ORed; `paidAt` and `createdAt` also take `[gte]`, `[lte]`, `[gt]`,
        `[lt]` and `[eq]`, e.g.

        `?paidAt[gte]=2026-07-01T00:00:00Z`. Gift voucher lines include their
        `voucherCode` here.
      parameters:
        - name: page
          in: query
          required: false
          description: Page number to return (1-based).
          schema:
            type: integer
            default: 1
          example: 1
        - name: page_size
          in: query
          required: false
          description: Number of lines per page (default 50).
          schema:
            type: integer
            default: 50
          example: 50
        - name: nopagination
          in: query
          required: false
          description: When `true`, disables pagination and returns all matching lines in
            a plain array.
          schema:
            type: boolean
          example: false
        - name: ordering
          in: query
          required: false
          description: Sort field, `-` prefix for descending. These are snake_case field
            names. Defaults to newest first.
          schema:
            type: string
            enum:
              - paid_at
              - -paid_at
              - created_at
              - -created_at
              - updated_at
              - -updated_at
          example: -paid_at
        - name: status
          in: query
          required: false
          description: "Comma-separated line statuses: `ON_HOLD`, `PAID`, `DELIVERED`,
            `CANCELLED`, `EXPIRED`, `REMOVED`."
          schema:
            type: string
          example: PAID,DELIVERED
        - name: experienceType
          in: query
          required: false
          description: Comma-separated `RETAIL` and/or `VOUCHER`, to separate product
            sales from gift voucher sales.
          schema:
            type: string
          example: VOUCHER
        - name: experienceId
          in: query
          required: false
          description: Comma-separated product UUIDs. A malformed UUID returns 400.
          schema:
            type: string
          example: 0d4dbb2e-8a51-4a4b-9d3e-6f2b7c1a9e55
        - name: retailSkuId
          in: query
          required: false
          description: Comma-separated SKU UUIDs. A malformed UUID returns 400.
          schema:
            type: string
          example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
        - name: orderId
          in: query
          required: false
          description: Comma-separated order UUIDs. A malformed UUID returns 400.
          schema:
            type: string
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
        - name: resellerId
          in: query
          required: false
          description: Comma-separated partner ids of the sellers.
          schema:
            type: string
          example: hotel-partner-1
        - name: retailCode
          in: query
          required: false
          description: Comma-separated `retailCode` references.
          schema:
            type: string
          example: 3HCX9KPT2L
        - name: travelerEmail
          in: query
          required: false
          description: Buyer's email, case-insensitive exact match. The buyer is recorded
            on the order.
          schema:
            type: string
            format: email
          example: guest@example.com
        - name: consumerEmail
          in: query
          required: false
          description: Who can use a gift voucher, case-insensitive exact match. Matches
            the gift recipient, or the buyer when the voucher was bought without
            a recipient, so a voucher gifted to someone else does not show up
            under the buyer's email.
          schema:
            type: string
            format: email
          example: recipient@guest.example
        - name: paidAt
          in: query
          required: false
          description: Sale timestamp filter. Also accepts `paidAt[gte]`, `paidAt[lte]`,
            `paidAt[gt]`, `paidAt[lt]` and `paidAt[eq]`.
          schema:
            type: string
            format: date-time
          example: 2026-07-01T00:00:00Z
        - name: createdAt
          in: query
          required: false
          description: Creation timestamp filter, with the same bracket forms as `paidAt`.
          schema:
            type: string
            format: date-time
          example: 2026-07-01T00:00:00Z
      responses:
        "200":
          description: Paginated list of retail items.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/paginatedRetailItems"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
  /v2/retail-items/{id}:
    parameters:
      - name: id
        in: path
        required: true
        description: The line's UUID or its `retailCode`.
        schema:
          type: string
        example: 3HCX9KPT2L
    get:
      operationId: getRetailItem
      summary: Get a retail item
      tags:
        - Retail
      description: >
        Returns one retail or gift voucher line, by UUID or by its `retailCode`.
        A line that is not on

        your products and was not sold by you returns 404.
      responses:
        "200":
          description: The retail item.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailItem"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/retail-items/{id}/cancel:
    parameters:
      - name: id
        in: path
        required: true
        description: The line's UUID. The `retailCode` is not accepted here.
        schema:
          type: string
          format: uuid
        example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
    post:
      operationId: cancelRetailItem
      summary: Cancel a retail item
      tags:
        - Retail
      description: >
        Cancels a `PAID` or `DELIVERED` line; any other status returns 400

        (`RETAIL_ITEM_NOT_CANCELLABLE`). The line becomes `CANCELLED`, counted
        stock goes back on the

        shelf, and the buyer gets a cancellation email; a cancelled gift
        voucher's code stops working.

        Card payments taken through Turneo are refunded minus
        `cancellationFeeAmount` (default 0, a full

        refund; it can't be negative or exceed the line price). Payments the
        seller collected directly

        are marked `REFUNDED` when the fee is 0. If the refund fails the
        cancellation still stands;

        retry with `POST /v2/retail-items/{id}/refund`.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailItemCancelRequest"
            examples:
              fullRefund:
                summary: Cancel and refund in full
                value:
                  cancelledReason: Out of stock
              withFee:
                summary: Keep a fee
                value:
                  cancellationFeeAmount: 5
                  cancelledReason: Opened item returned
      responses:
        "200":
          description: The cancelled line.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailItem"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/retail-items/{id}/deliver:
    parameters:
      - name: id
        in: path
        required: true
        description: The line's UUID or its `retailCode`.
        schema:
          type: string
        example: 3HCX9KPT2L
    post:
      operationId: deliverRetailItem
      summary: Mark a retail item as delivered
      tags:
        - Retail
      description: >
        Marks a `PAID` line `DELIVERED` once the buyer has the goods. Any other
        status returns 400

        (`RETAIL_ITEM_NOT_DELIVERABLE`). No request body. Money is unaffected
        and the line can still be

        cancelled afterwards. Leave gift voucher lines `PAID`: only a `PAID`
        voucher can be redeemed.
      responses:
        "200":
          description: The line, now `DELIVERED`.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailItem"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
  /v2/retail-items/{id}/refund:
    parameters:
      - name: id
        in: path
        required: true
        description: The line's UUID or its `retailCode`.
        schema:
          type: string
        example: 3HCX9KPT2L
    post:
      operationId: refundRetailItem
      summary: Refund a cancelled retail item
      tags:
        - Retail
      description: >
        Retries the refund of a `CANCELLED` line, for example after the refund
        at cancellation failed.

        Pass `cancellationFeeAmount` to replace the fee recorded at
        cancellation, or omit it to keep that

        fee. Only card payments taken through Turneo (`processedBy` `TURNEO` or
        `RESELLER_CARD`) are

        refunded; for those, a line that is not `CANCELLED`, is already
        refunded, or would refund

        nothing returns 400. For any other payment method the call changes
        nothing. A payment provider

        failure returns 500 and can be retried.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/retailItemRefundRequest"
            examples:
              retry:
                summary: Retry with the fee recorded at cancellation
                value: {}
              newFee:
                summary: Refund all but 5.00
                value:
                  cancellationFeeAmount: 5
      responses:
        "200":
          description: The line with its updated payment.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/retailItem"
        "400":
          $ref: "#/components/responses/badRequest"
        "401":
          $ref: "#/components/responses/unauthorized"
        "404":
          $ref: "#/components/responses/notFound"
        "500":
          description: The payment provider failed. Nothing was refunded; the call can be
            retried.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: An error occurred while processing the refund
                  error:
                    type: string
                    example: Gateway timeout
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Partner API key. Identifies and scopes every request to your
        partner account.
  schemas:
    error:
      type: object
      description: Standard error envelope (drf-standardized-errors).
      properties:
        type:
          type: string
          description: Error class.
          enum:
            - validation_error
            - client_error
            - server_error
          example: validation_error
        errors:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                example: required
                description: Machine-readable error code.
              field:
                type: string
                nullable: true
                example: startTime
                description: Offending field, or null/'general' for non-field errors.
              message:
                type: string
                example: This field is required.
                description: Human-readable message.
    experienceMultilangText:
      description: >
        Multilingual text field. Stored as an object keyed by language code
        (`en`, `de`, `it`, `es`, `fr`, `hr`, `sl`, `pt`, `zh`, `zh-hant`, `ja`,
        `ko`, `ru`; machine translations are stored under `<lang>_auto` keys
        internally). On read it is returned as a **single string** resolved for
        the requested `language` (falling back to English when the object is not
        consistently translated), or as the full per-language object when
        `showTranslations=true` is passed. On write, either a plain string
        (stored as English) or a partial per-language object is accepted.
      oneOf:
        - type: string
          example: Sunset Kayak Tour
        - type: object
          additionalProperties:
            type: string
          example:
            en: Sunset Kayak Tour
            de: Kajaktour bei Sonnenuntergang
    experienceDuration:
      type: object
      nullable: true
      description: >
        Duration split into days/hours/minutes. On experience reads this is
        **computed from the first active, non-custom option that defines a
        duration** — `null` when no active option has one.
      properties:
        days:
          type: integer
          description: Whole days component.
          example: 0
        hours:
          type: integer
          description: Hours component.
          example: 2
        minutes:
          type: integer
          description: Minutes component.
          example: 30
    experienceLocation:
      type: object
      nullable: true
      description: Where the experience takes place. Coordinates drive geo search and
        the local timezone.
      properties:
        city:
          type: string
          description: City name. Required (with country and coordinates) while the
            experience is ACTIVE.
          example: Split
        country:
          type: string
          description: Country name.
          example: Croatia
        address:
          type: string
          description: Street address.
          example: Riva 1
          nullable: true
        latitude:
          type: number
          format: double
          description: Latitude in decimal degrees.
          example: 43.508
        longitude:
          type: number
          format: double
          description: Longitude in decimal degrees.
          example: 16.44
        description:
          type: string
          description: Free-text directions or notes about the location.
          example: Next to the ferry terminal.
          nullable: true
    experiencePickup:
      type: object
      nullable: true
      description: Pickup configuration for the experience.
      properties:
        value:
          type: string
          description: Pickup offering (free-form configuration value).
          example: Hotel pickup available
        rules:
          type: string
          description: Rules or conditions attached to pickup.
          example: Within 5 km of the city center only.
    experiencePrice:
      type: object
      nullable: true
      description: A price boundary condition (used by `maxPrice` / `minPrice`).
      properties:
        amount:
          type: number
          format: double
          description: Monetary amount over every active variant, members-only included.
          example: 79
        freeOfCharge:
          type: boolean
          description: True when every variant in scope is free. Present on `minPrice` only.
          example: false
        public:
          allOf:
            - $ref: "#/components/schemas/experiencePriceScope"
          description: Same boundary over public variants only (`restricted=false`).
            `null` when no public variant is priced; absent until the experience
            is recomputed.
        private:
          allOf:
            - $ref: "#/components/schemas/experiencePriceScope"
          description: "Same boundary over what a `restricted=true` viewer can book: an
            option's members-only variants when it has any, else its public
            ones. `null` when nothing priced qualifies; absent until the
            experience is recomputed."
        currency:
          type: string
          description: ISO 4217 currency code.
          example: EUR
        unit:
          type: string
          description: Pricing unit the amount applies to (e.g. per person).
          example: person
          nullable: true
    experiencePriceScope:
      type: object
      nullable: true
      description: A viewer-scoped price boundary. Carries its own unit and free flag
        because the cheapest option for one viewer can use a different pricing
        model than for another.
      properties:
        amount:
          type: number
          format: double
          example: 99
        unit:
          type: string
          description: Pricing unit the amount applies to (e.g. per person).
          example: Person
          nullable: true
        freeOfCharge:
          type: boolean
          description: Present on `minPrice` scopes only.
          example: false
    experienceRefundPolicy:
      type: object
      nullable: true
      description: >
        Tiered refund policy. Tiers are evaluated by hours remaining before the
        experience start; the matching tier's percentage is refunded on
        cancellation.
      properties:
        tiers:
          type: array
          description: Refund tiers, typically ordered from most to least generous.
          items:
            type: object
            properties:
              hoursBeforeStart:
                type: integer
                description: Minimum hours before start for this tier to apply.
                example: 48
              refundPercentage:
                type: integer
                description: Percentage of the price refunded in this tier (0-100).
                example: 100
    experienceImage:
      type: object
      description: An experience photo. On write, the full image list replaces the
        stored one.
      properties:
        urlHigh:
          type: string
          format: uri
          description: High-resolution image URL (Cloudinary URLs are normalized on write).
          example: https://res.cloudinary.com/turneo/image/upload/hi.jpg
        urlLow:
          type: string
          format: uri
          description: Low-resolution/thumbnail image URL.
          example: https://res.cloudinary.com/turneo/image/upload/lo.jpg
          nullable: true
        altText:
          type: string
          description: Accessibility alt text for the image.
          example: Kayaks lined up at sunset
          nullable: true
    experienceExternalLink:
      type: object
      description: >
        A link to an external system. Type `EXTERNAL_ID` stores the
        provider-side activity ID used for Bokun/Regiondo availability sync;
        type `BOOKING_LINK` marks the experience as externally booked
        (`bookingType` becomes `EXTERNAL`).
      properties:
        id:
          type: string
          format: uuid
          description: Link ID.
          example: 3f1c2b4d-5e6f-4a1b-8c9d-0e1f2a3b4c5d
        type:
          type: string
          description: Link type (e.g. `EXTERNAL_ID`, `BOOKING_LINK`).
          example: EXTERNAL_ID
        name:
          type: string
          description: Display label for the link. May be blank.
          example: Bokun activity ID
        value:
          type: string
          description: The URL or external identifier.
          example: "1189606"
    experienceMeetingPoint:
      type: object
      description: >
        A meeting point. At most one meeting point of type
        `CENTRAL_MEETING_POINT` is allowed per experience. On write
        (`meetingPoints`), items with an `id` are updated, items without are
        created, and stored points missing from the list are deleted.
      properties:
        id:
          type: string
          format: uuid
          description: Meeting point ID. Include on update to modify an existing point.
          example: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d
        type:
          type: string
          description: Meeting point type (e.g. `CENTRAL_MEETING_POINT`).
          example: CENTRAL_MEETING_POINT
          nullable: true
        city:
          type: string
          description: City of the meeting point.
          example: Split
          nullable: true
        country:
          type: string
          description: Country of the meeting point.
          example: Croatia
          nullable: true
        address:
          type: string
          description: Street address.
          example: Riva 1
          nullable: true
        description:
          type: string
          description: How to find the guide / extra instructions.
          example: Look for the yellow flag.
          nullable: true
        latitude:
          type: number
          format: double
          description: Latitude in decimal degrees.
          example: 43.508
        longitude:
          type: number
          format: double
          description: Longitude in decimal degrees.
          example: 16.44
        timeBeforeStart:
          type: integer
          description: Minutes before the start time the traveler should arrive.
          example: 15
          nullable: true
        title:
          type: string
          description: Short display title of the meeting point.
          example: Riva promenade
          nullable: true
    experienceInclusion:
      type: object
      description: Something included in the experience price.
      properties:
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        inclusionId:
          type: string
          description: >
            Stable identifier of the inclusion (auto-generated when omitted on
            create). On update, submit it to edit the row in place; rows whose
            ID is missing from the submitted list are deleted.
          example: 64a1f0c2e4b0a1b2c3d4e5f6
    experienceExclusion:
      type: object
      description: Something explicitly not included in the experience price.
      properties:
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        exclusionId:
          type: string
          description: Stable identifier of the exclusion; same update semantics as
            `inclusionId`.
          example: 64a1f0c2e4b0a1b2c3d4e5f7
    experienceCategoryTheme:
      type: object
      description: A custom category theme attached to the experience
        (organizer-defined category names).
      properties:
        id:
          type: string
          format: uuid
          description: Category theme ID.
          example: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        nameDefault:
          type: string
          description: Default (untranslated) name of the theme.
          example: Family friendly
        isDefault:
          type: boolean
          description: Whether this is one of the partner's default themes.
          example: false
        description:
          type: string
          description: Optional description of the theme.
          example: Great for kids of all ages.
          nullable: true
    experienceParticipantType:
      type: object
      description: >
        A participant category of the experience (each experience gets Adult,
        Child and Infant defaults on creation; organizers or provider syncs can
        add custom types).
      properties:
        id:
          type: string
          format: uuid
          description: Participant type ID.
          example: 6d7e8f9a-0b1c-4d2e-8f3a-4b5c6d7e8f9a
        experienceId:
          type: string
          format: uuid
          description: ID of the owning experience.
          example: 5f8b8c1e-3f8a-4a1e-9d2b-1c2d3e4f5a6b
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        description:
          $ref: "#/components/schemas/experienceMultilangText"
        minAge:
          type: integer
          description: Minimum age for this participant type.
          example: 18
          nullable: true
        maxAge:
          type: integer
          description: Maximum age for this participant type.
          example: 99
          nullable: true
        capacityExempt:
          type: boolean
          description: When true, participants of this type do not count toward slot
            capacity.
          example: false
        sortOrder:
          type: integer
          description: Display order (ascending).
          example: 0
        isDefault:
          type: boolean
          description: True for the auto-created Adult/Child/Infant types (cannot be
            deleted).
          example: true
        externalId:
          type: string
          description: Provider-side identifier for externally synced participant types.
          example: BOKUN-ADULT
          nullable: true
        isEnabledOnBookableOptions:
          type: boolean
          description: >
            True when this type is offered on at least one option a guest can
            actually book going forward (active, non-custom option with a future
            bookable availability slot that does not disable this type).
          example: true
    experienceOrganizer:
      type: object
      description: Embedded summary of the organizer (owner) of the experience.
      properties:
        name:
          type: string
          description: Organizer display name.
          example: Acme Tours
        partnerId:
          type: string
          description: Organizer's public partner ID.
          example: acme-tours
        phone:
          type: string
          description: Contact phone number.
          example: "+385911234567"
          nullable: true
        partnerEmail:
          type: string
          format: email
          description: Organizer's email address.
          example: hello@acmetours.com
        partnerRating:
          type: number
          format: double
          description: Aggregate partner rating.
          example: 4.8
          nullable: true
        partnerReviews:
          type: integer
          description: Number of reviews contributing to the partner rating.
          example: 132
          nullable: true
        logo:
          type: string
          format: uri
          description: Organizer logo URL.
          example: https://res.cloudinary.com/turneo/image/upload/logo.png
          nullable: true
        website:
          type: string
          format: uri
          description: Organizer website.
          example: https://acmetours.com
          nullable: true
        aboutUs:
          type: string
          description: Organizer self-description.
          example: Family-run kayak outfitter since 2005.
          nullable: true
        supportEmail:
          type: string
          format: email
          description: Dedicated support email, when different from the main address.
          example: support@acmetours.com
          nullable: true
        featureFlags:
          type: object
          description: Feature flags enabled for this organizer.
          additionalProperties: true
          example: {}
    experienceTags:
      type: object
      nullable: true
      description: >
        Computed marketing tags. `exclusive`/`private` are recalculated from the
        current options and `allowedPartners` on every read; the remaining flags
        come from stored data.
      properties:
        likelyToSellOut:
          type: boolean
          description: Whether the experience is flagged as likely to sell out.
          example: false
        popular:
          type: boolean
          description: Whether the experience is flagged as popular.
          example: true
        exclusive:
          type: boolean
          description: True when the experience is shared with exactly one partner.
          example: false
        private:
          type: string
          enum:
            - NO
            - YES
            - ONLY_PRIVATE
          description: >
            Private-group availability across active options — `NO` (no private
            options), `YES` (mix of private and shared), `ONLY_PRIVATE` (all
            options are private).
          example: NO
    experienceDiscount:
      type: object
      nullable: true
      description: >
        The single highest currently valid discount across all active,
        non-custom options — either an availability discount or an early-bird
        discount. `null` when no discount applies or when availability comes
        from an external provider.
      properties:
        percentageAmount:
          type: number
          format: double
          description: Discount percentage.
          example: 15
        type:
          type: string
          enum:
            - AVAILABILITY
            - EARLY_BIRD
          description: Which kind of discount is the highest.
          example: AVAILABILITY
    experienceLocalizedEntry:
      type: object
      description: Translation completeness for one language across the experience and
        its option tree.
      properties:
        language:
          type: string
          description: 2-letter language code.
          example: de
        status:
          type: string
          enum:
            - ACTIVE
            - DRAFT
          description: >
            `ACTIVE` when every translatable field across the experience,
            inclusions, category themes, participant types and active
            options/variants/add-ons is translated; `DRAFT` (owner-only) when a
            partial translation exists.
          example: ACTIVE
        source:
          type: string
          enum:
            - AI
            - ORGANIZER
          description: Whether the translation is fully machine-generated or contains
            organizer-authored text.
          example: ORGANIZER
    experienceReviewItem:
      type: object
      description: One traveler review, embedded in the experience `reviews` object.
      properties:
        rating:
          type: integer
          description: Star rating (1-5).
          example: 5
        reviewText:
          type: string
          description: Review text, translated to the requested `language` when a
            translation exists.
          example: Fantastic sunset tour, our guide was brilliant.
          nullable: true
        reviewerName:
          type: string
          description: Reviewer display name; falls back to the booking's traveler first
            name.
          example: Anna
          nullable: true
        date:
          type: string
          description: Review date (ISO 8601).
          example: 2026-05-14T18:03:00
        source:
          type: string
          description: "`RESELLER` when the requesting partner posted the review
            themselves, `OTHER` otherwise."
          example: OTHER
        storeId:
          type: string
          description: Store the review was posted from — only exposed for the poster's
            own reviews, `null` otherwise.
          example: 64a1f0c2e4b0a1b2c3d4e5f6
          nullable: true
        status:
          type: string
          enum:
            - PENDING
            - ACCEPTED
            - REJECTED
          description: Moderation status. Non-ACCEPTED reviews appear only with
            `unapproved_reviews=true`.
          example: ACCEPTED
        insightfulnessScore:
          type: number
          format: double
          description: AI-scored insightfulness, used for ordering reviews.
          example: 0.87
          nullable: true
    experienceReviews:
      type: object
      nullable: true
      description: >
        Aggregated traveler reviews. `null` when the experience has no (visible)
        reviews. By default only ACCEPTED reviews are included; pass
        `unapproved_reviews=true` to include the rest. Reviews are ordered by
        rating, then insightfulness.
      properties:
        recommendedPercent:
          type: integer
          description: Percentage of visible reviews rated 3 stars or higher.
          example: 96
        rating:
          type: number
          format: double
          description: Average rating across visible reviews, rounded to one decimal.
          example: 4.8
        summary:
          type: string
          description: AI-generated summary of the reviews, when available.
          example: Guests consistently praise the guides and the sunset views.
          nullable: true
        reviews:
          type: array
          description: The individual reviews.
          items:
            $ref: "#/components/schemas/experienceReviewItem"
    experienceCommissionSetting:
      type: object
      description: >
        A commission configuration row. Exactly one `MARKETPLACE` row (no
        reseller) must exist; additional `RESELLER` rows each name a specific
        reseller and override the marketplace rate for that reseller.
      properties:
        id:
          type: string
          format: uuid
          description: Commission row ID. Submit on update to edit in place; omit to create.
          example: 4c5d6e7f-8a9b-4c0d-9e1f-2a3b4c5d6e7f
        type:
          type: string
          enum:
            - MARKETPLACE
            - RESELLER
          description: Whether this is the default marketplace rate or a per-reseller
            override.
          example: MARKETPLACE
        reseller:
          type: string
          description: Partner ID of the reseller this row applies to. Must be null/absent
            for MARKETPLACE rows.
          example: grand-hotel
          nullable: true
        value:
          type: integer
          description: Commission percentage.
          example: 20
    experienceNotificationSetting:
      type: object
      description: >
        A per-experience event notification preference of the organizer.
        Owner-only field; diff-merged by `id` on update.
      properties:
        id:
          type: string
          format: uuid
          description: Notification setting ID.
          example: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a
        type:
          type: string
          description: Notification event type (e.g. new booking, cancellation).
          example: BOOKING_CREATED
        method:
          type: string
          description: Delivery method (e.g. `EMAIL`, `WHATSAPP`).
          example: EMAIL
        conditions:
          type: object
          description: Optional conditions restricting when the notification fires.
          additionalProperties: true
          nullable: true
          example: {}
        contacts:
          type: array
          description: Override recipients (email addresses / phone numbers).
          items:
            type: string
          nullable: true
          example:
            - ops@acmetours.com
    experienceEmbeddedOption:
      type: object
      description: >
        An option embedded via `includeOptions=1`. The shape is exactly the item
        shape of `GET /v2/experiences/{id}/options` (documented with the options
        resource) — only the identifying fields are pinned here.
      additionalProperties: true
      properties:
        id:
          type: string
          format: uuid
          description: Option ID.
          example: 9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f
        status:
          type: string
          enum:
            - DRAFT
            - ACTIVE
            - INACTIVE
          description: Option status. Embedded lists default to ACTIVE options only.
          example: ACTIVE
        name:
          $ref: "#/components/schemas/experienceMultilangText"
    experienceDetail:
      type: object
      description: >
        Public read shape of an experience. When the caller is the experience's
        organizer, the response additionally carries the owner-only fields (see
        `experienceOwnDetail`).
      properties:
        id:
          type: string
          format: uuid
          description: Experience UUID.
          example: 5f8b8c1e-3f8a-4a1e-9d2b-1c2d3e4f5a6b
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        description:
          $ref: "#/components/schemas/experienceMultilangText"
        highlight:
          $ref: "#/components/schemas/experienceMultilangText"
        otherNotes:
          $ref: "#/components/schemas/experienceMultilangText"
        noReservationNote:
          $ref: "#/components/schemas/experienceMultilangText"
        code:
          type: string
          description: Optional internal reference code of the organizer.
          example: KAYAK-01
          nullable: true
        status:
          type: string
          enum:
            - ACTIVE
            - DRAFT
            - INACTIVE
            - CATALOGUE
          description: Lifecycle status. Only ACTIVE experiences are visible to other
            partners by default.
          example: ACTIVE
        experienceType:
          type: string
          enum:
            - EXPERIENCE
            - RETAIL
            - VOUCHER
          description: >
            `EXPERIENCE` is bookable through options and slots. `RETAIL` is a
            retail product and `VOUCHER` a gift voucher; both sell from SKUs
            instead (see the Retail group) and have no options, slots or
            participant types.
          example: EXPERIENCE
        organizer:
          $ref: "#/components/schemas/experienceOrganizer"
        categories:
          type: object
          description: 'Category assignment, e.g. `{"type": "Water sports", "theme":
            [...]}`.'
          additionalProperties: true
          nullable: true
          example:
            type: Water sports
        categoryThemes:
          type: array
          description: Custom category themes attached to the experience.
          items:
            $ref: "#/components/schemas/experienceCategoryTheme"
        location:
          $ref: "#/components/schemas/experienceLocation"
        meetingPoint:
          type: object
          description: Deprecated single meeting point — use `meetingPoints` instead.
          deprecated: true
          additionalProperties: true
          nullable: true
          example: null
        meetingPoints:
          type: array
          description: All meeting points of the experience.
          items:
            $ref: "#/components/schemas/experienceMeetingPoint"
        pickup:
          $ref: "#/components/schemas/experiencePickup"
        allowFreePickup:
          type: boolean
          description: Whether the traveler may enter a free-form pickup location.
          example: true
        duration:
          $ref: "#/components/schemas/experienceDuration"
        rating:
          type: object
          description: Deprecated legacy rating blob — use `reviews` instead.
          deprecated: true
          additionalProperties: true
          nullable: true
          example: null
        videos:
          type: array
          description: Video URLs (max 20). Always an array, never null.
          items:
            type: string
            format: uri
          example:
            - https://youtube.com/watch?v=abc123
        maxPrice:
          $ref: "#/components/schemas/experiencePrice"
        minPrice:
          $ref: "#/components/schemas/experiencePrice"
        languages:
          type: string
          description: Comma-separated languages the experience is conducted in.
          example: English,German
          nullable: true
        cutOffTime:
          type: integer
          description: Latest possible booking, in hours before the start time.
          example: 4
        refundPolicy:
          $ref: "#/components/schemas/experienceRefundPolicy"
        supportContact:
          type: array
          description: Support contacts overriding the organizer defaults, as `{type,
            value}` pairs.
          items:
            type: object
            properties:
              type:
                type: string
                description: Contact channel (`email`, `phone`, `whatsapp`).
                example: email
              value:
                type: string
                description: The address / number.
                example: support@acmetours.com
          nullable: true
        travellerTypeScores:
          type: object
          description: AI-computed suitability scores per traveler type.
          additionalProperties: true
          nullable: true
          example:
            families: 0.9
            couples: 0.7
        availableFrom:
          type: string
          format: date
          description: >
            When the experience has no bookable future availability, the date we
            expect it to become available again; `null` when it is currently
            available.
          example: 2026-09-01
          nullable: true
        publishedAt:
          type: string
          format: date-time
          description: When the experience was (last) activated. `null` for
            never-published drafts.
          example: 2026-04-02T09:15:00Z
          nullable: true
        commission:
          type: integer
          description: >
            Commission percentage that applies to the requesting partner — their
            private reseller rate when one exists, the marketplace rate
            otherwise, and 0 for organizers selling their own experience (Hub
            requests see the marketplace rate).
          example: 20
        commissionSettings:
          type: array
          description: >
            On the public shape, only populated (with a single row) when the
            requesting partner has a private reseller commission on this
            experience; otherwise `null`. Owners see the complete list.
          items:
            $ref: "#/components/schemas/experienceCommissionSetting"
          nullable: true
        included:
          type: array
          description: What the price includes.
          items:
            $ref: "#/components/schemas/experienceInclusion"
        excluded:
          type: array
          description: What the price excludes.
          items:
            $ref: "#/components/schemas/experienceExclusion"
        images:
          type: array
          description: Experience photos.
          items:
            $ref: "#/components/schemas/experienceImage"
        externalLinks:
          type: array
          description: Links to external systems (external IDs, booking links).
          items:
            $ref: "#/components/schemas/experienceExternalLink"
        bookingType:
          type: string
          enum:
            - INTERNAL
            - EXTERNAL
          description: "`EXTERNAL` when a `BOOKING_LINK` external link exists (booked
            off-platform), else `INTERNAL`."
          example: INTERNAL
        participantTypes:
          type: array
          description: Active participant types, ordered by `sortOrder`.
          items:
            $ref: "#/components/schemas/experienceParticipantType"
        options:
          type: array
          description: >
            Only present on retrieve when `includeOptions=1` is passed — absent
            otherwise (including on list responses). Same item shape and
            filtering as the `/options` sub-endpoint.
          items:
            $ref: "#/components/schemas/experienceEmbeddedOption"
        tags:
          $ref: "#/components/schemas/experienceTags"
        localized:
          type: array
          description: >
            Translation completeness per language, or `null` when nothing is
            translated. Non-owners only see complete (`ACTIVE`) languages; the
            owner also sees incomplete (`DRAFT`) ones.
          items:
            $ref: "#/components/schemas/experienceLocalizedEntry"
          nullable: true
        reviews:
          $ref: "#/components/schemas/experienceReviews"
        discount:
          $ref: "#/components/schemas/experienceDiscount"
        propertyId:
          type: string
          format: uuid
          description: UUID of the property (hotel) associated with this experience, if any.
          example: 8e9f0a1b-2c3d-4e5f-8a6b-7c8d9e0f1a2b
          nullable: true
        retailAttributes:
          type: array
          nullable: true
          description: The variation axes of a `RETAIL` or `VOUCHER` product, on `GET
            /v2/experiences/{id}` only. Null on list rows and on bookable
            experiences.
          items:
            $ref: "#/components/schemas/retailAttribute"
        retailSkus:
          type: array
          nullable: true
          description: The SKUs a shopper can buy, with live availability, for a `RETAIL`
            or `VOUCHER` product on `GET /v2/experiences/{id}` only. Null on
            list rows and on bookable experiences.
          items:
            $ref: "#/components/schemas/retailSkuStorefront"
        retailVoucherConfig:
          allOf:
            - $ref: "#/components/schemas/retailVoucherConfig"
          type: object
          nullable: true
          description: Redemption rules of a `VOUCHER` product, on `GET
            /v2/experiences/{id}` only. Null otherwise, and while no rules are
            set.
    experienceOwnDetail:
      allOf:
        - $ref: "#/components/schemas/experienceDetail"
        - type: object
          description: >
            Owner read shape — returned instead of the public shape whenever the
            requesting partner is the experience's organizer (create responses,
            own list rows, own retrieves).
          properties:
            createdAt:
              type: string
              format: date-time
              description: When the experience was created.
              example: 2026-03-30T10:00:00Z
            updatedAt:
              type: string
              format: date-time
              description: When the experience was last modified.
              example: 2026-06-20T08:45:00Z
            allowedPartners:
              type: array
              description: Partner IDs the experience is shared with. Empty means visible to
                all partners.
              items:
                type: string
              example:
                - grand-hotel
            contacts:
              type: array
              description: Organizer contact overrides for this experience, as `{type, value}`
                pairs.
              items:
                type: object
                additionalProperties: true
              example:
                - type: phone
                  value: "+385911234567"
            commissionSettings:
              type: array
              description: The complete list of commission rows (marketplace + per-reseller
                overrides).
              items:
                $ref: "#/components/schemas/experienceCommissionSetting"
            notificationSettings:
              type: array
              description: The organizer's per-experience notification preferences.
              items:
                $ref: "#/components/schemas/experienceNotificationSetting"
            availabilitySource:
              type: string
              enum:
                - Turneo
                - NoReservation
                - Bokun
                - Regiondo
                - Kompas
              description: Availability/booking provider for this experience.
              example: Turneo
            externalAvailabilitySyncedAt:
              type: string
              format: date-time
              description: >
                Last time an external availability sync was *requested* (stamped
                at dispatch; drives the manual-sync cooldown). `null` when never
                requested.
              example: 2026-06-19T07:00:00Z
              nullable: true
            sortScoreOverride:
              type: integer
              description: Manual override of the computed sort score, when one is set.
              example: null
              nullable: true
            private:
              type: boolean
              description: True for one-off custom-booking experiences (never listed, not
                editable).
              example: false
    experienceWriteRequest:
      type: object
      description: >
        Create/update payload. All fields are optional on PATCH; multilingual
        fields accept a plain string (stored as English) or a per-language
        object. Fields not listed here are managed by the server.
      properties:
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        description:
          $ref: "#/components/schemas/experienceMultilangText"
        highlight:
          $ref: "#/components/schemas/experienceMultilangText"
        otherNotes:
          $ref: "#/components/schemas/experienceMultilangText"
        noReservationNote:
          $ref: "#/components/schemas/experienceMultilangText"
        code:
          type: string
          description: Optional internal reference code.
          example: KAYAK-01
        experienceType:
          type: string
          enum:
            - EXPERIENCE
            - RETAIL
            - VOUCHER
          default: EXPERIENCE
          description: >
            Set on creation only; changing it later returns 400. Use `RETAIL`
            for a retail product or `VOUCHER` for a gift voucher, then set it up
            through the Retail endpoints. These must be created as drafts (400,
            `RETAIL_DRAFT_SETUP_REQUIRED`) and can be set `ACTIVE` once they
            have an enabled, priced SKU, and for a voucher, redemption rules
            covering at least one experience.
          example: RETAIL
        status:
          type: string
          enum:
            - ACTIVE
            - DRAFT
            - INACTIVE
            - CATALOGUE
          description: >
            Lifecycle status. Activating requires a meeting point / deprecated
            `meetingPoint` / `allowFreePickup` and triggers translation,
            categorization and `publishedAt` stamping.
          example: DRAFT
        categories:
          type: object
          description: Category assignment (validated against the platform category schema).
          additionalProperties: true
          example:
            type: Water sports
        location:
          $ref: "#/components/schemas/experienceLocation"
        meetingPoint:
          type: object
          description: >
            Deprecated single meeting point. When submitted without `location`,
            it is copied into `location` and (on create) a meeting point row is
            created from it. Prefer `meetingPoints`.
          deprecated: true
          additionalProperties: true
        meetingPoints:
          type: array
          description: >
            Meeting points (diff-merged by `id` on update). At most one
            `CENTRAL_MEETING_POINT` allowed.
          items:
            $ref: "#/components/schemas/experienceMeetingPoint"
        pickup:
          $ref: "#/components/schemas/experiencePickup"
        allowFreePickup:
          type: boolean
          description: Allow the traveler to enter a custom pickup location.
          example: true
        rating:
          type: object
          description: Deprecated legacy rating blob.
          deprecated: true
          additionalProperties: true
        duration:
          type: object
          description: >
            Deprecated experience-level duration — durations now live on
            options; the read value is computed from options.
          deprecated: true
          additionalProperties: true
        videos:
          type: array
          description: Video URLs (max 20).
          items:
            type: string
            format: uri
          example:
            - https://youtube.com/watch?v=abc123
        maxPrice:
          $ref: "#/components/schemas/experiencePrice"
        minPrice:
          $ref: "#/components/schemas/experiencePrice"
        languages:
          type: string
          description: Comma-separated languages the experience is conducted in.
          example: English,German
        cutOffTime:
          type: integer
          description: Latest possible booking, in hours before start.
          example: 4
        refundPolicy:
          $ref: "#/components/schemas/experienceRefundPolicy"
        commission:
          type: integer
          description: >
            Legacy scalar default (marketplace) commission percentage.
            Superseded by `commissionSettings`; still accepted for
            compatibility.
          example: 20
        commissionSettings:
          type: array
          description: >
            Full commission configuration. Must contain exactly one MARKETPLACE
            row without a reseller; RESELLER rows must each name a reseller
            (validated with 400 otherwise). Diff-merged by `id` on update.
          items:
            $ref: "#/components/schemas/experienceCommissionSetting"
        included:
          type: array
          description: Inclusions (diff-merged by `inclusionId` on update).
          items:
            $ref: "#/components/schemas/experienceInclusion"
        excluded:
          type: array
          description: Exclusions (diff-merged by `exclusionId` on update).
          items:
            $ref: "#/components/schemas/experienceExclusion"
        images:
          type: array
          description: Photos. On update the submitted list fully replaces the stored one.
          items:
            $ref: "#/components/schemas/experienceImage"
        externalLinks:
          type: array
          description: >
            External links. On update the submitted list fully replaces the
            stored one. Adding an `EXTERNAL_ID` link to a Bokun/Regiondo
            experience triggers an availability sync.
          items:
            $ref: "#/components/schemas/experienceExternalLink"
        allowedPartners:
          type: array
          description: >
            Partner IDs to share the experience with exclusively (only
            reseller/BOTH partners are valid — unknown IDs return 400). On
            update the submitted list replaces the stored one. When omitted on
            create by a BOTH-type partner, the experience is shared with that
            partner only.
          items:
            type: string
          example:
            - grand-hotel
        contacts:
          type: array
          description: Organizer contact overrides for this experience, as `{type, value}`
            pairs.
          items:
            type: object
            additionalProperties: true
          example:
            - type: email
              value: guides@acmetours.com
        supportContact:
          type: array
          description: Support contacts shown to travelers, as `{type, value}` pairs.
          items:
            type: object
            additionalProperties: true
          example:
            - type: email
              value: support@acmetours.com
        notificationSettings:
          type: array
          description: Per-experience notification preferences (diff-merged by `id` on
            update).
          items:
            $ref: "#/components/schemas/experienceNotificationSetting"
        propertyId:
          type: string
          format: uuid
          description: Property (hotel) to associate. Must exist (400 otherwise); `null`
            clears the association.
          example: 8e9f0a1b-2c3d-4e5f-8a6b-7c8d9e0f1a2b
          nullable: true
        categoryThemes:
          type: array
          description: >
            Category theme UUIDs to attach. Every theme must belong to the
            experience's organizer (400 otherwise).
          items:
            type: string
            format: uuid
          example:
            - 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
        sortScore:
          type: integer
          description: Initial/updated default sort score (write-only; not echoed on reads).
          example: 100
        availabilitySource:
          type: string
          enum:
            - Turneo
            - NoReservation
            - Bokun
            - Regiondo
            - Kompas
          description: >
            Availability provider. Switching to Bokun/Regiondo while an
            `EXTERNAL_ID` link exists triggers an immediate external
            availability sync.
          example: Turneo
        orderedOptionIds:
          type: array
          description: >
            Update-only (rejected on create with 400): reorders the experience's
            options — must list every visible option exactly once; rejected for
            external-availability experiences.
          items:
            type: string
            format: uuid
          example:
            - 9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f
    paginatedExperiences:
      type: object
      description: Standard pagination envelope for experience lists.
      properties:
        count:
          type: integer
          description: Total number of experiences matching the query, across all pages.
          example: 137
        next:
          type: string
          format: uri
          description: URL of the next page, or `null` on the last page.
          example: https://api.turneo.co/v2/experiences?page=2&page_size=50
          nullable: true
        previous:
          type: string
          format: uri
          description: URL of the previous page, or `null` on the first page.
          example: null
          nullable: true
        results:
          type: array
          description: >
            Experiences on this page. Rows the caller owns use the owner shape
            (`experienceOwnDetail`); other rows use the public shape.
          items:
            $ref: "#/components/schemas/experienceDetail"
    experienceAvailableFilters:
      type: object
      description: Facet counts for the experiences list (self-excluded semantics —
        see the endpoint description).
      properties:
        status:
          type: object
          description: Experience counts per status. Always contains all three keys,
            zero-filled.
          properties:
            ACTIVE:
              type: integer
              description: Number of ACTIVE experiences.
              example: 12
            INACTIVE:
              type: integer
              description: Number of INACTIVE experiences.
              example: 3
            DRAFT:
              type: integer
              description: Number of DRAFT experiences.
              example: 5
        categories:
          type: object
          description: Experience counts keyed by category type. Only non-empty categories
            appear.
          additionalProperties:
            type: integer
          example:
            Day trips: 4
            Dining: 2
        locations:
          type: object
          description: Experience counts keyed by location city. Only non-empty cities
            appear.
          additionalProperties:
            type: integer
          example:
            Paris: 7
            Rome: 3
        organizers:
          type: object
          description: Per-organizer counts keyed by organizer partner ID.
          additionalProperties:
            type: object
            properties:
              name:
                type: string
                description: Organizer display name.
                example: Acme Tours
              count:
                type: integer
                description: Number of matching experiences by this organizer.
                example: 6
          example:
            acme-tours:
              name: Acme Tours
              count: 6
    experienceSearchResponse:
      type: object
      description: Result of the semantic store search.
      properties:
        summary:
          type: string
          description: Reserved for a future search version — currently always `null`.
          example: null
          nullable: true
        experiences:
          type: array
          description: Experiences matched by the AI search, in relevance order.
          items:
            $ref: "#/components/schemas/experienceDetail"
    experienceRecommendationsResponse:
      type: object
      description: >
        AI recommendation payload. Besides the documented keys, the response
        echoes the request's query parameters (e.g. `storeId`, `guestId`,
        `language`, `from`, `until`, `group`, `interests`) as top-level string
        values — `name` and `email` are never echoed.
      additionalProperties: true
      properties:
        recommendationText:
          type: string
          description: >
            Conversational recommendation text generated for the guest. Empty
            string when AI recommendations are disabled or the AI call failed.
          example: Based on your love of the outdoors, we picked these for your stay.
        experiences:
          type: array
          description: Recommended experiences in recommendation order.
          items:
            $ref: "#/components/schemas/experienceDetail"
        experienceExplanations:
          type: array
          description: Per-experience explanation of why it was recommended.
          items:
            type: object
            properties:
              experienceId:
                type: string
                format: uuid
                description: The recommended experience.
                example: 5f8b8c1e-3f8a-4a1e-9d2b-1c2d3e4f5a6b
              explanation:
                type: string
                description: Human-readable reason for the recommendation.
                example: A strong fit for this guest.
              order:
                type: integer
                description: Zero-based recommendation rank.
                example: 0
    experienceReorderOptionsRequest:
      type: object
      required:
        - orderedOptionIds
      description: Complete new ordering of the experience's options.
      properties:
        orderedOptionIds:
          type: array
          description: >
            Every visible option ID of the experience, exactly once, in the
            desired display order. Partial lists, duplicates, unknown IDs and
            empty lists are rejected with 400.
          items:
            type: string
            format: uuid
          example:
            - 9c1d2e3f-4a5b-6c7d-8e9f-0a1b2c3d4e5f
            - 1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
    experienceReorderOptionsResponse:
      type: object
      description: Acknowledgement that the new option order was applied.
      properties:
        ok:
          type: boolean
          description: Always `true` on success.
          example: true
    experienceOptionDuration:
      type: object
      nullable: true
      description: >
        A duration split into calendar components. All components default to 0;
        a usable duration has at least one positive component.
      properties:
        days:
          type: integer
          description: Whole days component.
          example: 0
        hours:
          type: integer
          description: Hours component.
          example: 2
        minutes:
          type: integer
          description: Minutes component.
          example: 30
    experienceOptionMultilangText:
      type: object
      nullable: true
      additionalProperties:
        type: string
      description: >
        Multilingual text keyed by 2-letter language code. Returned as this full
        object by default; collapses to a plain string when the `language` query
        parameter is used.
      example:
        en: Shared boat tour
        de: Gemeinsame Bootstour
    experienceOptionPricingTier:
      type: object
      description: >
        One quantity band of a graduated price. Tiers must be contiguous
        (`minQuantity` = previous `maxQuantity` + 1), start at 1, and — for
        PER_GROUP_SIZE and DURATION_BASED pricing — end with an open-ended tier
        so every quantity is priced.
      properties:
        id:
          type: string
          format: uuid
          description: Tier id. Omit on create; include on update to modify an existing
            tier.
          example: 0f6f9a3a-4a1a-4a90-9c39-2f1d1a9c1a11
        minQuantity:
          type: integer
          description: Inclusive lower bound of the band. The first tier must start at 1.
          example: 1
        maxQuantity:
          type: integer
          nullable: true
          description: >
            Inclusive upper bound of the band. `null` makes the tier open-ended
            ("7+"); only the last tier may be open-ended.
          example: 6
        price:
          type: string
          description: Price for this band as a decimal string, in the experience currency.
          example: "120.00"
    experienceOptionParticipantPrice:
      type: object
      description: Per-person price for one participant type on a variant (PER_PERSON
        pricing).
      properties:
        id:
          type: string
          format: uuid
          description: Price row id. Omit on create; include on update.
          example: 61a3a9a2-1a7e-4a53-8f0a-6f0f4d1c2b33
        participantTypeId:
          type: string
          format: uuid
          description: The participant type this price applies to. Must be a type of the
            same experience.
          example: a7c53f01-6f9c-4d1c-9c30-1c19a1a5bd44
        price:
          type: string
          description: Price per participant of this type, decimal string.
          example: "45.00"
    experienceOptionVariant:
      type: object
      description: >
        A bookable flavour of the option (e.g. Standard vs Premium). Exactly one
        pricing shape is populated depending on the option's `pricingModel`:
        `flatPrice` (FLAT_RATE), `participantPrices` (PER_PERSON), or
        `groupSizeUnit` + `pricingTiers` (PER_GROUP_SIZE); DURATION_BASED uses
        `pricingTiers` priced per duration increment.
      properties:
        id:
          type: string
          format: uuid
          description: Variant id. Omit on create; include on update to modify in place.
          example: 4c9c2ab7-9a1d-4b8a-b6a0-5f2f8d3f7e21
        name:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        image:
          type: string
          nullable: true
          description: URL of an illustrative image for the variant.
          example: https://cdn.turneo.com/variants/premium.jpg
        maxParticipants:
          type: integer
          nullable: true
          description: >
            Maximum capacity-relevant participants this variant can hold per
            booking. `null` means unlimited.
          example: 8
        sortOrder:
          type: integer
          description: Display position among the option's variants (ascending).
          example: 0
        flatPrice:
          type: string
          nullable: true
          description: Flat price per booking, decimal string. Only for FLAT_RATE pricing.
          example: "150.00"
        groupSizeUnit:
          type: string
          nullable: true
          enum:
            - PER_PERSON
            - PER_GROUP
            - null
          description: >
            How PER_GROUP_SIZE tier prices are applied — per person in the group
            or once per group. Only for PER_GROUP_SIZE pricing.
          example: PER_GROUP
        pricingTiers:
          type: array
          description: Graduated price bands (PER_GROUP_SIZE / DURATION_BASED pricing).
            Active tiers only on reads.
          items:
            $ref: "#/components/schemas/experienceOptionPricingTier"
        participantPrices:
          type: array
          description: Per-participant-type prices (PER_PERSON pricing). Active prices
            only on reads.
          items:
            $ref: "#/components/schemas/experienceOptionParticipantPrice"
        restricted:
          type: boolean
          description: >
            Marks the variant as exclusive/member-only. Restricted variants are
            hidden or surfaced by the `restricted` query parameter on reads and
            the availability endpoints.
          example: false
    experienceOptionAddOn:
      type: object
      description: An optional extra the guest can attach to a booking of this option.
      properties:
        id:
          type: string
          format: uuid
          description: Add-on id. Omit on create; include on update.
          example: 5b1f7d64-3f8a-4f4c-8f0e-9e9a2b7c1d55
        name:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        sortOrder:
          type: integer
          description: Display position (ascending).
          example: 0
        addonType:
          type: string
          enum:
            - CHECKBOX
            - QUANTITY_SELECTOR
          description: |
            UI behaviour — a simple yes/no checkbox or a quantity selector.
          example: QUANTITY_SELECTOR
        perPerson:
          type: boolean
          description: When true, the add-on price/quantity applies per participant
            instead of per booking.
          example: false
        maxQuantity:
          type: integer
          nullable: true
          description: Maximum quantity selectable (QUANTITY_SELECTOR). `null` means no cap.
          example: 5
        price:
          type: string
          nullable: true
          description: Price per unit, decimal string. `null` means free.
          example: "12.00"
        nonCommissionable:
          type: boolean
          description: When true, the add-on amount is excluded from commission
            calculations.
          example: false
    experienceOptionExtraField:
      type: object
      description: A custom question or checkbox the guest answers at booking time.
      properties:
        id:
          type: string
          format: uuid
          description: Field id. Omit on create; include on update.
          example: 9d2b1c33-7e6a-4b2f-a1c4-3f5d6e7a8b90
        name:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        sortOrder:
          type: integer
          description: Display position (ascending).
          example: 0
        fieldType:
          type: string
          enum:
            - QUESTION
            - CHECKBOX
          description: Free-text question or boolean checkbox.
          example: QUESTION
        required:
          type: boolean
          description: Whether the guest must answer before the booking can be placed.
          example: true
    experienceOptionDiscount:
      type: object
      description: >
        A scheduled percentage discount. All constraint fields are nullable — a
        null constraint means "no restriction" on that dimension. The best
        matching discount is surfaced on availability slots as `type:
        AVAILABILITY`.
      properties:
        id:
          type: string
          format: uuid
          description: Discount id. Omit on create; include on update.
          example: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d
        percentageAmount:
          type: string
          description: Discount percentage as a decimal string.
          example: "10.00"
        startDate:
          type: string
          format: date
          nullable: true
          description: First slot date the discount applies to.
          example: 2026-07-01
        endDate:
          type: string
          format: date
          nullable: true
          description: Last slot date the discount applies to.
          example: 2026-07-31
        fromTime:
          type: string
          nullable: true
          description: Earliest slot start time the discount applies to, `HH:MM[:SS]` local.
          example: 09:00
        untilTime:
          type: string
          nullable: true
          description: Latest slot start time the discount applies to, `HH:MM[:SS]` local.
          example: 12:00
        daysOfWeek:
          type: array
          nullable: true
          description: Weekdays the discount applies to (0=Monday … 6=Sunday).
          items:
            type: integer
          example:
            - 0
            - 1
            - 2
            - 3
            - 4
    experienceOptionResourceGroup:
      type: object
      description: >
        A group of interchangeable organizer resources (guides, boats, courts…)
        the option needs one of per booking. When resource groups are configured
        they drive capacity instead of `slotCapacity`, and `groupType` becomes
        required. On writes, send `resources` as a list of resource UUID
        strings; `resourceDetails` is read-only.
      properties:
        id:
          type: string
          format: uuid
          description: Group id. Omit on create; include on update.
          example: 2f3e4d5c-6b7a-4c8d-9e0f-1a2b3c4d5e6f
        name:
          type: string
          nullable: true
          description: Organizer-facing group label.
          example: Kayaks
        resources:
          type: array
          description: IDs of the resources in this group.
          items:
            type: string
            format: uuid
          example:
            - c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f
        resourceDetails:
          type: array
          readOnly: true
          description: Read-only expansion of the group's resources.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: Resource id.
                example: c1d2e3f4-a5b6-4c7d-8e9f-0a1b2c3d4e5f
              name:
                type: string
                description: Resource name.
                example: Kayak 1
              capacity:
                type: integer
                nullable: true
                description: Maximum participants the resource can hold (its `maxParticipants`).
                example: 2
    experienceOption:
      type: object
      description: Full read shape of an option, including its active nested children.
      properties:
        id:
          type: string
          format: uuid
          description: Option id.
          example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
        experienceId:
          type: string
          format: uuid
          readOnly: true
          description: The parent experience id (always the experience in the URL).
          example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
        status:
          type: string
          enum:
            - DRAFT
            - ACTIVE
            - INACTIVE
          description: >
            Lifecycle status. Only ACTIVE options are sellable and generate
            availability slots. An option can never return to DRAFT once it has
            been ACTIVE or INACTIVE.
          example: ACTIVE
        name:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        code:
          type: string
          nullable: true
          description: Free-form organizer reference code.
          example: KAYAK-AM
        score:
          type: integer
          description: >
            Sort weight (ascending). Auto-assigned to the bottom on create when
            omitted; deactivated/deleted options are pushed to the bottom
            automatically.
          example: 100
        externalId:
          type: string
          nullable: true
          readOnly: true
          description: >
            External provider identifier when the option is synced from
            Bokun/Regiondo/Kompas. Externally-synced options cannot be mutated
            through this API.
          example: null
        note:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        instantUntilDuration:
          allOf:
            - $ref: "#/components/schemas/experienceOptionDuration"
          description: >
            Booking confirmation threshold. `null` = every booking needs manual
            organizer confirmation; an all-zero duration = always instant; a
            positive duration = instant only when booked further in advance than
            this threshold.
        disabledParticipantTypes:
          type: array
          description: >
            IDs of the experience's participant types that are NOT bookable on
            this option. Empty means all types are enabled.
          items:
            type: string
            format: uuid
          example: []
        startDate:
          type: string
          format: date
          nullable: true
          description: First sellable date. Required for ACTIVE options.
          example: 2026-07-01
        endDate:
          type: string
          format: date
          nullable: true
          description: Last sellable date. `null` means open-ended.
          example: 2026-09-30
        slotType:
          type: string
          nullable: true
          enum:
            - FLEXIBLE
            - FIXED
            - DATE_ONLY
            - null
          description: >
            How slots are generated: FLEXIBLE (a time window at a regular
            interval), FIXED (explicit start times per weekday) or DATE_ONLY
            (whole-day slots with no start time). Required for ACTIVE options.
          example: FIXED
        flexibleSlotConfig:
          type: object
          nullable: true
          description: >
            FLEXIBLE schedule config. Required for FLEXIBLE, must be empty
            otherwise. `fromTime` after `toTime` describes an overnight window.
          properties:
            fromTime:
              type: string
              description: Window start, `HH:MM` local time.
              example: 08:00
            toTime:
              type: string
              description: Window end, `HH:MM` local time.
              example: 18:00
            interval:
              type: string
              description: Step between generated slots, `HH:MM`.
              example: 00:30
            daysOfWeek:
              type: array
              description: Weekdays slots are generated for (0=Monday … 6=Sunday). Must be
                non-empty.
              items:
                type: integer
              example:
                - 0
                - 1
                - 2
                - 3
                - 4
        fixedSlotConfig:
          type: array
          nullable: true
          description: >
            FIXED schedule config — explicit start times per set of weekdays.
            Required for FIXED, must be empty otherwise.
          items:
            type: object
            properties:
              time:
                type: string
                description: Slot start time, `HH:MM` local.
                example: 09:00
              daysOfWeek:
                type: array
                description: Weekdays this start time applies to (0=Monday … 6=Sunday). Must be
                  non-empty.
                items:
                  type: integer
                example:
                  - 5
                  - 6
        groupType:
          type: string
          nullable: true
          enum:
            - PRIVATE
            - PUBLIC
            - null
          description: >
            Whether a booked resource is private to one party or shared.
            Required when resource groups are configured; must be empty
            otherwise.
          example: null
        slotCapacity:
          type: integer
          nullable: true
          description: >
            Participants per slot. Ignored (auto-nulled) when resource groups
            drive capacity. Individual slots can cap it further via
            `capacityOverride`.
          example: 10
        pricingModel:
          type: string
          nullable: true
          enum:
            - FLAT_RATE
            - PER_PERSON
            - PER_GROUP_SIZE
            - DURATION_BASED
            - null
          description: >
            How variant prices are computed. Required for ACTIVE options. On a
            non-DRAFT option the model cannot be switched to or from
            DURATION_BASED.
          example: PER_PERSON
        duration:
          allOf:
            - $ref: "#/components/schemas/experienceOptionDuration"
          description: >
            Fixed duration of one booking (FLAT_RATE / PER_PERSON /
            PER_GROUP_SIZE). Optional in general, but required (non-zero) for
            timed options with resource groups; must be empty for
            DURATION_BASED.
        durationIncrement:
          allOf:
            - $ref: "#/components/schemas/experienceOptionDuration"
          description: >
            DURATION_BASED only: the bookable time increment. Guests book N
            multiples of it (e.g. increment 30 minutes, 3 units = 90 minutes).
            Required non-zero for DURATION_BASED; must be empty otherwise.
        durationPricingUnit:
          type: string
          nullable: true
          enum:
            - PER_PERSON
            - PER_RESOURCE
            - null
          description: >
            UI-only hint for DURATION_BASED options: whether the per-increment
            price scales by headcount or is flat per resource. Not used by
            backend pricing.
          example: null
        multiDayMode:
          type: string
          nullable: true
          enum:
            - ROLLING_24H
            - CALENDAR_DAY
            - null
          description: >
            For rentals of one day or more: how the rental window ends.
            CALENDAR_DAY (default) — until the Nth rental day's working-hours
            close; ROLLING_24H — N × 24h from the start instant. Ignored for
            sub-day options.
          example: CALENDAR_DAY
        allowPartialDay:
          type: boolean
          description: >
            Fixed-duration options with resources only: when true, a booking
            whose full duration does not fit the remaining working hours of the
            day is accepted clamped to closing time, at the unchanged fixed
            price ("up to N hours" day passes). Not applicable to DURATION_BASED
            or multi-day options.
          example: false
        custom:
          type: boolean
          description: >
            True for one-off options auto-created for a specific custom booking.
            Custom options are excluded from public catalog queries and
            availability.
          example: false
        earlyBirdAdvanceDays:
          type: integer
          nullable: true
          description: >
            Days in advance a booking must be made to earn the early-bird
            discount. Must be set together with `earlyBirdDiscount`.
          example: 30
        earlyBirdDiscount:
          type: string
          nullable: true
          description: Early-bird discount percentage, decimal string. Set together with
            `earlyBirdAdvanceDays`.
          example: "15.00"
        variants:
          type: array
          description: Active variants, filtered by the `restricted` query parameter when
            present.
          items:
            $ref: "#/components/schemas/experienceOptionVariant"
        addons:
          type: array
          description: Active add-ons.
          items:
            $ref: "#/components/schemas/experienceOptionAddOn"
        extraFields:
          type: array
          description: Active extra booking fields.
          items:
            $ref: "#/components/schemas/experienceOptionExtraField"
        discounts:
          type: array
          description: Active scheduled discounts.
          items:
            $ref: "#/components/schemas/experienceOptionDiscount"
        resourceGroups:
          type: array
          description: Active resource groups, with read-only `resourceDetails` expansion.
          items:
            $ref: "#/components/schemas/experienceOptionResourceGroup"
    experienceOptionWrite:
      type: object
      description: >
        Writable option payload (create and update). Same field set as the read
        shape minus the read-only fields (`experienceId`, `externalId`) — nested
        arrays are reconciled by `id` on update: entries with an id are updated,
        entries without are created, and active entries omitted from a supplied
        array are soft-deleted. Omit an array entirely to leave it untouched.

        A native ACTIVE option must have at least one enabled active participant
        type with `capacityExempt: false`. Violations return HTTP 400 with code
        `OPTION_REQUIRES_CAPACITY_COUNTING_PARTICIPANT`; `attr.reason` is either
        `NO_ENABLED_PARTICIPANT_TYPES` or
        `ALL_ENABLED_PARTICIPANTS_CAPACITY_EXEMPT`, and `attr.optionId`
        identifies the invalid option.
      properties:
        status:
          type: string
          enum:
            - DRAFT
            - ACTIVE
            - INACTIVE
          description: >
            Lifecycle status; defaults to DRAFT on create. Non-DRAFT saves run
            full activation validation, except that an existing ACTIVE option
            may always be deactivated to INACTIVE. Reverting to DRAFT is
            rejected.
          example: ACTIVE
        name:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        code:
          type: string
          nullable: true
          description: Free-form organizer reference code.
          example: KAYAK-AM
        score:
          type: integer
          description: Sort weight; auto-assigned to the bottom when omitted on create.
          example: 300
        note:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        instantUntilDuration:
          allOf:
            - $ref: "#/components/schemas/experienceOptionDuration"
          description: Booking confirmation threshold (see read shape).
        disabledParticipantTypes:
          type: array
          description: >
            Participant type IDs to disable on this option. All IDs must belong
            to this experience (400 otherwise).
          items:
            type: string
            format: uuid
          example: []
        participantTypes:
          type: array
          description: >
            Optional full desired active participant-type state, reconciled
            atomically with the option. Omit this field to leave participant
            types untouched. When supplied, every active default type must be
            present; omitted custom types are soft-deleted. Existing IDs update
            rows, while unknown client-generated UUIDs create custom types.
            Default types accept only `id`, `minAge`, `maxAge`, and
            `capacityExempt`. `disabledParticipantTypes` may reference UUIDs
            created in the same request and represents the final disabled state
            for this option.
          items:
            type: object
            required:
              - id
            properties:
              id:
                type: string
                format: uuid
              name:
                $ref: "#/components/schemas/experienceOptionMultilangText"
              description:
                $ref: "#/components/schemas/experienceOptionMultilangText"
              minAge:
                type: integer
                nullable: true
              maxAge:
                type: integer
                nullable: true
              capacityExempt:
                type: boolean
              sortOrder:
                type: integer
        startDate:
          type: string
          format: date
          nullable: true
          description: First sellable date. Required for ACTIVE options. Changing it
            regenerates slots.
          example: 2026-07-01
        endDate:
          type: string
          format: date
          nullable: true
          description: Last sellable date; must not be before `startDate`. Changing it
            regenerates slots.
          example: 2026-09-30
        slotType:
          type: string
          nullable: true
          enum:
            - FLEXIBLE
            - FIXED
            - DATE_ONLY
            - null
          description: Slot generation mode. Changing it regenerates slots.
          example: FIXED
        flexibleSlotConfig:
          type: object
          nullable: true
          description: FLEXIBLE schedule config (see read shape). Changing it regenerates
            slots.
          properties:
            fromTime:
              type: string
              description: Window start, `HH:MM` local time.
              example: 08:00
            toTime:
              type: string
              description: Window end, `HH:MM` local time.
              example: 18:00
            interval:
              type: string
              description: Step between generated slots, `HH:MM`.
              example: 00:30
            daysOfWeek:
              type: array
              description: Weekdays (0=Monday … 6=Sunday), non-empty.
              items:
                type: integer
              example:
                - 0
                - 1
                - 2
                - 3
                - 4
        fixedSlotConfig:
          type: array
          nullable: true
          description: FIXED schedule config (see read shape). Changing it regenerates
            slots.
          items:
            type: object
            properties:
              time:
                type: string
                description: Slot start time, `HH:MM` local.
                example: 09:00
              daysOfWeek:
                type: array
                description: Weekdays (0=Monday … 6=Sunday), non-empty.
                items:
                  type: integer
                example:
                  - 5
                  - 6
        groupType:
          type: string
          nullable: true
          enum:
            - PRIVATE
            - PUBLIC
            - null
          description: Required when resource groups are configured; empty otherwise.
          example: null
        slotCapacity:
          type: integer
          nullable: true
          description: Participants per slot; auto-nulled when resource groups are
            configured.
          example: 10
        pricingModel:
          type: string
          nullable: true
          enum:
            - FLAT_RATE
            - PER_PERSON
            - PER_GROUP_SIZE
            - DURATION_BASED
            - null
          description: >
            Pricing model. On non-DRAFT options, switching to or from
            DURATION_BASED is rejected — create a new option instead.
          example: PER_PERSON
        duration:
          allOf:
            - $ref: "#/components/schemas/experienceOptionDuration"
          description: Fixed booking duration (non-DURATION_BASED models).
        durationIncrement:
          allOf:
            - $ref: "#/components/schemas/experienceOptionDuration"
          description: Bookable increment (DURATION_BASED only).
        durationPricingUnit:
          type: string
          nullable: true
          enum:
            - PER_PERSON
            - PER_RESOURCE
            - null
          description: UI-only pricing-unit hint for DURATION_BASED options.
          example: null
        multiDayMode:
          type: string
          nullable: true
          enum:
            - ROLLING_24H
            - CALENDAR_DAY
            - null
          description: Rental-window end semantics for multi-day options.
          example: CALENDAR_DAY
        allowPartialDay:
          type: boolean
          description: >
            Accept clamped "rest of the working day" bookings on fixed-duration
            resource-backed options. Rejected on DURATION_BASED options, options
            without resource groups, and multi-day durations.
          example: false
        custom:
          type: boolean
          description: Mark as a custom (single-booking) option, hidden from public queries.
          example: false
        earlyBirdAdvanceDays:
          type: integer
          nullable: true
          description: Early-bird threshold in days; set together with `earlyBirdDiscount`
            or not at all.
          example: 30
        earlyBirdDiscount:
          type: string
          nullable: true
          description: Early-bird discount percentage, decimal string.
          example: "15.00"
        variants:
          type: array
          description: >
            Variants to reconcile. When omitted on create, a single default
            (unpriced) variant is created automatically.
          items:
            $ref: "#/components/schemas/experienceOptionVariant"
        addons:
          type: array
          description: Add-ons to reconcile.
          items:
            $ref: "#/components/schemas/experienceOptionAddOn"
        extraFields:
          type: array
          description: Extra booking fields to reconcile.
          items:
            $ref: "#/components/schemas/experienceOptionExtraField"
        discounts:
          type: array
          description: Scheduled discounts to reconcile.
          items:
            $ref: "#/components/schemas/experienceOptionDiscount"
        resourceGroups:
          type: array
          description: >
            Resource groups to reconcile. `resources` is a list of resource UUID
            strings (objects are rejected).
          items:
            $ref: "#/components/schemas/experienceOptionResourceGroup"
    paginatedExperienceOptions:
      type: object
      description: Standard pagination envelope around option results.
      properties:
        count:
          type: integer
          description: Total number of options matching the filters.
          example: 3
        next:
          type: string
          nullable: true
          description: Absolute URL of the next page, or null on the last page.
          example: null
        previous:
          type: string
          nullable: true
          description: Absolute URL of the previous page, or null on the first page.
          example: null
        results:
          type: array
          description: Options on this page, ordered by `score` ascending.
          items:
            $ref: "#/components/schemas/experienceOption"
    experienceOptionCalendarSlot:
      type: object
      description: >
        One availability slot in the organizer calendar shape, including slots
        the guest-facing availability endpoints would hide.
      properties:
        id:
          type: string
          format: uuid
          description: Slot id.
          example: 6a5b4c3d-2e1f-4a9b-8c7d-6e5f4a3b2c1d
        startDate:
          type: string
          format: date
          description: Slot date, local to the experience.
          example: 2026-07-14
        startTime:
          type: string
          nullable: true
          description: Slot start time (`HH:MM:SS` local). `null` for DATE_ONLY options.
          example: 09:00:00
        localTime:
          type: string
          description: >
            Combined local start as an ISO string — `YYYY-MM-DDTHH:MM:SS`, or
            just `YYYY-MM-DD` when the slot has no start time.
          example: 2026-07-14T09:00:00
        isBookable:
          type: boolean
          description: >
            Whether the slot accepts new bookings. False when the organizer
            closed sales or slot regeneration orphaned it while it still had
            bookings.
          example: true
        externalCapacity:
          type: integer
          nullable: true
          description: >
            Capacity last reported by the external provider. Authoritative only
            on genuinely external options; a stale value on native Turneo
            options is ignored for status computation.
          example: null
        capacityOverride:
          type: integer
          nullable: true
          description: >
            Organizer-set per-slot capacity cap. `null` means the option's
            `slotCapacity` applies.
          example: 8
        bookingsQuantity:
          type: integer
          description: >
            Capacity-relevant participants currently booked on the slot (live
            bookings only, including guest basket holds; capacity-exempt types
            such as infants excluded).
          example: 2
        onHoldQuantity:
          type: integer
          description: >
            Subset of `bookingsQuantity` sitting in guest baskets (`ON_HOLD`).
            Still consumes capacity until the guest pays or the hold lapses. Can
            lag by up to the hold-expiry sweep interval: a lapsed hold still
            reads as held until the expiry task runs. On external-provider slots
            (Bokun/Regiondo/Rezdy) `availableQuantity` is the provider's own
            count and is not reduced by local bookings, so the three quantities
            do not reconcile there.
          example: 1
        availableQuantity:
          type: integer
          nullable: true
          description: >
            Remaining bookable capacity (effective capacity minus
            `bookingsQuantity`). `null` when the option has no capacity source
            (e.g. purely resource-driven).
          example: 6
        availabilityStatus:
          type: string
          enum:
            - SELLING
            - SOLD_OUT
            - BLOCKED
            - CLOSED
            - CANCELLED
          description: >
            Computed operational status: SELLING (bookable, capacity left),
            SOLD_OUT (no capacity left), BLOCKED (overlapped by an option
            block), CLOSED (sales stopped on this slot, `isBookable: false`,
            bookings untouched), CANCELLED (soft-deleted, its bookings
            cancelled).
          example: SELLING
        discount:
          type: object
          nullable: true
          description: Discount a booking made right now would receive, or null.
          properties:
            percentage:
              type: number
              description: Discount percentage.
              example: 10
            type:
              type: string
              enum:
                - EARLY_BIRD
                - AVAILABILITY
              description: Discount source — the option's early-bird rule or a scheduled
                availability discount.
              example: AVAILABILITY
    experienceOptionCalendar:
      type: object
      description: Envelope returned by the option calendar slots listing.
      properties:
        experienceId:
          type: string
          format: uuid
          description: The experience id from the URL.
          example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
        optionId:
          type: string
          format: uuid
          description: The option id from the URL.
          example: 3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6
        from:
          type: string
          format: date
          description: Echo of the requested range start.
          example: 2026-07-01
        until:
          type: string
          format: date
          description: Echo of the requested range end.
          example: 2026-07-31
        slots:
          type: array
          description: All operational slots in the range, ordered by date then time.
          items:
            $ref: "#/components/schemas/experienceOptionCalendarSlot"
    experienceOptionSlotUpdate:
      type: object
      description: >
        Patch payload for a calendar slot. At least one of the two fields must
        be present (an empty payload is a 400).
      properties:
        capacityOverride:
          type: integer
          nullable: true
          minimum: 0
          description: >
            Per-slot capacity cap. `null` clears the override. Must be a
            non-negative integer not below the slot's current live-booked
            quantity.
          example: 3
        isBookable:
          type: boolean
          description: Open (`true`) or close (`false`) sales for the slot.
          example: false
    experienceOptionSlotCancelRequest:
      type: object
      description: Optional payload for cancelling a slot.
      properties:
        reason:
          type: string
          nullable: true
          description: >
            Free-text cancellation reason, recorded on every cancelled booking's
            cancellation details and surfaced in guest notifications.
          example: Bad weather
    experienceOptionSlotCancelResult:
      type: object
      description: Result of a slot cancellation.
      properties:
        slotId:
          type: string
          format: uuid
          description: The cancelled slot's id.
          example: 6a5b4c3d-2e1f-4a9b-8c7d-6e5f4a3b2c1d
        cancelledBookingIds:
          type: array
          description: >
            IDs of the live bookings that were cancelled (ACCEPTED/PENDING →
            CANCELLED, ON_HOLD → EXPIRED). Empty when the slot had no live
            bookings.
          items:
            type: string
            format: uuid
          example:
            - b1c2d3e4-f5a6-4b7c-8d9e-0f1a2b3c4d5e
    participantType:
      type: object
      description: Read shape of a participant type.
      properties:
        id:
          type: string
          format: uuid
          description: Participant type id.
          example: a7c53f01-6f9c-4d1c-9c30-1c19a1a5bd44
        experienceId:
          type: string
          format: uuid
          readOnly: true
          description: The parent experience id.
          example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
        name:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        description:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        minAge:
          type: integer
          nullable: true
          description: Minimum age (inclusive), or null when unbounded.
          example: 18
        maxAge:
          type: integer
          nullable: true
          description: Maximum age (inclusive), or null when unbounded.
          example: null
        capacityExempt:
          type: boolean
          description: >
            When true, participants of this type (e.g. infants) do not count
            toward slot or variant capacity.
          example: false
        sortOrder:
          type: integer
          description: Display position (ascending).
          example: 0
        isDefault:
          type: boolean
          description: >
            True for the seeded Adult/Child/Infant types. Default types cannot
            be deleted and only their age range can be edited.
          example: true
        externalId:
          type: string
          nullable: true
          description: External provider identifier when synced from Bokun/Regiondo/Kompas.
          example: null
        isEnabledOnBookableOptions:
          type: boolean
          readOnly: true
          description: >
            Computed: true when at least one ACTIVE, non-custom option of the
            experience enables this type AND has a future bookable availability
            slot — i.e. a guest could actually book it right now.
          example: true
    participantTypeWrite:
      type: object
      description: >
        Writable participant type payload. On default types (Adult/Child/Infant)
        only `minAge` and `maxAge` are accepted — any other field is a 400.
      properties:
        name:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        description:
          $ref: "#/components/schemas/experienceOptionMultilangText"
        minAge:
          type: integer
          nullable: true
          description: Minimum age (inclusive).
          example: 65
        maxAge:
          type: integer
          nullable: true
          description: Maximum age (inclusive).
          example: null
        capacityExempt:
          type: boolean
          description: Exclude this type from capacity counting.
          example: false
        sortOrder:
          type: integer
          description: Display position (ascending).
          example: 4
        isDefault:
          type: boolean
          description: >
            Whether this is a seeded default type. Custom types created through
            the API should leave this false; non-default types start disabled on
            every existing option.
          example: false
        externalId:
          type: string
          nullable: true
          description: External provider identifier (used by provider sync).
          example: null
    paginatedParticipantTypes:
      type: object
      description: Standard pagination envelope around participant type results.
      properties:
        count:
          type: integer
          description: Total number of participant types.
          example: 3
        next:
          type: string
          nullable: true
          description: Absolute URL of the next page, or null on the last page.
          example: null
        previous:
          type: string
          nullable: true
          description: Absolute URL of the previous page, or null on the first page.
          example: null
        results:
          type: array
          description: Participant types on this page, ordered by `sortOrder`.
          items:
            $ref: "#/components/schemas/participantType"
    availabilityDates:
      type: object
      description: Response of the available-dates endpoint.
      properties:
        experienceId:
          type: string
          format: uuid
          description: The experience id from the URL.
          example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
        from:
          type: string
          format: date
          description: Echo of the requested range start.
          example: 2026-07-01
        until:
          type: string
          format: date
          description: Echo of the requested range end.
          example: 2026-07-31
        availableDates:
          type: array
          description: >
            Sorted dates on which at least one option has at least one bookable
            slot for the requested party. Empty when nothing is bookable in the
            range.
          items:
            type: string
            format: date
          example:
            - 2026-07-14
            - 2026-07-15
            - 2026-07-18
    availabilityDiscount:
      type: object
      nullable: true
      description: Discount a booking made right now would receive on the slot, or null.
      properties:
        percentage:
          type: number
          description: Discount percentage.
          example: 15
        type:
          type: string
          enum:
            - EARLY_BIRD
            - AVAILABILITY
          description: >
            EARLY_BIRD — the option's early-bird rule matched (booked far enough
            in advance); AVAILABILITY — the best matching scheduled option
            discount.
          example: EARLY_BIRD
    availabilitySlot:
      type: object
      description: One bookable time slot for an option on the requested date.
      properties:
        slotId:
          type: string
          format: uuid
          description: >
            The availability slot id — pass it when creating a booking on this
            slot.
          example: 6a5b4c3d-2e1f-4a9b-8c7d-6e5f4a3b2c1d
        startTime:
          type: string
          nullable: true
          description: >
            Local start time, `HH:MM:SS`. `null` for DATE_ONLY options (the slot
            spans the whole day).
          example: 10:00:00
        discount:
          $ref: "#/components/schemas/availabilityDiscount"
    availabilityVariant:
      type: object
      description: Per-variant availability verdict for the requested party.
      properties:
        variantId:
          type: string
          format: uuid
          description: Variant id.
          example: 4c9c2ab7-9a1d-4b8a-b6a0-5f2f8d3f7e21
        name:
          type: object
          nullable: true
          additionalProperties:
            type: string
          description: Multilingual variant name.
          example:
            en: Premium
        maxParticipants:
          type: integer
          nullable: true
          description: Variant capacity per booking; null means unlimited.
          example: 2
        isAvailable:
          type: boolean
          description: Whether this variant can hold the requested party.
          example: false
        unavailabilityReason:
          type: string
          nullable: true
          enum:
            - MAX_PARTICIPANTS_EXCEEDED
            - null
          description: >
            Why the variant is unavailable — currently only
            MAX_PARTICIPANTS_EXCEEDED (the party exceeds `maxParticipants`).
            `null` when available.
          example: MAX_PARTICIPANTS_EXCEEDED
    availabilityOptionSlots:
      type: object
      description: Slot availability for a single option on the requested date.
      properties:
        slots:
          type: array
          description: >
            Bookable slots sorted by start time. Empty when the option is
            unavailable — see `unavailabilityReason`.
          items:
            $ref: "#/components/schemas/availabilitySlot"
        variants:
          type: array
          description: >
            Visible variants with per-variant availability. Empty when the
            option was skipped before variant evaluation
            (PARTICIPANT_TYPE_MISMATCH).
          items:
            $ref: "#/components/schemas/availabilityVariant"
        unavailabilityReason:
          type: string
          nullable: true
          enum:
            - PARTICIPANT_TYPE_MISMATCH
            - MAX_PARTICIPANTS_EXCEEDED
            - NO_SLOTS
            - SOLD_OUT
            - null
          description: >
            `null` when the option has bookable slots. Otherwise:
            PARTICIPANT_TYPE_MISMATCH — the option disables a requested
            participant type; MAX_PARTICIPANTS_EXCEEDED — no variant fits the
            party; NO_SLOTS — no slots exist on this date; SOLD_OUT — slots
            exist but none has capacity.
          example: null
    availabilitySlots:
      type: object
      description: Response of the available-slots endpoint.
      properties:
        experienceId:
          type: string
          format: uuid
          description: The experience id from the URL.
          example: 8e7d6c5b-4a39-4281-90ef-1a2b3c4d5e6f
        date:
          type: string
          format: date
          description: Echo of the requested date.
          example: 2026-07-14
        options:
          type: object
          description: >
            Map of option id → availability. Every active (non-custom) option of
            the experience is present (or only the requested one when `optionId`
            is passed). Keys are option UUIDs.
          additionalProperties:
            $ref: "#/components/schemas/availabilityOptionSlots"
          example:
            3d3f9c2a-1b2c-4d5e-8f90-a1b2c3d4e5f6:
              slots:
                - slotId: 6a5b4c3d-2e1f-4a9b-8c7d-6e5f4a3b2c1d
                  startTime: 10:00:00
                  discount:
                    percentage: 15
                    type: EARLY_BIRD
                - slotId: 7b6c5d4e-3f2a-4b8c-9d0e-1f2a3b4c5d6e
                  startTime: 14:00:00
                  discount: null
              variants:
                - variantId: 4c9c2ab7-9a1d-4b8a-b6a0-5f2f8d3f7e21
                  name:
                    en: Standard
                  maxParticipants: 4
                  isAvailable: true
                  unavailabilityReason: null
              unavailabilityReason: null
            9e8d7c6b-5a4f-4e3d-8c2b-1a0f9e8d7c6b:
              slots: []
              variants: []
              unavailabilityReason: SOLD_OUT
    optionMultilangText:
      description: >
        Multilingual text field. By default resolves to a single string in the
        requested `language` (with fallback to the default language); when
        `showTranslations=true` is passed, the full per-language object is
        returned instead (e.g. `{"en": "Shared boat tour", "de": "Geteilte
        Bootstour"}`). Null when the field is unset.
      oneOf:
        - type: string
          description: Language-resolved text (default representation).
          example: Shared boat tour
        - type: object
          description: >
            Full per-language object (only when `showTranslations=true`). Keys
            are language codes.
          additionalProperties:
            type: string
          example:
            en: Shared boat tour
            de: Geteilte Bootstour
    optionDuration:
      type: object
      nullable: true
      description: >
        A duration split into days, hours and minutes. All components are
        non-negative integers; at least one component is positive on a
        meaningful duration.
      properties:
        days:
          type: integer
          description: Whole days component of the duration.
          example: 0
        hours:
          type: integer
          description: Hours component of the duration.
          example: 2
        minutes:
          type: integer
          description: Minutes component of the duration.
          example: 30
    optionFlexibleSlotConfig:
      type: object
      nullable: true
      description: >
        Slot generation config for `FLEXIBLE` options: slots are generated every
        `interval` between `fromTime` and `toTime` on the configured weekdays.
        Null unless `slotType` is `FLEXIBLE`.
      properties:
        fromTime:
          type: string
          description: Local time of day the first slot starts (HH:MM).
          example: 08:00
        toTime:
          type: string
          description: Local time of day after which no more slots start (HH:MM).
          example: 18:00
        interval:
          type: string
          description: Gap between consecutive slot start times (HH:MM).
          example: 01:00
        daysOfWeek:
          type: array
          description: >
            Weekdays on which slots are generated. Integers 0-6 where 0 is
            Monday and 6 is Sunday.
          items:
            type: integer
            minimum: 0
            maximum: 6
          example:
            - 0
            - 1
            - 2
            - 3
            - 4
    optionFixedSlotEntry:
      type: object
      description: >
        One entry of the `FIXED` slot schedule: a fixed local start time on a
        set of weekdays.
      properties:
        time:
          type: string
          description: Local start time of the slot (HH:MM).
          example: 09:30
        daysOfWeek:
          type: array
          description: >
            Weekdays on which this slot occurs. Integers 0-6 where 0 is Monday
            and 6 is Sunday.
          items:
            type: integer
            minimum: 0
            maximum: 6
          example:
            - 5
            - 6
    optionPricingTier:
      type: object
      description: >
        A quantity-banded price on a variant. Used by `PER_GROUP_SIZE` pricing
        (band = group size) and `DURATION_BASED` pricing (band = number of
        duration increments). Tiers form a continuous range starting at 1 with
        no gaps or overlaps; the final tier is open-ended (`maxQuantity` null).
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the pricing tier.
          example: 3c9a7b1d-2e4f-4a5b-8c6d-7e8f9a0b1c2d
        minQuantity:
          type: integer
          description: Inclusive lower bound of the quantity band. The first tier always
            starts at 1.
          example: 1
        maxQuantity:
          type: integer
          nullable: true
          description: >
            Inclusive upper bound of the quantity band. Null means open-ended
            ("7+"); only the last tier may be open-ended.
          example: 6
        price:
          type: string
          description: Price for this band, as a decimal string in the experience currency.
          example: "120.00"
    optionParticipantPrice:
      type: object
      description: >
        Per-person price for one participant type on a variant. Used by
        `PER_PERSON` pricing; an active per-person option prices every
        participant type enabled on it.
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the participant price row.
          example: 5e2d1c0b-9a8f-4e7d-b6c5-a4b3c2d1e0f9
        participantTypeId:
          type: string
          format: uuid
          description: UUID of the participant type (e.g. Adult, Child) this price applies
            to.
          example: 1f2e3d4c-5b6a-4978-8d0e-9f8a7b6c5d4e
        price:
          type: string
          description: Price per participant of this type, as a decimal string.
          example: "45.00"
    optionVariant:
      type: object
      description: >
        A bookable flavour of the option (e.g. "Morning departure", "Premium
        boat"). Exactly one pricing shape is populated depending on the option's
        `pricingModel`: `flatPrice` for FLAT_RATE, `participantPrices` for
        PER_PERSON, `groupSizeUnit` + `pricingTiers` for PER_GROUP_SIZE, and
        `pricingTiers` for DURATION_BASED.
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the variant.
          example: 9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
        name:
          $ref: "#/components/schemas/optionMultilangText"
        image:
          type: string
          nullable: true
          description: URL of an illustrative image for the variant. Null when not set.
          example: https://cdn.turneo.com/variants/boat-morning.jpg
        maxParticipants:
          type: integer
          nullable: true
          description: >
            Maximum participants a single booking of this variant may include.
            Null means no variant-level cap.
          example: 8
        sortOrder:
          type: integer
          description: Ascending display position among the option's variants.
          example: 0
        flatPrice:
          type: string
          nullable: true
          description: >
            Fixed price per booking, as a decimal string. Only set for FLAT_RATE
            options; null otherwise.
          example: "150.00"
        groupSizeUnit:
          type: string
          nullable: true
          enum:
            - PER_PERSON
            - PER_GROUP
            - null
          description: >
            How PER_GROUP_SIZE tier prices are applied — per person in the group
            or once per group. Null for other pricing models.
          example: PER_GROUP
        pricingTiers:
          type: array
          description: >
            Quantity-banded prices. Populated for PER_GROUP_SIZE and
            DURATION_BASED options; empty otherwise. Only active tiers are
            returned.
          items:
            $ref: "#/components/schemas/optionPricingTier"
        participantPrices:
          type: array
          description: >
            Per-participant-type prices. Populated for PER_PERSON options; empty
            otherwise. Only active prices are returned.
          items:
            $ref: "#/components/schemas/optionParticipantPrice"
        restricted:
          type: boolean
          description: >
            Marks the variant as exclusive/member-only with special pricing.
            Filterable via the `restricted` query parameter on option reads.
          example: false
    optionAddOn:
      type: object
      description: An optional extra a traveler can add to a booking of this option.
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the add-on.
          example: 2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a
        name:
          $ref: "#/components/schemas/optionMultilangText"
        sortOrder:
          type: integer
          description: Ascending display position among the option's add-ons.
          example: 0
        addonType:
          type: string
          enum:
            - CHECKBOX
            - QUANTITY_SELECTOR
          description: >
            UI behaviour — `CHECKBOX` is a yes/no extra, `QUANTITY_SELECTOR`
            lets the traveler pick a quantity.
          example: QUANTITY_SELECTOR
        perPerson:
          type: boolean
          description: When true the add-on price is charged once per participant rather
            than per booking.
          example: false
        maxQuantity:
          type: integer
          nullable: true
          description: Maximum quantity a booking may add. Null means unlimited.
          example: 5
        price:
          type: string
          nullable: true
          description: Price per unit of the add-on, as a decimal string. Null means free.
          example: "12.50"
        nonCommissionable:
          type: boolean
          description: When true the add-on amount is excluded from commission calculations.
          example: false
    optionExtraField:
      type: object
      description: >
        A custom question or checkbox the traveler answers when booking this
        option.
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the extra field.
          example: 4a5b6c7d-8e9f-4a0b-9c1d-2e3f4a5b6c7d
        name:
          $ref: "#/components/schemas/optionMultilangText"
        sortOrder:
          type: integer
          description: Ascending display position among the option's extra fields.
          example: 0
        fieldType:
          type: string
          enum:
            - QUESTION
            - CHECKBOX
          description: >
            Input type — `QUESTION` collects free text, `CHECKBOX` collects a
            yes/no answer.
          example: QUESTION
        required:
          type: boolean
          description: When true the traveler must answer this field to complete the
            booking.
          example: true
    optionDiscount:
      type: object
      description: >
        A percentage discount on the option, optionally constrained by date
        range, time-of-day window and weekdays. All constraint fields are
        nullable — a null constraint means "no restriction".
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the discount.
          example: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
        percentageAmount:
          type: string
          description: Discount percentage as a decimal string (e.g. "15.00" = 15% off).
          example: "15.00"
        startDate:
          type: string
          format: date
          nullable: true
          description: First date (inclusive) the discount applies. Null means no lower
            bound.
          example: 2026-06-01
        endDate:
          type: string
          format: date
          nullable: true
          description: Last date (inclusive) the discount applies. Null means no upper
            bound.
          example: 2026-06-30
        fromTime:
          type: string
          nullable: true
          description: Local time of day (HH:MM:SS) from which slots qualify. Null means
            from midnight.
          example: 14:00:00
        untilTime:
          type: string
          nullable: true
          description: Local time of day (HH:MM:SS) until which slots qualify. Null means
            until midnight.
          example: 18:00:00
        daysOfWeek:
          type: array
          nullable: true
          description: >
            Weekdays the discount applies on (0 = Monday … 6 = Sunday). Null
            means every day.
          items:
            type: integer
            minimum: 0
            maximum: 6
          example:
            - 0
            - 1
            - 2
            - 3
    optionResourceGroup:
      type: object
      description: >
        A group of interchangeable organizer resources (guides, boats, bikes…)
        that back this option's capacity. When resource groups are configured
        the option's capacity is driven by resource availability instead of
        `slotCapacity`.
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the resource group.
          example: 8e9f0a1b-2c3d-4e4f-8a5b-6c7d8e9f0a1b
        name:
          type: string
          nullable: true
          description: Display name of the group. Null when not set.
          example: Kayaks
        resources:
          type: array
          description: >
            UUIDs of the resources in the group. Legacy shape kept for backwards
            compatibility — `resourceDetails` carries the richer form.
          items:
            type: string
            format: uuid
          example:
            - a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
        resourceDetails:
          type: array
          description: Embedded summary of each resource in the group.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: UUID of the resource.
                example: a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d
              name:
                type: string
                nullable: true
                description: Resource name.
                example: "Double kayak #3"
              capacity:
                type: integer
                nullable: true
                description: >
                  Maximum participants the resource can carry (the resource's
                  `maxParticipants`). Null means uncapped.
                example: 2
    optionDetail:
      type: object
      description: >
        Full read shape of an option — the bookable product of an experience,
        with its schedule, pricing configuration and nested variants, add-ons,
        extra fields, discounts and resource groups. Only active (non-deleted)
        nested children are included.
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the option.
          example: 0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
        experienceId:
          type: string
          format: uuid
          description: UUID of the experience this option belongs to. Read-only.
          example: 8f14e45f-ceea-467f-a34e-4a3d1a3f5b6a
        status:
          type: string
          enum:
            - DRAFT
            - ACTIVE
            - INACTIVE
          description: >
            Lifecycle status. Only `ACTIVE` options are sellable; the list
            endpoint defaults to `ACTIVE`. Once an option leaves `DRAFT` it can
            never return to it.
          example: ACTIVE
        name:
          $ref: "#/components/schemas/optionMultilangText"
        code:
          type: string
          nullable: true
          description: Optional organizer-facing short code for the option. Null when not
            set.
          example: SHARED-AM
        score:
          type: integer
          description: >
            Sort weight — options are ordered ascending by score. Deactivated
            options are automatically pushed to the bottom.
          example: 100
        externalId:
          type: string
          nullable: true
          description: >
            Identifier of the option in an external availability provider
            (Bokun/Regiondo/Kompas). Read-only; null for native Turneo options.
          example: null
        note:
          $ref: "#/components/schemas/optionMultilangText"
        instantUntilDuration:
          allOf:
            - $ref: "#/components/schemas/optionDuration"
          description: >
            Booking confirmation threshold. Null means bookings always require
            manual organizer confirmation; a zero duration means bookings are
            always confirmed instantly; a positive duration means bookings are
            instant only when made farther in advance than this threshold.
        disabledParticipantTypes:
          type: array
          description: >
            UUIDs of the experience's participant types NOT offered on this
            option. An empty list means all of the experience's participant
            types are enabled.
          items:
            type: string
            format: uuid
          example: []
        startDate:
          type: string
          format: date
          nullable: true
          description: >
            First date of the option's availability period. Required for active
            options; may be null on drafts.
          example: 2026-07-01
        endDate:
          type: string
          format: date
          nullable: true
          description: >
            Last date of the option's availability period. Null means
            open-ended; cannot be before `startDate`.
          example: 2026-09-30
        slotType:
          type: string
          nullable: true
          enum:
            - FLEXIBLE
            - FIXED
            - DATE_ONLY
            - null
          description: >
            How availability slots are scheduled — `FLEXIBLE` generates slots on
            an interval within a daily time window, `FIXED` uses explicit start
            times per weekday, `DATE_ONLY` has one dateless slot per day.
            Required for active options.
          example: FLEXIBLE
        flexibleSlotConfig:
          $ref: "#/components/schemas/optionFlexibleSlotConfig"
        fixedSlotConfig:
          type: array
          nullable: true
          description: >
            Slot schedule for `FIXED` options — a list of fixed start times per
            weekday set. Null unless `slotType` is `FIXED`.
          items:
            $ref: "#/components/schemas/optionFixedSlotEntry"
        groupType:
          type: string
          nullable: true
          enum:
            - PRIVATE
            - PUBLIC
            - null
          description: >
            Whether a slot is sold to a single party (`PRIVATE`) or shared
            across bookings (`PUBLIC`). Required when resource groups are
            configured; must be null when they are not.
          example: PRIVATE
        slotCapacity:
          type: integer
          nullable: true
          description: >
            Maximum participants per slot. Null when capacity is driven by
            resource groups instead (the two are mutually exclusive).
          example: 10
        pricingModel:
          type: string
          nullable: true
          enum:
            - FLAT_RATE
            - PER_PERSON
            - PER_GROUP_SIZE
            - DURATION_BASED
            - null
          description: >
            How the option is priced. Determines which pricing fields are
            populated on each variant. Required for active options. Existing
            non-draft options can never switch to or from `DURATION_BASED`.
          example: PER_PERSON
        duration:
          allOf:
            - $ref: "#/components/schemas/optionDuration"
          description: >
            Fixed duration of the experience for FLAT_RATE / PER_PERSON /
            PER_GROUP_SIZE options. Must be empty for DURATION_BASED options
            (use `durationIncrement`). Required to be non-zero when the option
            has resource groups and is not DATE_ONLY.
        durationIncrement:
          allOf:
            - $ref: "#/components/schemas/optionDuration"
          description: >
            Bookable duration unit for DURATION_BASED options — guests book N
            multiples of this increment (e.g. increment of 30 minutes, 3 units =
            90 minutes). Null for other pricing models.
        durationPricingUnit:
          type: string
          nullable: true
          enum:
            - PER_PERSON
            - PER_RESOURCE
            - null
          description: >
            UI-only hint for DURATION_BASED options: whether the per-increment
            price scales by headcount (`PER_PERSON`) or is flat per resource
            (`PER_RESOURCE`). Not consulted by backend pricing.
          example: null
        multiDayMode:
          type: string
          nullable: true
          enum:
            - ROLLING_24H
            - CALENDAR_DAY
            - null
          description: >
            For rentals of one day or more, how the duration maps to the
            resource occupancy window's end — `CALENDAR_DAY` (default) runs
            until the Nth rental day's working-hours close, `ROLLING_24H` runs N
            x 24 hours from the start instant. Ignored for sub-day options.
          example: CALENDAR_DAY
        allowPartialDay:
          type: boolean
          description: >
            For sub-day fixed-duration options with resources: when true, a
            booking whose full duration does not fit the day's remaining working
            hours is accepted clamped to those hours at the unchanged fixed
            price ("up to N hours" day passes). When false such bookings are
            rejected. Not applicable to DURATION_BASED options or multi-day
            rentals.
          example: false
        custom:
          type: boolean
          description: >
            True for one-off options created for a specific custom booking.
            Custom options are excluded from all public catalog queries.
          example: false
        earlyBirdAdvanceDays:
          type: integer
          nullable: true
          description: >
            Minimum days in advance a booking must be made to earn the early
            bird discount. Set together with `earlyBirdDiscount` or not at all.
          example: 30
        earlyBirdDiscount:
          type: string
          nullable: true
          description: >
            Early bird discount percentage as a decimal string. Set together
            with `earlyBirdAdvanceDays` or not at all.
          example: "10.00"
        variants:
          type: array
          description: >
            Active variants of the option, subject to the `restricted` query
            parameter filter. Every option has at least one variant (a default
            one is created automatically when none is supplied).
          items:
            $ref: "#/components/schemas/optionVariant"
        addons:
          type: array
          description: Active add-ons purchasable with the option.
          items:
            $ref: "#/components/schemas/optionAddOn"
        extraFields:
          type: array
          description: Active custom booking questions for the option.
          items:
            $ref: "#/components/schemas/optionExtraField"
        discounts:
          type: array
          description: Active discounts configured on the option.
          items:
            $ref: "#/components/schemas/optionDiscount"
        resourceGroups:
          type: array
          description: >
            Active resource groups backing the option's capacity. Empty when
            capacity is driven by `slotCapacity`.
          items:
            $ref: "#/components/schemas/optionResourceGroup"
    paginatedOptions:
      type: object
      description: Standard pagination envelope around a page of options.
      properties:
        count:
          type: integer
          description: Total number of options matching the query across all pages.
          example: 42
        next:
          type: string
          nullable: true
          description: Absolute URL of the next page, or null on the last page.
          example: https://api.turneo.co/v2/options?page=2
        previous:
          type: string
          nullable: true
          description: Absolute URL of the previous page, or null on the first page.
          example: null
        results:
          type: array
          description: The options on this page.
          items:
            $ref: "#/components/schemas/optionDetail"
    bookingMoney:
      type: object
      description: A monetary amount with its currency.
      properties:
        amount:
          type: number
          description: Amount in major currency units.
          example: 100
        currency:
          type: string
          description: ISO 4217 currency code.
          example: EUR
    bookingDuration:
      type: object
      description: A duration split into days / hours / minutes components.
      properties:
        days:
          type: integer
          description: Whole days component.
          example: 0
        hours:
          type: integer
          description: Hours component.
          example: 1
        minutes:
          type: integer
          description: Minutes component.
          example: 30
    bookingSlotTime:
      type: object
      description: A local date + time pair in the experience's timezone.
      properties:
        date:
          type: string
          format: date
          description: Local calendar date (`YYYY-MM-DD`).
          example: 2026-07-14
        time:
          type: string
          nullable: true
          description: Local wall-clock time (`HH:MM:SS`). Null for date-only (all-day)
            slots.
          example: 10:00:00
    bookingTravelerInformation:
      type: object
      description: The main traveler's contact details. Free-form — only supplied keys
        are stored.
      properties:
        firstName:
          type: string
          description: Traveler's first name.
          example: Ada
        lastName:
          type: string
          description: Traveler's last name.
          example: Lovelace
        email:
          type: string
          format: email
          description: Traveler's email address — used for all guest-facing emails
            (confirmations, tickets, review requests).
          example: ada.lovelace@example.com
        phone:
          type: string
          description: Traveler's phone number, international format recommended.
          example: "+385911234567"
    bookingPayment:
      type: object
      nullable: true
      description: How and whether the booking was paid.
      properties:
        processedBy:
          type: string
          nullable: true
          description: >
            Who collects the payment. `TURNEO` (Stripe via Turneo — the only
            kind eligible for automatic capture/refund), `TURNEO_LINK` (payment
            link), `RESELLER_CONCIERGE`, `RESELLER_ROOM` (charged to the hotel
            room), `RESELLER_CARD`, `RESELLER_DEFERRED` (pay on site, settled
            via invoicing), `ORGANIZER`, `PMS_ROOM_CHARGE`, `RETAIL_VOUCHER`
            (paid with a gift voucher; the booking is priced at 0 and `status`
            is `FREE`), or the deprecated `RESELLER`. Null when not yet
            determined.
          enum:
            - TURNEO
            - TURNEO_LINK
            - RESELLER_CONCIERGE
            - RESELLER_ROOM
            - RESELLER_CARD
            - RESELLER_DEFERRED
            - ORGANIZER
            - PMS_ROOM_CHARGE
            - RETAIL_VOUCHER
            - RESELLER
          example: TURNEO
        status:
          type: string
          description: "`PAYMENT_PENDING`, `PAYMENT_COLLECTED`, `REFUNDED` or `FREE`."
          enum:
            - PAYMENT_PENDING
            - PAYMENT_COLLECTED
            - REFUNDED
            - FREE
          example: PAYMENT_COLLECTED
        code:
          type: string
          nullable: true
          description: Payment reference code (e.g. gateway transaction reference). Often
            null.
          example: ch_3PqX1...
    bookingCancellation:
      type: object
      nullable: true
      description: Cancellation details. Null unless the booking is `CANCELLED`.
      properties:
        cancelledBy:
          type: string
          description: Who cancelled the booking.
          enum:
            - Traveler
            - Organizer
            - Reseller
            - Admin
          example: Traveler
        cancelledAt:
          type: string
          description: When the cancellation happened, as a naive local timestamp in the
            experience's timezone.
          example: 2026-07-10T14:30:00
        cancelledReason:
          type: string
          nullable: true
          description: Free-text reason supplied by the canceller.
          example: Change of plans
        cancellationFeeAmount:
          type: number
          description: Fee retained from the traveler. 0 means a full refund; the full
            price means non-refundable.
          example: 25
        cancellationFeeCurrency:
          type: string
          description: Currency of the cancellation fee (the booking's currency).
          example: EUR
        refundPercentage:
          type: number
          description: The refund-policy tier percentage that was applied. Absent when the
            fee was forced to 0 (organizer cancel, or traveler cancel after
            alternatives were offered).
          example: 75
    bookingNotes:
      type: object
      nullable: true
      description: One note per author role. Null when the booking has no notes.
      properties:
        fromSeller:
          type: string
          description: Note written by the reseller (concierge).
          example: Guest asked for a vegetarian lunch
        fromOrganizer:
          type: string
          description: Note written by the organizer (e.g. a rejection reason).
          example: Meet at the side entrance
        fromTraveler:
          type: string
          description: Note left by the traveler.
          example: We'll be 5 minutes late
    bookingMeetingPoint:
      type: object
      nullable: true
      description: The pickup/meeting arrangement selected for this booking.
      properties:
        type:
          type: string
          description: "`CENTRAL_MEETING_POINT` or `HOTEL_PICKUP`."
          enum:
            - CENTRAL_MEETING_POINT
            - HOTEL_PICKUP
          example: CENTRAL_MEETING_POINT
        title:
          type: string
          description: Display name of the meeting point.
          example: Main square fountain
        address:
          type: string
          description: Street address of the meeting point.
          example: 1 Main Street, Split
        description:
          type: string
          description: Extra instructions for finding the meeting point.
          example: Look for the red umbrella
        timeBeforeStart:
          type: integer
          description: How many minutes before the experience start the traveler should
            arrive.
          example: 15
    bookingPriceBreakdownLine:
      type: object
      description: >
        One line of the booking's retail price breakdown. `retailPrice.amount`
        is the LINE TOTAL (`unitPrice` × `quantity`), not the per-unit price.
      properties:
        label:
          type: string
          description: Human-readable line label, in the booking's language (e.g. a
            participant type or add-on name).
          example: Adult
        quantity:
          type: integer
          description: Number of units on this line.
          example: 2
        unitPrice:
          type: number
          description: Per-unit price.
          example: 50
        retailPrice:
          allOf:
            - $ref: "#/components/schemas/bookingMoney"
          description: Line total (`unitPrice` × `quantity`).
        type:
          type: string
          description: "Line kind: `BASE` (participant/tier pricing), `ADDON` or
            `DISCOUNT` (negative)."
          enum:
            - BASE
            - ADDON
            - DISCOUNT
          example: BASE
    bookingAddOnLine:
      type: object
      description: An add-on purchased with the booking.
      properties:
        addonId:
          type: string
          format: uuid
          description: UUID of the option add-on.
          example: 7a8b9c0d-1e2f-4a3b-8c9d-0e1f2a3b4c5d
        addonName:
          type: string
          description: Add-on name, localized to the request language (falling back to the
            booking language).
          example: Hotel transfer
        quantity:
          type: integer
          description: Effective quantity booked. For per-person checkbox add-ons this is
            derived from the participant count.
          example: 2
        price:
          type: string
          nullable: true
          description: Per-unit add-on price as a decimal string. Null for free add-ons.
          example: "15.00"
        perPerson:
          type: boolean
          description: Whether the add-on is priced per participant.
          example: true
    bookingAlternativeSlot:
      type: object
      description: An alternative slot offered by the organizer on rejection.
      properties:
        id:
          type: string
          format: uuid
          description: Availability-slot UUID — pass this to `POST
            /v2/bookings/{id}/accept-alternative`.
          example: 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
        startDate:
          type: string
          format: date
          description: Local start date of the offered slot.
          example: 2026-07-15
        startTime:
          type: string
          nullable: true
          description: Local start time of the offered slot. Null for date-only slots.
          example: 14:00:00
    bookingEmbeddedReseller:
      type: object
      description: >
        The selling partner, enriched with point-of-sale metadata captured at
        booking time (store, agent, hotel/room) when present.
      properties:
        name:
          type: string
          description: Reseller partner display name.
          example: Hotel Adriatic
        partnerId:
          type: string
          description: Reseller's public partner ID.
          example: hotel-adriatic
        logo:
          type: string
          nullable: true
          description: URL of the reseller's logo.
          example: https://cdn.turneo.com/logos/hotel-adriatic.png
        featureFlags:
          type: object
          description: Feature flags enabled for this partner.
          example: {}
        storeId:
          type: string
          description: ID of the store (widget/website) the booking was made through. Only
            present when captured.
          example: store-123
        storeName:
          type: string
          description: Display name of the store. Only present when captured.
          example: Lobby Desk
        storeSubdomain:
          type: string
          description: Subdomain of the store. Only present when captured.
          example: lobby
        agentName:
          type: string
          description: Name of the concierge agent who made the booking. Only present when
            captured.
          example: Marta
        agentReference:
          type: string
          description: Agent's own reference for the booking. Only present when captured.
          example: AG-42
        hotelName:
          type: string
          description: Hotel name captured at booking time. Only present when captured.
          example: Turneo Hotel
        roomNumber:
          type: string
          description: Guest's room number captured at booking time. Only present when
            captured.
          example: "204"
    bookingEmbeddedResource:
      type: object
      description: A resource (guide, vehicle, court, ...) assigned to the booking.
        Listed once even if it holds multiple time blocks.
      properties:
        id:
          type: string
          format: uuid
          description: Resource UUID.
          example: 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
        name:
          type: string
          description: Resource display name.
          example: Padel court 1
        color:
          type: string
          nullable: true
          description: Display color used in calendar UIs.
          example: "#FF8800"
        type:
          type: string
          nullable: true
          description: Organizer-defined resource type.
          example: COURT
    bookingEmbeddedReview:
      type: object
      nullable: true
      description: >
        The booking's review (the accepted one if present, otherwise the first).
        Null when the booking has no reviews.
      properties:
        id:
          type: string
          format: uuid
          description: Review UUID.
          example: 8b9c0d1e-2f3a-4b4c-9d0e-1f2a3b4c5d6e
        rating:
          type: integer
          description: Star rating, 1–5.
          example: 5
        reviewText:
          type: string
          nullable: true
          description: Review text.
          example: Great tour, amazing guide!
        reviewTextOriginal:
          type: string
          nullable: true
          description: Original (untranslated) review text.
          example: Great tour, amazing guide!
        internalFeedback:
          type: string
          nullable: true
          description: Private feedback for the organizer — never shown publicly.
          example: Guide was excellent
        tags:
          type: array
          description: Names of tags attached to the review.
          items:
            type: string
          example:
            - guide
            - value
        reviewerName:
          type: string
          nullable: true
          description: Reviewer's display name; falls back to the traveler's first name.
          example: Ada Lovelace
        reviewDate:
          type: string
          description: Review date (`YYYY-MM-DD`, or the creation timestamp when no
            explicit date was given).
          example: 2026-07-01
        source:
          type: string
          description: "`reseller` when posted by the booking's reseller, otherwise
            `other`."
          enum:
            - reseller
            - other
          example: reseller
        storeId:
          type: string
          nullable: true
          description: Store the review was posted from (reseller-posted reviews only).
          example: store-123
        status:
          type: string
          description: "Moderation status: `PENDING`, `ACCEPTED` or `REJECTED`."
          enum:
            - PENDING
            - ACCEPTED
            - REJECTED
          example: ACCEPTED
        insightfulnessScore:
          type: number
          nullable: true
          description: AI-scored insightfulness of the review text.
          example: 0.82
    bookingResellerProperty:
      type: object
      nullable: true
      description: The reseller's property (hotel) the booking is associated with.
        Null when not linked.
      properties:
        id:
          type: string
          format: uuid
          description: Property UUID.
          example: 5f6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c
        name:
          type: string
          description: Property display name.
          example: Hotel Adriatic Split
        location:
          type: object
          nullable: true
          description: Property location (address, city, country, coordinates).
          example:
            city: Split
            country: Croatia
        partner:
          type: string
          nullable: true
          description: Owning partner reference.
          example: hotel-adriatic
        parentProperty:
          type: string
          format: uuid
          nullable: true
          description: Parent property UUID for property hierarchies.
          example: null
        roomCount:
          type: integer
          nullable: true
          description: Number of rooms at the property.
          example: 120
        pmsIntegration:
          type: object
          nullable: true
          description: PMS connection summary. Null when the property has no PMS
            integration.
          properties:
            enabled:
              type: boolean
              description: Whether the PMS integration is active.
              example: true
            provider:
              type: string
              description: PMS provider (e.g. `Mews`, `Apaleo`, `Oracle Opera`).
              example: Mews
    bookingEmbeddedExperience:
      type: object
      nullable: true
      description: >
        The booked experience, embedded in full (same shape as the v2 experience
        read serializer — see the Experiences group for the complete field
        reference). Key fields listed here.
      properties:
        id:
          type: string
          format: uuid
          description: Experience UUID.
          example: 9b2e6c7d-1f2a-4b3c-8d9e-0a1b2c3d4e5f
        name:
          type: object
          description: Multilingual experience name keyed by language code.
          example:
            en: Split Old Town Walking Tour
        location:
          type: object
          description: Experience location (city, country, coordinates).
          example:
            city: Split
            country: Croatia
        images:
          type: array
          description: Experience images.
          items:
            type: object
          example:
            - url: https://cdn.turneo.com/img/tour.jpg
              position: 0
        organizer:
          type: object
          description: Embedded organizer summary (name, partnerId, contact details,
            rating).
          example:
            name: Split Tours
            partnerId: split-tours
        refundPolicy:
          type: object
          nullable: true
          description: Tiered refund policy driving cancellation fees. Null means
            non-refundable.
          example:
            tiers:
              - hoursBeforeStart: 24
                refundPercentage: 100
              - hoursBeforeStart: 0
                refundPercentage: 0
        cutOffTime:
          type: integer
          description: Minimum notice (hours) required to book or reschedule.
          example: 2
      additionalProperties: true
    bookingEmbeddedOption:
      type: object
      nullable: true
      description: >
        The booked option, embedded in full (same shape as the v2 option read
        serializer — see the Options group for the complete field reference),
        including its variants, add-ons and extra fields. Key fields listed
        here.
      properties:
        id:
          type: string
          format: uuid
          description: Option UUID. `variantId` and `availabilitySlotId` on the booking
            reference into this option.
          example: 0d9f4c1a-2b3c-4d5e-8f9a-0b1c2d3e4f5a
        name:
          type: object
          description: Multilingual option name.
          example:
            en: Morning departure
        pricingModel:
          type: string
          description: Pricing model of the option (e.g. `PER_PARTICIPANT`, `FLAT_RATE`,
            `DURATION_BASED`).
          example: PER_PARTICIPANT
        duration:
          allOf:
            - $ref: "#/components/schemas/bookingDuration"
          description: Default duration of the option.
        variants:
          type: array
          description: The option's variants with their pricing tiers / participant prices.
          items:
            type: object
        addons:
          type: array
          description: Add-ons purchasable with this option.
          items:
            type: object
        extraFields:
          type: array
          description: Custom booking questions configured on the option
            (`extraFieldResponses` answers reference these by id).
          items:
            type: object
      additionalProperties: true
    bookingVoucher:
      type: object
      nullable: true
      description: Seller discount voucher applied to the booking (via the order
        voucher endpoints). Null when none was used.
      properties:
        code:
          type: string
          description: Voucher code.
          example: SUMMER20
        discountPercent:
          type: integer
          description: Percentage discount granted by the voucher.
          example: 20
    bookingDiscount:
      type: object
      nullable: true
      description: Automatic discount applied at booking time. Null when no discount
        applied.
      properties:
        percentageAmount:
          type: integer
          description: Percentage discount applied.
          example: 10
        type:
          type: string
          description: Discount kind, e.g. `EARLY_BIRD` or `AVAILABILITY`.
          example: EARLY_BIRD
    bookingDetail:
      type: object
      description: A v2 booking with its embedded experience/option and all commercial
        and operational detail.
      properties:
        id:
          type: string
          format: uuid
          description: Booking UUID.
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
        bookingCode:
          type: string
          description: Short human-friendly booking code, unique per booking. Usable in
            place of the UUID in every `/v2/bookings/{id}` URL.
          example: AC3F1TT2
        bookingStatus:
          type: string
          description: >
            Lifecycle status: `ON_HOLD` (in cart), `PENDING` (awaiting
            organizer), `ACCEPTED`, `COMPLETED`, `CANCELLED`, `EXPIRED`,
            `NO_SHOW`, `REJECTED`. (`REMOVED` exists internally but is never
            returned.)
          enum:
            - ON_HOLD
            - PENDING
            - ACCEPTED
            - COMPLETED
            - CANCELLED
            - EXPIRED
            - NO_SHOW
            - REJECTED
          example: ACCEPTED
        experience:
          $ref: "#/components/schemas/bookingEmbeddedExperience"
        option:
          $ref: "#/components/schemas/bookingEmbeddedOption"
        variantId:
          type: string
          format: uuid
          description: UUID of the booked variant — references into the embedded
            `option.variants`.
          example: 1e2f3a4b-5c6d-4e7f-8a9b-0c1d2e3f4a5b
        availabilitySlotId:
          type: string
          format: uuid
          description: UUID of the booked availability slot.
          example: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c
        orderId:
          type: string
          format: uuid
          description: UUID of the order (cart) the booking belongs to.
          example: 3a4b5c6d-7e8f-4a9b-0c1d-2e3f4a5b6c7d
        redeemedRetailItemId:
          type: string
          format: uuid
          nullable: true
          description: The gift voucher's retail item this booking is redeemed with, or
            null.
          example: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
        time:
          type: string
          format: date-time
          description: Booking start as an absolute UTC timestamp (computed from the local
            slot time and the experience timezone).
          example: 2026-07-14T08:00:00Z
        slotStartTime:
          allOf:
            - $ref: "#/components/schemas/bookingSlotTime"
          description: Booking start in the experience's local timezone.
        slotEndTime:
          allOf:
            - $ref: "#/components/schemas/bookingSlotTime"
          type: object
          nullable: true
          description: >
            Booking occupancy end (local). Derived from the resolved resource
            window when resources are assigned (cleanup buffers excluded),
            otherwise start + `bookedDuration`. Null when neither is known (e.g.
            an all-day date-only slot).
        participantCounts:
          type: object
          description: Map of participant-type UUID → booked count.
          additionalProperties:
            type: integer
          example:
            6f7a8b9c-0d1e-4f2a-3b4c-5d6e7f8a9b0c: 2
        totalParticipants:
          type: integer
          description: Sum of participant counts, excluding capacity-exempt types (e.g.
            infants).
          example: 2
        bookedDuration:
          allOf:
            - $ref: "#/components/schemas/bookingDuration"
          type: object
          nullable: true
          description: Total booked duration. For duration-based options this is
            `durationIncrement × durationUnits`; otherwise a snapshot of the
            option duration at booking time.
        durationUnits:
          type: integer
          nullable: true
          description: Number of duration-increment blocks booked. Null for
            non-DURATION_BASED options.
          example: null
        finalPrice:
          allOf:
            - $ref: "#/components/schemas/bookingMoney"
          description: Total retail price charged to the traveler (after discounts).
        basePrice:
          allOf:
            - $ref: "#/components/schemas/bookingMoney"
          description: Sum of the BASE lines of the price breakdown (before add-ons and
            discounts).
        netRate:
          allOf:
            - $ref: "#/components/schemas/bookingMoney"
          description: Organizer's payout amount (retail minus commission).
        retailPriceBreakdown:
          type: array
          nullable: true
          description: Line-by-line retail price breakdown (base lines, add-ons, discounts).
          items:
            $ref: "#/components/schemas/bookingPriceBreakdownLine"
        bookingAddons:
          type: array
          description: Add-ons purchased with the booking.
          items:
            $ref: "#/components/schemas/bookingAddOnLine"
        extraFieldResponses:
          type: object
          nullable: true
          description: Answers to the option's custom booking questions, keyed by
            extra-field UUID.
          additionalProperties:
            type: string
          example:
            5d6e7f8a-9b0c-4d1e-2f3a-4b5c6d7e8f9a: No allergies
        storeExtraFieldResponses:
          type: object
          nullable: true
          description: Answers to the store's checkout questions, keyed by question id;
            each value is a string, a boolean (checkbox) or null. The questions
            themselves are defined on the store config (`checkout.questions`),
            not on the option, and are answered once per order — every booking
            of an order carries the same map. Returned only to the booking's
            reseller; null for everyone else, organizer-side callers included.
          additionalProperties: true
          example:
            0d2e4f6a-8b0c-4d2e-9f1a-3b5c7d9e1f2a: Room 204
            7c8d9e0f-1a2b-4c3d-8e9f-0a1b2c3d4e5f: true
        alternativeSlots:
          type: array
          nullable: true
          description: Alternative slots currently offered by the organizer (see the
            reject endpoint). Null when none are pending.
          items:
            $ref: "#/components/schemas/bookingAlternativeSlot"
        reseller:
          $ref: "#/components/schemas/bookingEmbeddedReseller"
        resellerReference:
          type: string
          nullable: true
          description: Reseller's internal reference for the booking.
          example: PMS-42
        resellerProperty:
          $ref: "#/components/schemas/bookingResellerProperty"
        pmsBookingId:
          type: string
          nullable: true
          description: Identifier of the booking in the hotel's PMS, when synced.
          example: MEWS-778812
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/bookingTravelerInformation"
          type: object
          nullable: true
          description: Main traveler contact details.
        payment:
          $ref: "#/components/schemas/bookingPayment"
        meetingPoint:
          $ref: "#/components/schemas/bookingMeetingPoint"
        voucher:
          $ref: "#/components/schemas/bookingVoucher"
        discount:
          $ref: "#/components/schemas/bookingDiscount"
        conciergeDiscount:
          type: object
          nullable: true
          description: Ad-hoc discount applied by a concierge at checkout. Null when none
            applied.
          example: null
        review:
          $ref: "#/components/schemas/bookingEmbeddedReview"
        resources:
          type: array
          description: Resources assigned to the booking (deduplicated — one entry per
            resource even across multiple time blocks).
          items:
            $ref: "#/components/schemas/bookingEmbeddedResource"
        bookingSource:
          type: string
          nullable: true
          description: Identifier of the channel that created the booking (e.g. store
            widget, concierge hub).
          example: experience-store
        emailNotification:
          type: array
          nullable: true
          description: Extra email addresses notified about this booking.
          items:
            type: string
            format: email
          example:
            - concierge@hotel.example
        metadata:
          type: object
          nullable: true
          description: Arbitrary JSON metadata attached at creation (store/agent context,
            external provider IDs, ...).
          example:
            store_id: store-123
            store_name: Lobby Desk
        language:
          type: string
          description: Language code of the booking — used for guest-facing emails and
            localized names.
          example: en
        cancellation:
          $ref: "#/components/schemas/bookingCancellation"
        notes:
          $ref: "#/components/schemas/bookingNotes"
        createdAt:
          type: string
          format: date-time
          description: When the booking was created (UTC).
          example: 2026-06-30T09:12:00Z
        updatedAt:
          type: string
          format: date-time
          description: When the booking was last modified (UTC).
          example: 2026-07-01T10:00:00Z
    paginatedBookings:
      type: object
      description: Standard pagination envelope around booking results.
      properties:
        count:
          type: integer
          description: Total number of bookings matching the filters, across all pages.
          example: 137
        next:
          type: string
          nullable: true
          description: Absolute URL of the next page, or null on the last page.
          example: https://api.turneo.co/v2/bookings?page=2&page_size=50
        previous:
          type: string
          nullable: true
          description: Absolute URL of the previous page, or null on the first page.
          example: null
        results:
          type: array
          description: The bookings on this page.
          items:
            $ref: "#/components/schemas/bookingDetail"
    bookingUpdateRequest:
      type: object
      description: >
        Partial update payload. Only the listed fields are supported;
        `bookingStatus`, structural fields and `resources` are rejected with a
        400 (use the dedicated endpoints).
      properties:
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/bookingTravelerInformation"
          description: Keys to merge onto the stored traveler information.
        extraFieldResponses:
          type: array
          description: Full replacement list of answers; every `fieldId` must belong to
            the booking's option.
          items:
            type: object
            properties:
              fieldId:
                type: string
                format: uuid
                description: UUID of the option's extra field being answered.
                example: 5d6e7f8a-9b0c-4d1e-2f3a-4b5c6d7e8f9a
              response:
                type: string
                description: The answer. May be blank.
                example: No allergies
        payment:
          allOf:
            - $ref: "#/components/schemas/bookingPayment"
          description: Payment keys to merge (e.g. just `status`). Reverting a
            Turneo-processed REFUNDED payment is rejected.
        meetingPointId:
          type: string
          format: uuid
          description: UUID of one of the experience's predefined meeting points.
          example: 4b5c6d7e-8f9a-4b0c-1d2e-3f4a5b6c7d8e
        meetingPoint:
          allOf:
            - $ref: "#/components/schemas/bookingMeetingPoint"
          description: Custom pickup details (used when `meetingPointId` is not supplied).
        notes:
          allOf:
            - $ref: "#/components/schemas/bookingNotes"
          description: Notes to set per source; a new note for an existing source is
            appended on a new line.
        resellerProperty:
          type: string
          format: uuid
          nullable: true
          description: Property UUID to link, or null to unlink.
          example: 5f6a7b8c-9d0e-4f1a-2b3c-4d5e6f7a8b9c
        reseller:
          type: object
          description: Point-of-sale metadata to merge (storeId, storeName,
            storeSubdomain, agentName, agentReference, hotelName, roomNumber).
          example:
            agentName: Marta
            roomNumber: "204"
    bookingCancelRequest:
      type: object
      required:
        - cancelledBy
      description: Cancellation payload. Ignored entirely for `ON_HOLD` bookings
        (fast-path expiry).
      properties:
        cancelledBy:
          type: string
          description: Who is cancelling — drives the fee (Organizer → always 0) and which
            email templates are sent.
          enum:
            - Traveler
            - Organizer
            - Reseller
            - Admin
          example: Traveler
        cancelledReason:
          type: string
          nullable: true
          description: Optional free-text reason, stored on the cancellation record.
          example: Change of plans
        cancellationFeeAmount:
          type: number
          nullable: true
          minimum: 0
          description: >
            Optional fee override (the Hub's full/partial refund choice at
            cancel time). Applies only where the tiered policy would:
            `cancelledBy: Organizer` and traveler-after-alternatives keep their
            forced full refund (fee 0). Cannot exceed the booking price.
          example: 30
    bookingAdjustPricingRequest:
      type: object
      description: Pricing adjustment. At least one of `finalPriceAmount` /
        `commission` is required.
      properties:
        finalPriceAmount:
          type: number
          nullable: true
          exclusiveMinimum: true
          minimum: 0
          description: New total price. Only for payments collected by the property (not
            gateway-charged).
          example: 150
        commission:
          type: number
          nullable: true
          minimum: 0
          maximum: 100
          description: New commission percent. Custom bookings only.
          example: 25
        note:
          type: string
          nullable: true
          description: Why the pricing changed (stored on the activity record).
          example: Guest upgraded on site
    bookingRefundRequest:
      type: object
      description: Optional refund override.
      properties:
        cancellationFeeAmount:
          type: number
          nullable: true
          minimum: 0
          description: >
            Override for the cancellation fee: the refunded amount becomes final
            price minus this fee. Omit (or null) to use the fee already stored
            on the booking's cancellation record.
          example: 10
    bookingRefundResponse:
      type: object
      description: Refund confirmation.
      properties:
        message:
          type: string
          description: Human-readable confirmation.
          example: Booking has been refunded
    bookingRescheduleRequest:
      type: object
      description: Reschedule target — exactly one of `availabilitySlotId` or
        `localTime` must be provided.
      properties:
        availabilitySlotId:
          type: string
          format: uuid
          description: UUID of the new availability slot. Must belong to the same option,
            be bookable and differ from the current slot.
          example: 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
        resources:
          type: array
          description: Resource UUIDs the moved booking should hold, one per resource
            group of the option. Omitted, the best-fit resources are resolved
            again and the booking may change resource; given, exactly the listed
            resources are held and the move is refused when one of them is busy
            or when the booking would not need all of them. Every id must belong
            to the option's resource groups. Custom bookings keep their
            resources, so the list must match the current ones.
          items:
            type: string
            format: uuid
        localTime:
          type: string
          description: Custom bookings only — the new start as naive wall-clock time in
            the experience's timezone (same format as add-custom-booking's
            localTime). Moves the custom option's single slot in place. Refused
            on non-custom bookings, when equal to the current start, or more
            than 24 hours in the past.
          example: 2026-08-12T06:00:00
    bookingRejectRequest:
      type: object
      description: Rejection payload — both fields optional.
      properties:
        alternativeSlots:
          type: array
          description: >
            Availability-slot UUIDs to offer as alternatives. When non-empty the
            booking stays PENDING with these stored; when omitted/empty the
            booking is REJECTED.
          items:
            type: string
            format: uuid
          example:
            - 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
        notes:
          allOf:
            - $ref: "#/components/schemas/bookingNotes"
          description: Rejection note(s); `fromOrganizer` is included in the traveler's
            rejection email.
    bookingAcceptAlternativeRequest:
      type: object
      required:
        - availabilitySlotId
      description: The alternative slot the traveler chose.
      properties:
        availabilitySlotId:
          type: string
          format: uuid
          description: One of the booking's pending `alternativeSlots` ids.
          example: 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
    bookingReassignResourcesRequest:
      type: object
      required:
        - resources
      description: The complete desired resource assignment (not a diff).
      properties:
        resources:
          type: array
          minItems: 1
          description: Full list of resource UUIDs the booking should hold after the call.
          items:
            type: string
            format: uuid
          example:
            - 3c4d5e6f-7a8b-4c9d-0e1f-2a3b4c5d6e7f
    bookingResendEmailRequest:
      type: object
      required:
        - bookingId
        - emailType
      description: Which booking email to resend.
      properties:
        bookingId:
          type: string
          format: uuid
          description: UUID of the booking (must be within the caller's scope).
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
        emailType:
          type: string
          description: The email to send; must currently be available for the booking's
            state.
          enum:
            - guest_confirmation
            - guest_review
            - guest_alternatives
            - organizer_confirmation
            - organizer_accepted
          example: guest_confirmation
        additionalEmails:
          type: array
          description: Extra recipient addresses to include. Defaults to none.
          items:
            type: string
            format: email
          example:
            - copy@example.com
    bookingAvailableEmail:
      type: object
      description: A resendable email type and whether it can currently be sent for
        the booking.
      properties:
        id:
          type: string
          description: Email type identifier — pass as `emailType` to the resend endpoint.
          enum:
            - guest_confirmation
            - guest_review
            - guest_alternatives
            - organizer_confirmation
            - organizer_accepted
          example: guest_confirmation
        name:
          type: string
          description: Human-readable email name.
          example: Guest Confirmation
        description:
          type: string
          description: Short description of what the email is.
          example: Send guest confirmation email
        available:
          type: boolean
          description: Whether this email can currently be sent for the booking.
          example: true
        reason:
          type: string
          nullable: true
          description: Why the email is unavailable. Null when `available` is true.
          example: null
    bookingReviewRequest:
      type: object
      required:
        - rating
      description: Review payload. The booking id is taken from the URL;
        `experienceId` is derived from the booking.
      properties:
        rating:
          type: integer
          minimum: 1
          maximum: 5
          description: Star rating, 1–5.
          example: 5
        reviewText:
          type: string
          description: Public review text. May be blank.
          example: Great tour, amazing guide!
        reviewerName:
          type: string
          description: Display name of the reviewer.
          example: Ada Lovelace
        reviewDate:
          type: string
          description: Review date (`YYYY-MM-DD`). Defaults to the creation time.
          example: 2026-07-01
        internalFeedback:
          type: string
          nullable: true
          description: Private feedback for the organizer — never displayed publicly.
          example: Guide was excellent
    bookingReview:
      type: object
      description: A review as returned by the booking review endpoints.
      properties:
        id:
          type: string
          format: uuid
          description: Review UUID.
          example: 8b9c0d1e-2f3a-4b4c-9d0e-1f2a3b4c5d6e
        rating:
          type: integer
          description: Star rating, 1–5.
          example: 5
        reviewText:
          type: string
          nullable: true
          description: Public review text.
          example: Great tour, amazing guide!
        reviewerName:
          type: string
          nullable: true
          description: Display name of the reviewer.
          example: Ada Lovelace
        reviewDate:
          type: string
          nullable: true
          description: Review date (`YYYY-MM-DD`).
          example: 2026-07-01
        internalFeedback:
          type: string
          nullable: true
          description: Private feedback for the organizer.
          example: Guide was excellent
        status:
          type: string
          description: "Moderation status: `PENDING`, `ACCEPTED` or `REJECTED`. New
            reviews start PENDING."
          enum:
            - PENDING
            - ACCEPTED
            - REJECTED
          example: PENDING
    bookingDigestRow:
      type: object
      description: One flat export row per booking, retail sale or voucher sale (see
        `columns` to subset). Retail and voucher rows use the same field names
        with the sold item's own values.
      properties:
        type:
          type: string
          enum:
            - BOOKING
            - RETAIL
            - VOUCHER
          description: What the row is. `BOOKING` for a booking, `RETAIL` for a retail
            sale, `VOUCHER` for a gift voucher sale.
          example: BOOKING
        bookingId:
          type: string
          format: uuid
          description: Booking UUID, or the sold item's UUID on a retail or voucher row.
          example: 0b7f5f7e-1234-4c56-89ab-4d5e6f7a8b9c
        bookingCode:
          type: string
          description: Short booking code, or the sold item's code on a retail or voucher
            row.
          example: AC3F1TT2
        startTime:
          type: string
          description: Booking start as a naive local wall-clock string in the
            experience's timezone. On a retail or voucher row, the moment of
            sale.
          example: 2026-07-14 10:00:00
        bookingCreated:
          type: string
          description: Creation time as a naive local wall-clock string in the
            experience's timezone.
          example: 2026-06-30 11:12:00
        bookingStatus:
          type: string
          description: Booking status on a booking row (`ACCEPTED`, `PENDING`,
            `COMPLETED`, `CANCELLED`...); the sold item's status on a retail or
            voucher row (`PAID`, `DELIVERED`, `CANCELLED`...).
          example: ACCEPTED
        retailPrice:
          type: number
          description: Final retail price amount.
          example: 100
        currency:
          type: string
          description: Currency of the retail price.
          example: EUR
        units:
          type: string
          description: Human-readable purchased units, `"{quantity}x{name}"` joined by
            commas (discount lines excluded).
          example: 2xAdult, 1xTransfer
        retailPriceBreakdown:
          type: array
          nullable: true
          description: Raw price breakdown lines.
          items:
            $ref: "#/components/schemas/bookingPriceBreakdownLine"
        travelerName:
          type: string
          description: Traveler full name (falls back to the order's traveler when the
            booking has none).
          example: Ada Lovelace
        additionalInformation:
          type: string
          description: 'Answered custom booking questions, one "Question: answer" line per
            field.'
          example: "Dietary requirements: vegetarian"
        storeAdditionalInformation:
          type: string
          description: "Answered store-level checkout questions, one \"Question: answer\"
            line per question; checkbox answers render as `Yes`/`No`. Question
            labels come from the store's current config, so an answer whose
            question was deleted falls back to the raw question id. Populated
            only when `role=reseller`; \"\" otherwise."
          example: "Room number: 204"
        organizer:
          type: string
          description: Organizer partner name.
          example: Split Tours
        experienceName:
          type: string
          description: Experience name in the booking's language.
          example: Split Old Town Walking Tour
        experienceId:
          type: string
          format: uuid
          description: Experience UUID.
          example: 9b2e6c7d-1f2a-4b3c-8d9e-0a1b2c3d4e5f
        reseller:
          type: string
          description: Reseller partner name.
          example: Hotel Adriatic
        storeName:
          type: string
          description: Store the booking was made through ("" when unknown).
          example: Lobby Desk
        storeId:
          type: string
          description: Store ID ("" when unknown).
          example: store-123
        resellerReference:
          type: string
          description: Reseller reference, falling back to the agent reference.
          example: PMS-42
        rating:
          description: Review rating, or "" when the booking has no review.
          example: 5
        review:
          description: Review text, or "" when the booking has no review.
          example: Great tour!
        commission:
          type: number
          description: Reseller earnings on the booking (commission + reseller fee);
            derived from the cancellation fee for cancelled bookings; 0 for
            in-house bookings when `role=reseller`.
          example: 20
        paidTo:
          type: string
          description: Who collected the money, bucketed from `payment.processedBy`.
            `Voucher` means the line was paid with a gift voucher.
          enum:
            - Turneo
            - Reseller
            - Organizer
            - Voucher
          example: Turneo
        paymentCode:
          type: string
          nullable: true
          description: Payment reference code for `role=reseller`; null for the organizing
            view.
          example: ""
        agent:
          type: string
          description: Concierge agent name ("" when none).
          example: Marta
        refundAmount:
          type: number
          description: Amount refunded to the traveler — non-zero only for CANCELLED
            bookings (final price minus cancellation fee).
          example: 0
        turneoFee:
          type: number
          nullable: true
          description: Turneo platform fee for the caller's side of the deal. Null for
            regular API callers.
          example: null
        organizerPayout:
          type: number
          nullable: true
          description: Canonical organizer earnings computed by backend financial logic.
            Present only in the organizer view; null when financial amounts do
            not apply to the row's status.
          example: 80
        experiencePropertyName:
          type: string
          description: Name of the property linked to the experience ("" when none).
          example: Hotel Adriatic Split
        bookingPropertyName:
          type: string
          description: Name of the reseller property on the booking ("" when none).
          example: Hotel Adriatic Split
        optionName:
          type: string
          nullable: true
          description: Booking option name. Null for retail and voucher rows.
        duration:
          type: string
          nullable: true
          description: Stable English booking duration, for example `1 day 2 hours`.
        noScheduledDate:
          type: boolean
          nullable: true
          description: Whether the booking uses a provider's no-date mode.
        cancelledBy:
          type: string
          nullable: true
        cancellationReason:
          type: string
          nullable: true
        cancellationPolicy:
          type: string
          nullable: true
          description: Human-readable English refund policy shown in the Booking Drawer.
        paymentStatus:
          type: string
          nullable: true
        discount:
          type: string
          nullable: true
          description: Concierge discount percentage formatted as displayed in the Booking
            Drawer.
          example: 10%
        discountNote:
          type: string
          nullable: true
        travelerEmail:
          type: string
          nullable: true
        travelerPhone:
          type: string
          nullable: true
        hotelName:
          type: string
          nullable: true
          description: Traveler hotel for `role=reseller`; null for the organizing view.
        roomOrReservationNumber:
          type: string
          nullable: true
          description: Hotel reservation reference or room number for `role=reseller`.
        pmsBookingId:
          type: string
          nullable: true
        totalParticipants:
          type: integer
          nullable: true
        agentReference:
          type: string
          nullable: true
        utmSource:
          type: string
          nullable: true
        utmMedium:
          type: string
          nullable: true
        resources:
          type: string
          nullable: true
          description: LF-separated resource names for `role=organizer`; null for the
            selling view.
        participantAdditionalInformation:
          type: string
          nullable: true
          description: LF-separated participant question answers in deterministic
            participant order.
        travelerNotes:
          type: string
          nullable: true
        sellerNote:
          type: string
          nullable: true
        organizerNote:
          type: string
          nullable: true
        organizerContact:
          type: string
          nullable: true
          description: LF-separated organizer support contacts for `role=reseller`.
    paginatedBookingDigest:
      type: object
      description: Pagination envelope around digest rows.
      properties:
        count:
          type: integer
          description: Total number of rows matching the filters.
          example: 137
        next:
          type: string
          nullable: true
          description: Absolute URL of the next page, or null on the last page.
          example: https://api.turneo.co/v2/bookings/digest?page=2&page_size=50
        previous:
          type: string
          nullable: true
          description: Absolute URL of the previous page, or null on the first page.
          example: null
        results:
          type: array
          description: The digest rows on this page.
          items:
            $ref: "#/components/schemas/bookingDigestRow"
    bookingAvailableFilters:
      type: object
      description: De-duplicated filter options across the caller's visible bookings.
      properties:
        experience:
          type: array
          description: Experiences that appear in the caller's bookings.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: Experience UUID.
                example: 9b2e6c7d-1f2a-4b3c-8d9e-0a1b2c3d4e5f
              name:
                type: string
                description: Experience name in the booking's language.
                example: Split Old Town Walking Tour
        store:
          type: array
          description: Stores that appear in booking metadata.
          items:
            type: object
            properties:
              id:
                type: string
                description: Store ID.
                example: store-123
              name:
                type: string
                description: Store display name ("" when unknown).
                example: Lobby Desk
        agentName:
          type: array
          description: Sorted distinct concierge agent names.
          items:
            type: string
          example:
            - Marta
            - Niko
        reseller:
          type: array
          description: Resellers that appear in the caller's bookings.
          items:
            type: object
            properties:
              id:
                type: string
                description: Reseller partner ID.
                example: hotel-adriatic
              name:
                type: string
                description: Reseller name.
                example: Hotel Adriatic
        organizer:
          type: array
          description: Organizers that appear in the caller's bookings.
          items:
            type: object
            properties:
              id:
                type: string
                description: Organizer partner ID.
                example: split-tours
              name:
                type: string
                description: Organizer name.
                example: Split Tours
    bookingSummary:
      type: object
      description: Aggregated review statistics over the caller's (filtered) bookings.
      properties:
        avgReviewScore:
          type: number
          nullable: true
          description: Average review rating rounded to 2 decimals. Null when there are no
            matching reviews.
          example: 4.67
        reviewsCount:
          type: integer
          description: Number of reviews counted (ACCEPTED only, unless
            `unapprovedReviews` is passed).
          example: 12
    orderMoney:
      type: object
      description: Monetary amount with ISO 4217 currency code.
      properties:
        amount:
          type: number
          description: Amount in major currency units.
          example: 250
        currency:
          type: string
          description: ISO 4217 currency code.
          example: EUR
    orderTravelerInformation:
      type: object
      description: >
        Traveler contact information shared by the bookings in the order.
        Individual bookings may carry their own traveler information which takes
        precedence.
      properties:
        email:
          type: string
          format: email
          description: Traveler's email address — used for confirmation, ticket and
            payment-link emails.
          example: guest@example.com
        firstName:
          type: string
          description: Traveler's first name.
          example: Alice
          nullable: true
        lastName:
          type: string
          description: Traveler's last name.
          example: Smith
          nullable: true
        phone:
          type: string
          description: Traveler's phone number in international format.
          example: "+385911234567"
          nullable: true
    orderStore:
      type: object
      description: >
        Store attribution derived from the first booking's metadata. All fields
        are null when the order was not placed through a store.
      properties:
        id:
          type: string
          description: Store identifier (MongoDB id) the order was placed through.
          example: 64f1a2b3c4d5e6f7a8b9c0d1
          nullable: true
        subdomain:
          type: string
          description: Store subdomain.
          example: hotel-adriatic
          nullable: true
        name:
          type: string
          description: Store display name.
          example: Hotel Adriatic Experiences
          nullable: true
    orderSlotTime:
      type: object
      description: A local date/time pair in the experience's timezone.
      nullable: true
      properties:
        date:
          type: string
          format: date
          description: Local date (YYYY-MM-DD).
          example: 2026-07-10
          nullable: true
        time:
          type: string
          description: Local time of day (HH:MM:SS). Null for date-only (all-day) slots.
          example: 10:00:00
          nullable: true
    orderBookingPayment:
      type: object
      description: Payment details for one booking.
      nullable: true
      properties:
        code:
          type: string
          description: Payment reference — e.g. a Stripe payment-intent id, sent by the
            client at confirm time.
          example: pi_3OqX8s2eZvKYlo2C
          nullable: true
        status:
          type: string
          description: Payment status.
          enum:
            - PAYMENT_PENDING
            - PAYMENT_COLLECTED
            - REFUNDED
            - FREE
          example: PAYMENT_COLLECTED
        processedBy:
          type: string
          description: >
            Who collects the money. TURNEO (Stripe via Turneo — the only type
            eligible for auto-capture), TURNEO_LINK (payment link),
            RESELLER_CONCIERGE / RESELLER_ROOM / RESELLER_CARD (reseller
            collects), PMS_ROOM_CHARGE, ORGANIZER, or RETAIL_VOUCHER (paid with
            a gift voucher; to redeem one, send it in the order-level `payment`
            at confirm, with the voucher code as `code`).
          example: TURNEO
          nullable: true
        viaPaymentLink:
          type: boolean
          description: Present and true when the payment was initiated through a payment
            link.
          example: false
    orderEmbeddedBooking:
      type: object
      description: >
        A v2 booking embedded in an order response. Bookings are listed newest
        first; EXPIRED and REMOVED bookings are hidden unless the whole order
        has expired, in which case the EXPIRED bookings are shown.
      properties:
        id:
          type: string
          format: uuid
          description: Booking UUID.
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        bookingCode:
          type: string
          description: Short human-readable booking code used on tickets and folios.
          example: TRN-8F3K2A
        bookingStatus:
          type: string
          description: >
            Booking lifecycle status. ON_HOLD (reserved, 15-minute hold),
            PENDING (confirmed, awaiting organizer acceptance), ACCEPTED (live),
            COMPLETED, CANCELLED, EXPIRED (hold or organizer-response timer ran
            out), NO_SHOW, REJECTED, REMOVED (taken out of the cart).
          enum:
            - ON_HOLD
            - PENDING
            - ACCEPTED
            - COMPLETED
            - CANCELLED
            - EXPIRED
            - NO_SHOW
            - REJECTED
            - REMOVED
          example: ON_HOLD
        experience:
          type: object
          description: >
            Full embedded experience object (id, name, images, location,
            duration, refund policy, organizer...). Shape matches the v2
            experience read schema.
          nullable: true
        option:
          type: object
          description: >
            Full embedded option object including its variants (with pricing
            tiers and participant prices), add-ons and extra fields. Shape
            matches the v2 option read schema.
          nullable: true
        variantId:
          type: string
          format: uuid
          description: UUID of the booked variant — references into the embedded option's
            variants.
          example: 3f2e6d1c-8a4b-4f0e-9c7d-2b1a0e9f8d7c
        availabilitySlotId:
          type: string
          format: uuid
          description: UUID of the booked availability slot.
          example: 9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
        orderId:
          type: string
          format: uuid
          description: UUID of the parent order.
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
        redeemedRetailItemId:
          type: string
          format: uuid
          nullable: true
          description: The gift voucher's retail item this booking is redeemed with, or
            null.
          example: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
        slotStartTime:
          $ref: "#/components/schemas/orderSlotTime"
        slotEndTime:
          allOf:
            - $ref: "#/components/schemas/orderSlotTime"
          description: >
            Booking occupancy end in local time — derived from the resolved
            resource-block window when present, otherwise start +
            bookedDuration. Null for all-day date-only slots.
        time:
          type: string
          format: date-time
          description: Booking start as a UTC timestamp.
          example: 2026-07-10T08:00:00Z
          nullable: true
        participantCounts:
          type: object
          description: Map of participant-type UUID to booked head count.
          additionalProperties:
            type: integer
          example:
            c1a2b3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d: 2
        totalParticipants:
          type: integer
          description: Total booked participants across all participant types.
          example: 2
        bookedDuration:
          type: object
          description: Booked duration as `{days, hours, minutes}`, computed from the
            option configuration.
          example:
            days: 0
            hours: 2
            minutes: 0
        durationUnits:
          type: integer
          description: Number of duration-increment blocks booked. Only set for
            DURATION_BASED pricing.
          example: 2
          nullable: true
        retailPriceBreakdown:
          type: array
          description: >
            Line-by-line retail price breakdown (one entry per participant type,
            add-on and discount) with label, quantity and price.
          items:
            type: object
          example:
            - label: Adult
              quantity: 2
              price: 50
              type: PARTICIPANT
        bookingAddons:
          type: array
          description: Booked add-ons with resolved names and effective quantities.
          items:
            type: object
            properties:
              addonId:
                type: string
                format: uuid
                description: Add-on UUID.
                example: 5a4b3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d
              addonName:
                type: string
                description: Add-on name in the request language.
                example: Hotel transfer
              quantity:
                type: integer
                description: Effective booked quantity (server-derived for per-person checkbox
                  add-ons).
                example: 2
              price:
                type: string
                description: Unit price of the add-on as a decimal string.
                example: "15.00"
                nullable: true
              perPerson:
                type: boolean
                description: Whether the add-on is priced per person.
                example: true
        extraFieldResponses:
          type: object
          description: Map of extra-field UUID to the traveler's answer.
          additionalProperties:
            type: string
          example:
            aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f: Vegetarian
          nullable: true
        storeExtraFieldResponses:
          type: object
          description: Answers to the store's checkout questions, keyed by question id;
            each value is a string, a boolean (checkbox) or null. The questions
            themselves are defined on the store config (`checkout.questions`),
            not on the option, and are answered once per order — every booking
            of an order carries the same map. Returned only to the booking's
            reseller; null for everyone else, organizer-side callers included.
          additionalProperties: true
          example:
            0d2e4f6a-8b0c-4d2e-9f1a-3b5c7d9e1f2a: Room 204
            7c8d9e0f-1a2b-4c3d-8e9f-0a1b2c3d4e5f: true
          nullable: true
        alternativeSlots:
          type: array
          description: >
            Alternative slots offered by the organizer on a PENDING booking, or
            null when none were offered.
          nullable: true
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: Alternative slot UUID.
                example: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
              startDate:
                type: string
                format: date
                description: Local start date of the alternative slot.
                example: 2026-07-11
                nullable: true
              startTime:
                type: string
                description: Local start time of the alternative slot.
                example: 14:00:00
                nullable: true
        reseller:
          type: object
          description: >
            Embedded reseller partner (id, name, logo...) enriched with
            attribution from the booking metadata — storeId, storeName,
            storeSubdomain, agentName, agentReference, hotelName, roomNumber —
            when present.
          example:
            id: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
            name: Hotel Adriatic
            storeId: 64f1a2b3c4d5e6f7a8b9c0d1
            storeName: Hotel Adriatic Experiences
        finalPrice:
          allOf:
            - $ref: "#/components/schemas/orderMoney"
          description: Total retail price the traveler pays for this booking.
        basePrice:
          allOf:
            - $ref: "#/components/schemas/orderMoney"
          description: Base (pre-commission) price of the booking.
        netRate:
          allOf:
            - $ref: "#/components/schemas/orderMoney"
          description: Organizer's payout amount for this booking.
        discount:
          type: object
          description: Automatic slot/option discount applied at booking time, or null.
          nullable: true
        voucher:
          type: object
          description: Applied voucher details (code, discount), or null when no voucher
            is applied.
          nullable: true
        conciergeDiscount:
          type: object
          description: Manually applied concierge discount (amount, note), or null.
          nullable: true
        payment:
          $ref: "#/components/schemas/orderBookingPayment"
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/orderTravelerInformation"
          type: object
          description: Booking-level traveler info. Inherited from the order at confirm
            time when not set.
          nullable: true
        meetingPoint:
          type: object
          description: Resolved meeting point / pickup details for the booking.
          nullable: true
          example:
            type: CENTRAL_MEETING_POINT
            title: Old Town Gate
            address: 1 Main St
            timeBeforeStart: 15
        resellerReference:
          type: string
          description: Reseller's internal reference for this booking.
          example: HOTEL-4711
          nullable: true
        resellerProperty:
          type: object
          description: >
            The reseller property (hotel) the booking is attributed to — id,
            name, location, partner, parentProperty, roomCount and a
            pmsIntegration summary — or null.
          nullable: true
        pmsBookingId:
          type: string
          description: External PMS reservation id linked to this booking (e.g. Valamar
            master id).
          example: "123456789"
          nullable: true
        bookingSource:
          type: string
          description: Source identifier of the sales channel that created the booking.
          example: hub
          nullable: true
        emailNotification:
          type: array
          description: Extra email addresses notified about this booking.
          items:
            type: string
            format: email
          example:
            - concierge@hotel.com
          nullable: true
        metadata:
          type: object
          description: Arbitrary attribution metadata (store/agent details, external
            provider ids).
          nullable: true
        language:
          type: string
          description: Language code used for traveler-facing communication.
          example: en
        cancellation:
          type: object
          description: Cancellation details (cancelledBy, cancelledAt,
            cancellationFeeAmount), or null.
          nullable: true
        review:
          type: object
          description: The booking's review (rating, reviewText, status...), or null when
            not reviewed.
          nullable: true
        resources:
          type: array
          description: Resources (guides, vehicles) assigned to the booking, deduplicated.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: Resource UUID.
                example: 8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f
              name:
                type: string
                description: Resource display name.
                example: Kayak guide Ivan
        notes:
          type: object
          description: Booking notes keyed by author — fromSeller, fromOrganizer,
            fromTraveler. Null when empty.
          nullable: true
          example:
            fromSeller: Guest is celebrating an anniversary.
        createdAt:
          type: string
          format: date-time
          description: When the booking was created.
          example: 2026-07-02T09:15:00Z
        updatedAt:
          type: string
          format: date-time
          description: When the booking was last modified.
          example: 2026-07-02T09:20:00Z
    orderDetail:
      type: object
      description: A v2 booking order with its embedded bookings and aggregated prices.
      properties:
        id:
          type: string
          format: uuid
          description: Order UUID.
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
        status:
          type: string
          description: >
            Derived order status, counting bookings and retail lines alike.
            ON_HOLD — all active lines are still on hold; BOOKED — at least one
            line progressed past ON_HOLD; EXPIRED — the order has lines but none
            are active.
          enum:
            - ON_HOLD
            - BOOKED
            - EXPIRED
          example: ON_HOLD
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/orderTravelerInformation"
          type: object
          nullable: true
        bookings:
          type: array
          description: >
            The order's bookings, newest first. EXPIRED and REMOVED bookings are
            excluded — unless every non-removed booking has expired, in which
            case the EXPIRED bookings are returned so the dead cart can be
            rendered.
          items:
            $ref: "#/components/schemas/orderEmbeddedBooking"
        retailItems:
          type: array
          description: >
            The order's retail and gift voucher lines, newest first, selected
            like `bookings`: EXPIRED and REMOVED lines are excluded unless the
            whole order has expired. `voucherCode` is always null here; the gift
            voucher code is emailed to its holder.
          items:
            $ref: "#/components/schemas/retailItem"
        finalPrice:
          allOf:
            - $ref: "#/components/schemas/orderMoney"
          description: >
            Sum of the final prices of the displayed bookings and retail lines,
            excluding refunded ones. Currency comes from the first booking (or
            retail line); defaults to the platform currency with amount 0 for an
            empty order.
        basePrice:
          type: number
          description: Sum of the base (net-rate) prices of the displayed bookings and
            retail lines, rounded to 2 decimals.
          example: 200
        resellerReference:
          type: string
          description: Reseller's internal order reference.
          example: HOTEL-4711
          nullable: true
        emailNotification:
          type: array
          description: Email addresses to notify about the order; inherited by bookings
            without their own list.
          items:
            type: string
            format: email
          example:
            - concierge@hotel.com
          nullable: true
        bookingSource:
          type: string
          description: Source identifier of the sales channel (e.g. store subdomain, "hub").
          example: hub
          nullable: true
        utmMedium:
          type: string
          description: UTM medium tracking parameter captured at checkout.
          example: email
          nullable: true
        utmSource:
          type: string
          description: UTM source tracking parameter captured at checkout.
          example: newsletter
          nullable: true
        store:
          $ref: "#/components/schemas/orderStore"
        storeExtraFieldResponses:
          type: object
          nullable: true
          description: "Answers to the store's checkout questions, keyed by question id;
            each value is a string, a boolean (checkbox) or null. The questions
            are defined on the store config (`checkout.questions`). Empty (`{}`)
            once the checkout form has been submitted with no answers — a store
            with no questions, or a clear — and null only for orders that never
            went through it: those created before this shipped, or by a client
            that never sends the key. Unlike the booking-level copy this is
            ungated — the order endpoints are already scoped to the order's
            creator/reseller, and checkout reads its own answers back to re-seed
            the form."
          additionalProperties: true
          example:
            0d2e4f6a-8b0c-4d2e-9f1a-3b5c7d9e1f2a: Room 204
            7c8d9e0f-1a2b-4c3d-8e9f-0a1b2c3d4e5f: true
        createdAt:
          type: string
          format: date-time
          description: When the order was created.
          example: 2026-07-02T09:15:00Z
        updatedAt:
          type: string
          format: date-time
          description: When the order was last modified.
          example: 2026-07-02T09:20:00Z
    paginatedOrders:
      type: object
      description: Standard paginated envelope for booking orders.
      properties:
        count:
          type: integer
          description: Total number of orders matching the query.
          example: 42
        next:
          type: string
          format: uri
          description: URL of the next page, or null on the last page.
          example: https://api.turneo.co/v2/booking-orders?page=2&page_size=50
          nullable: true
        previous:
          type: string
          format: uri
          description: URL of the previous page, or null on the first page.
          example: null
          nullable: true
        results:
          type: array
          description: Orders on this page, newest first.
          items:
            $ref: "#/components/schemas/orderDetail"
    orderBookingCreateRequest:
      type: object
      description: >
        One booking to create inside an order (used by both order creation and

        `POST .../add`). The `skipCutoff` field is reserved for Turneo's
        concierge

        tooling and is not usable by API-key integrations.
      required:
        - variantId
        - availabilitySlotId
        - participantCounts
      properties:
        variantId:
          type: string
          format: uuid
          description: UUID of the variant to book. Must be active and belong to an active
            option/experience.
          example: 3f2e6d1c-8a4b-4f0e-9c7d-2b1a0e9f8d7c
        availabilitySlotId:
          type: string
          format: uuid
          description: >
            UUID of the availability slot to book. Must belong to the same
            option as the variant and be active and bookable.
          example: 9b8a7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d
        participantCounts:
          type: object
          description: >
            Map of participant-type UUID to positive head count. Types must
            belong to the experience and not be disabled on the option;
            capacity-exempt types (e.g. infants) do not count against the
            variant's participant limit.
          additionalProperties:
            type: integer
          example:
            c1a2b3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d: 2
        bookingAddons:
          type: array
          description: >
            Add-ons to book. For QUANTITY_SELECTOR add-ons the quantity is
            capped by the add-on's maxQuantity; for CHECKBOX add-ons the server
            derives the effective quantity from the participant count.
          items:
            type: object
            required:
              - addonId
              - quantity
            properties:
              addonId:
                type: string
                format: uuid
                description: UUID of an active add-on on the option.
                example: 5a4b3c2d-1e0f-4a9b-8c7d-6e5f4a3b2c1d
              quantity:
                type: integer
                minimum: 1
                description: Requested quantity.
                example: 2
        extraFieldResponses:
          type: array
          description: >
            Answers to the option's extra fields. Can also be provided later via
            PATCH; required fields are enforced at confirm time, not here.
          items:
            type: object
            required:
              - fieldId
              - response
            properties:
              fieldId:
                type: string
                format: uuid
                description: UUID of an active extra field on the option.
                example: aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f
              response:
                type: string
                description: The traveler's answer. For checkbox fields use "true"/"false".
                example: Vegetarian
        durationUnits:
          type: integer
          minimum: 1
          description: >
            Number of duration-increment blocks to book. Required for
            DURATION_BASED pricing options and rejected for all other pricing
            models.
          example: 2
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/orderTravelerInformation"
          description: Booking-level traveler info. Defaults to the order-level value when
            omitted.
        reseller:
          type: object
          description: >
            Store/agent attribution (storeId, storeName, agentName...) merged
            into the booking metadata.
          example:
            storeId: 64f1a2b3c4d5e6f7a8b9c0d1
            storeName: Hotel Adriatic Experiences
        resellerReference:
          type: string
          maxLength: 128
          description: Reseller's internal reference for this booking.
          example: HOTEL-4711
        payment:
          allOf:
            - $ref: "#/components/schemas/orderBookingPayment"
          description: >
            Initial payment details. When omitted, reseller-flow callers default
            to RESELLER_CONCIERGE / PAYMENT_COLLECTED; everyone else to null /
            PAYMENT_PENDING.
        meetingPointId:
          type: string
          format: uuid
          description: UUID of one of the experience's predefined meeting points.
          example: 6e5f4a3b-2c1d-4e0f-9a8b-7c6d5e4f3a2b
        meetingPoint:
          type: object
          description: Custom pickup location, used when meetingPointId is not supplied.
          example:
            type: HOTEL_PICKUP
            title: Hotel Adriatic lobby
            address: Obala 12
            timeBeforeStart: 15
        notes:
          type: object
          description: Booking notes keyed by author (`fromSeller`, `fromOrganizer`).
          example:
            fromSeller: Guest prefers a morning pickup.
        bookingSource:
          type: string
          maxLength: 36
          description: Source identifier of the sales channel.
          example: hub
        emailNotification:
          type: array
          description: Extra email addresses to notify about this booking.
          items:
            type: string
            format: email
          example:
            - concierge@hotel.com
        metadata:
          type: object
          description: Arbitrary JSON metadata stored on the booking.
          example:
            campaign: summer-2026
        language:
          type: string
          maxLength: 5
          description: Language code for traveler-facing communication. Defaults to the
            request language.
          example: en
        skipCutoff:
          type: boolean
          default: false
          description: Reserved for Turneo's concierge tooling — silently ignored for
            API-key integrations.
          example: false
        resources:
          type: array
          description: Specific resources to book (a therapist, room, sunbed, table or
            rental unit), by id from the option's `resourceGroups`. Each must
            belong to one of the option's resource groups and be free for the
            slot, or the request returns 400. Omit it and Turneo assigns
            resources automatically.
          items:
            type: string
            format: uuid
          example:
            - 8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f
    orderCreateRequest:
      type: object
      description: Payload for creating a new order. Send bookings, retail lines, or
        both; at least one line is required.
      properties:
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/orderTravelerInformation"
          description: Shared traveler info, copied to bookings that don't provide their
            own.
        bookings:
          type: array
          description: Bookings to create. Required unless `retailItems` is sent.
          items:
            $ref: "#/components/schemas/orderBookingCreateRequest"
        retailItems:
          type: array
          description: Retail and gift voucher lines to buy. Required unless `bookings` is
            sent.
          items:
            $ref: "#/components/schemas/orderRetailItemCreateRequest"
        voucherCode:
          type: string
          maxLength: 24
          nullable: true
          description: >
            A gift voucher code to pay for this order's bookings with. Each
            booking is checked against the voucher on creation (400 on
            `retail_voucher_code`, e.g. `VOUCHER_INVALID`,
            `VOUCHER_USES_EXHAUSTED`, `VOUCHER_EXPERIENCE_OUT_OF_SCOPE`) and
            holds one of its uses; prices drop to 0 at confirm. Remove it with
            `POST /v2/booking-orders/{id}/remove-voucher`. Not for promo codes.
          example: 7WF4MRY2KC8N
        emailNotification:
          type: array
          description: Email addresses to notify about the order.
          items:
            type: string
            format: email
          example:
            - concierge@hotel.com
        resellerReference:
          type: string
          maxLength: 128
          description: Reseller's internal order reference.
          example: HOTEL-4711
        bookingSource:
          type: string
          maxLength: 36
          description: Source identifier of the sales channel.
          example: hub
        utmMedium:
          type: string
          maxLength: 128
          description: UTM medium tracking parameter.
          example: email
        utmSource:
          type: string
          maxLength: 128
          description: UTM source tracking parameter.
          example: newsletter
    orderBookingPatch:
      type: object
      description: >
        A patch for one booking that already belongs to the order (used inside
        the `bookings` array of order update requests).
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the booking to patch. Must belong to this order, otherwise
            400.
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        payment:
          allOf:
            - $ref: "#/components/schemas/orderBookingPayment"
          description: >
            Payment patch — validated as sent, then merged key-by-key onto the
            stored payment object (existing keys not present in the patch
            survive).
        resellerReference:
          type: string
          maxLength: 128
          description: Reseller's internal reference for this booking.
          example: HOTEL-4711
          nullable: true
        resellerProperty:
          type: string
          format: uuid
          description: >
            UUID of the reseller property (hotel) to attribute the booking to.
            Must be one of the booking reseller's properties, otherwise 400.
            Null clears it.
          example: 4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f7a
          nullable: true
        pmsBookingId:
          type: string
          maxLength: 128
          description: External PMS reservation id to link to this booking.
          example: "123456789"
          nullable: true
        metadata:
          type: object
          description: Metadata patch, merged onto the booking's existing metadata.
          example:
            roomNumber: "204"
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/orderTravelerInformation"
          description: Traveler-info patch, merged onto the booking's existing traveler
            information.
        extraFieldResponses:
          type: array
          description: >
            Answers to the option's extra fields. Each fieldId must belong to
            the booking's option. Replaces the stored response set.
          items:
            type: object
            required:
              - fieldId
              - response
            properties:
              fieldId:
                type: string
                format: uuid
                description: UUID of an active extra field on the booking's option.
                example: aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f
              response:
                type: string
                description: The traveler's answer. For checkbox fields use "true"/"false".
                example: Vegetarian
        notes:
          type: object
          description: Booking notes keyed by author (`fromSeller`, `fromOrganizer`).
          example:
            fromSeller: Guest arrives late.
        meetingPointId:
          type: string
          format: uuid
          description: UUID of one of the experience's predefined meeting points.
          example: 6e5f4a3b-2c1d-4e0f-9a8b-7c6d5e4f3a2b
          nullable: true
        meetingPoint:
          type: object
          description: Custom pickup location, used when meetingPointId is not supplied.
          nullable: true
          example:
            type: HOTEL_PICKUP
            title: Hotel Adriatic lobby
            address: Obala 12
            timeBeforeStart: 15
        reseller:
          type: object
          description: Store/agent attribution merged into the booking metadata.
          example:
            agentName: Marko
            storeId: 64f1a2b3c4d5e6f7a8b9c0d1
    orderUpdateRequest:
      type: object
      description: >
        Payload for PATCH/PUT on an order. Only the listed order-level fields
        are writable; the optional `bookings` and `retailItems` arrays patch
        individual lines already in the order.
      properties:
        travelerInformation:
          $ref: "#/components/schemas/orderTravelerInformation"
        resellerReference:
          type: string
          maxLength: 128
          description: Reseller's internal order reference.
          example: HOTEL-4711
        emailNotification:
          type: array
          description: Email addresses to notify about the order.
          items:
            type: string
            format: email
          example:
            - concierge@hotel.com
        utmMedium:
          type: string
          maxLength: 128
          description: UTM medium tracking parameter.
          example: email
        utmSource:
          type: string
          maxLength: 128
          description: UTM source tracking parameter.
          example: newsletter
        storeExtraFieldResponses:
          type: array
          description: >
            Answers to the store's checkout questions — asked once per order,
            not per booking. Sent as a list, stored and read back as a
            `{questionId: response}` map, and copied onto every non-removed
            booking and active retail line of the order. Replaces the stored
            map; an empty list is a valid clear and propagates the same way,
            emptying the map on the order and on all of those bookings and
            retail lines. Ids are not checked against the store's current
            questions; only the value types are validated here. Required
            questions are enforced later, at `POST
            /v2/booking-orders/{id}/confirm`, which returns 400 when one is
            unanswered — but enforcement is skipped when the store cannot be
            resolved (the order carries no store, or its config is unreachable)
            and for payment-link orders (`payment.viaPaymentLink`), whose
            answers were already validated when the link was created and whose
            payment page cannot collect a question added while the link was
            outstanding. Clients should not rely on the gate as their only
            guard.
          items:
            type: object
            required:
              - fieldId
              - response
            properties:
              fieldId:
                type: string
                maxLength: 64
                description: Id of a question defined on the store config
                  (`checkout.questions`); a client-generated UUID in practice.
                example: 0d2e4f6a-8b0c-4d2e-9f1a-3b5c7d9e1f2a
              response:
                description: "The traveler's answer: a string for `QUESTION` questions, a
                  boolean for `CHECKBOX` questions, or null when unanswered. The
                  key must be present. Any other JSON type is a 400. A `false`
                  checkbox is a real answer (exported as `No`); only null and
                  \"\" count as unanswered."
                example: Room 204
        bookings:
          type: array
          description: Patches for bookings that already belong to the order.
          items:
            $ref: "#/components/schemas/orderBookingPatch"
        retailItems:
          type: array
          description: Patches for retail lines that already belong to the order,
            typically the buyer's answers to a SKU's purchase questions.
          items:
            $ref: "#/components/schemas/orderRetailItemPatch"
    orderAddBookingsRequest:
      type: object
      description: Payload for adding lines to an existing ON_HOLD order. Send
        bookings, retail lines, or both; at least one line is required.
      properties:
        bookings:
          type: array
          description: >
            Bookings to add. Same shape and validation as order creation; new
            bookings must use the same currency as the bookings already in the
            order.
          items:
            $ref: "#/components/schemas/orderBookingCreateRequest"
        retailItems:
          type: array
          description: Retail and gift voucher lines to add. Same shape and validation as
            order creation.
          items:
            $ref: "#/components/schemas/orderRetailItemCreateRequest"
    orderRemoveBookingsRequest:
      type: object
      description: Payload for removing lines from an ON_HOLD order. Send
        `expireBookings`, `removeRetailItems`, or both; at least one of the ids
        must belong to the order.
      properties:
        expireBookings:
          type: array
          description: >
            UUIDs of bookings to remove. They are marked REMOVED (not deleted)
            and their resource blocks are freed.
          items:
            type: string
            format: uuid
          example:
            - 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        removeRetailItems:
          type: array
          description: UUIDs of retail lines to remove. They are marked REMOVED (not
            deleted) and the units they held are released.
          items:
            type: string
            format: uuid
          example:
            - 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
    orderConfirmBookingItem:
      type: object
      description: Per-booking data applied at confirm time.
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: UUID of a booking in this order.
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        payment:
          allOf:
            - $ref: "#/components/schemas/orderBookingPayment"
          description: >
            Final payment details, merged onto the stored payment. The frontend
            typically sends the Stripe payment-intent code and final status
            here.
        emailNotification:
          type: array
          description: Per-booking notification list; overrides the order-level list for
            this booking.
          items:
            type: string
            format: email
          example:
            - concierge@hotel.com
        skipPending:
          type: boolean
          default: false
          description: >
            Force ACCEPTED instead of PENDING for this booking. Honored only for
            reseller-flow callers; silently ignored for everyone else (even with
            an x-action-user header).
          example: false
    orderConfirmRequest:
      type: object
      description: >
        Payload for confirming an order. All fields are optional — an empty
        object confirms the order as-is. On an idempotent retry of an
        already-BOOKED order the entire payload is ignored.
      properties:
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/orderTravelerInformation"
          description: Final traveler info; also inherited by bookings without their own.
        resellerReference:
          type: string
          description: Reseller's internal order reference.
          example: HOTEL-4711
        emailNotification:
          type: array
          description: Order-level notification list, inherited by bookings without their
            own.
          items:
            type: string
            format: email
          example:
            - concierge@hotel.com
        bookingSource:
          type: string
          description: Source identifier of the sales channel; inherited by bookings
            without their own.
          example: hub
        utmMedium:
          type: string
          description: UTM medium tracking parameter.
          example: email
        utmSource:
          type: string
          description: UTM source tracking parameter.
          example: newsletter
        reseller:
          type: object
          description: >
            Store/agent attribution (storeId, storeName, agentName...) stored as
            order metadata and merged into each booking's metadata.
          example:
            storeId: 64f1a2b3c4d5e6f7a8b9c0d1
            storeName: Hotel Adriatic Experiences
        payment:
          allOf:
            - $ref: "#/components/schemas/orderBookingPayment"
          description: >
            Order-level payment, taken by bookings and retail lines that have no
            payment method of their own. To pay with a gift voucher, send
            `{processedBy: RETAIL_VOUCHER, code: <voucher code>}`; see the
            operation description for the rules.
          example:
            processedBy: RETAIL_VOUCHER
            code: 7WF4MRY2KC8N
        bookings:
          type: array
          description: Per-booking confirm data (payment result, notification overrides,
            skipPending).
          items:
            $ref: "#/components/schemas/orderConfirmBookingItem"
        retailItems:
          type: array
          description: Per-line confirm data for retail lines (payment result).
          items:
            $ref: "#/components/schemas/orderConfirmRetailItem"
    orderRetailItemCreateRequest:
      type: object
      description: >
        One retail or gift voucher line to buy (used by order creation and `POST
        .../add`). The line holds its units for as long as the order is held,
        and is sold when the order is confirmed.
      required:
        - retailSkuId
        - quantity
      properties:
        retailSkuId:
          type: string
          format: uuid
          description: >
            UUID of the SKU to buy (from `retailSkus` on the product detail). It
            must be enabled, priced and on an `ACTIVE` product, otherwise 400
            (`RETAIL_SKU_UNAVAILABLE` or `RETAIL_EXPERIENCE_UNAVAILABLE`); a
            counted SKU without enough free units returns 400
            (`RETAIL_STOCK_INSUFFICIENT`).
          example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
        quantity:
          type: integer
          minimum: 1
          description: Units to buy. Price is the SKU's unit price times this. A gift
            voucher line must be exactly 1 (400,
            `VOUCHER_PURCHASE_SINGLE_ITEM_REQUIRED`); buy several vouchers as
            several lines.
          example: 2
        extraFieldResponses:
          type: object
          nullable: true
          description: Answers to the SKU's questions, keyed by question UUID. They can
            also be sent later with `PATCH /v2/booking-orders/{id}`; required
            ones are enforced at confirm.
          example:
            aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f: Happy birthday!
        recipientEmail:
          type: string
          format: email
          nullable: true
          description: Gift voucher lines only. The voucher code is emailed here instead
            of to the buyer. Sending it on any other line returns 400
            (`RETAIL_RECIPIENT_FIELDS_UNSUPPORTED`).
          example: recipient@guest.example
        recipientName:
          type: string
          maxLength: 255
          nullable: true
          description: Gift voucher lines only. Name of the gift recipient.
          example: Alex Example
    orderRetailItemPatch:
      type: object
      description: >
        A patch for one retail line already in the order (used in the
        `retailItems` array of order update requests), to answer the SKU's
        questions after reserving.
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the retail line. A line outside this order returns 400
            (`ORDER_RETAIL_ITEM_NOT_FOUND`).
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        extraFieldResponses:
          type: array
          description: Answers to the SKU's questions. Replaces the stored answers. Each
            `fieldId` must be a question of this line's SKU, otherwise 400
            (`RETAIL_EXTRA_FIELD_UNAVAILABLE`).
          items:
            type: object
            required:
              - fieldId
              - response
            properties:
              fieldId:
                type: string
                format: uuid
                description: UUID of a question on the line's SKU.
                example: aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f
              response:
                type: string
                description: The buyer's answer. For checkbox questions use "true"/"false".
                example: Happy birthday!
    orderConfirmRetailItem:
      type: object
      description: Per-line data for a retail line, applied at confirm time.
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: UUID of a retail line in this order.
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        payment:
          allOf:
            - $ref: "#/components/schemas/orderBookingPayment"
          description: Final payment details for the line, merged onto the stored payment.
            Lines without one take the order-level `payment`.
    orderVoucherRequest:
      type: object
      description: Payload for applying a seller promo code to an order.
      required:
        - voucherCode
      properties:
        voucherCode:
          type: string
          description: The promo code to apply to all active Turneo-sourced bookings in
            the order. Gift voucher codes are not accepted here.
          example: SAVE10
    orderConciergeDiscountRequest:
      type: object
      description: Payload for applying a concierge discount to one booking or retail
        line in the order.
      required:
        - discountAmount
      properties:
        bookingId:
          type: string
          format: uuid
          description: UUID of the booking (must be an active booking of this order). Send
            this or `retailItemId`, not both.
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        retailItemId:
          type: string
          format: uuid
          description: UUID of an active retail line of this order, of a product you sell
            yourself. The discount must be positive and can't exceed the line
            price.
          example: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
        discountAmount:
          type: number
          description: Discount amount in the booking's currency (major units).
          example: 10.5
        discountNote:
          type: string
          description: Optional free-text note explaining the discount.
          example: Special customer discount
    orderCustomBookingRequest:
      type: object
      description: >
        Payload for creating a one-off custom experience and booking it.
        Reseller-type partners only.
      required:
        - name
        - commission
        - meetingPoint
        - organizerId
        - duration
        - price
        - localTime
      properties:
        name:
          type: string
          description: Display name of the ad-hoc experience (e.g. the restaurant or
            service name).
          example: Dinner at Konoba Mate
        description:
          type: string
          description: >
            Optional guest-visible description. Shown to the guest in the
            confirmation

            email (as the option note) and on the booking page, and to the
            organizer as the

            "notes from hotel" booking note (unless `notes.fromSeller` is passed
            explicitly).
          example: Anniversary dinner, window table.
        commission:
          type: number
          minimum: 0
          maximum: 100
          description: Reseller commission percentage registered on the new experience.
            Send 0 when no commission applies (e.g. the reseller books its own
            experience).
          example: 15
        participantCounts:
          type: object
          additionalProperties: false
          properties:
            adult:
              type: integer
              minimum: 0
            child:
              type: integer
              minimum: 0
            infant:
              type: integer
              minimum: 0
          description: >
            Participant counts by default participant type. Informational — the
            flat price

            is not multiplied. At least one participant in total; defaults to
            one adult when omitted.
          example:
            adult: 2
            child: 1
        organizerId:
          type: string
          description: Partner id of the organizer the custom experience is created under.
            Must be an organizer-type partner.
          example: partner-org-123
        duration:
          type: object
          description: Duration of the custom experience as `{days, hours, minutes}`.
          example:
            days: 0
            hours: 2
            minutes: 0
        price:
          allOf:
            - $ref: "#/components/schemas/orderMoney"
          description: >
            Flat retail price of the custom booking. Must match the order
            currency when appending to an existing order.
        localTime:
          type: string
          description: >
            Local start date-time of the booking (ISO-ish, interpreted in the
            meeting point's timezone). May be at most 24 hours in the past.
          example: 2026-07-10T19:30:00
        meetingPoint:
          type: object
          description: >
            Meeting point of the custom experience. `latitude` and `longitude`
            are required — the experience timezone is derived from them.
          example:
            title: Konoba Mate
            address: Pupnat 28
            city: Korcula
            country: Croatia
            latitude: 42.9235
            longitude: 17.0312
            timeBeforeStart: 0
        refundPolicy:
          type: object
          description: Optional tiered refund policy with percentage-based cancellation
            fees.
          nullable: true
          example:
            - hoursBefore: 24
              percentage: 100
        image:
          type: string
          format: uri
          description: Cover image URL for the custom experience. Defaults to the
            reseller's logo.
          example: https://cdn.turneo.com/images/custom.jpg
        supportContact:
          type: array
          description: Organizer support contacts for the experience.
          items:
            type: object
          example:
            - type: phone
              value: "+385911234567"
        contacts:
          type: array
          description: Additional organizer contacts (write-only).
          items:
            type: object
          example:
            - type: email
              value: info@acmetours.com
        storeId:
          type: string
          description: Store id for attribution; resolves and stores the store name on the
            booking.
          example: 64f1a2b3c4d5e6f7a8b9c0d1
        notes:
          type: object
          description: Booking notes keyed by author (`fromSeller`, `fromOrganizer`).
          example:
            fromSeller: Table by the window.
        resources:
          type: array
          description: >
            UUIDs of resources (guides, vehicles) to block for the booking's
            duration. Unavailable resources fail the request.
          items:
            type: string
            format: uuid
          example:
            - 8c7d6e5f-4a3b-4c2d-9e1f-0a9b8c7d6e5f
        orderId:
          type: string
          format: uuid
          description: >
            Existing order to append the custom booking to. Must belong to the
            caller and not be BOOKED/EXPIRED; when omitted a new order is
            created.
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
    activity:
      type: object
      description: A single activity feed event.
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier of the event.
          example: 7a1e74c3-d0f2-41e6-ac12-33108100200e
        type:
          type: string
          description: >
            The specific event type. One of `booking.created`,
            `booking.confirmed`, `booking.cancelled`, `booking.rejected`,
            `booking.payment_link_created`, `review.submitted`,
            `experience.published`, `experience.updated`, `retail.purchased`,
            `retail.cancelled`.
          example: booking.confirmed
        category:
          type: string
          enum:
            - booking
            - experience
            - review
            - retail
          description: Coarse grouping used for filtering. Derived from `type`.
          example: booking
        occurredAt:
          type: string
          format: date-time
          description: When the underlying event happened (not when the row was written).
          example: 2026-07-01T14:32:00Z
        payload:
          type: object
          additionalProperties: true
          description: >
            A self-contained snapshot of the event, shaped differently per
            `type` (e.g. a `booking.confirmed` payload embeds the
            booking/experience summary at confirmation time). Renders
            independently of the current state of the source
            booking/experience/review.
        actorType:
          type: string
          enum:
            - guest
            - concierge
            - organizer
            - turneo_ai
            - system
          description: Who triggered the event.
          example: guest
        actorId:
          type: string
          nullable: true
          description: Identifier of the actor, when applicable (e.g. the guest or partner
            id). Null for `system`-triggered events.
          example: 3f2e6d1c-8a4b-4f0e-9c7d-2b1a0e9f8d7c
    paginatedActivities:
      type: object
      description: Paginated envelope of activity events.
      properties:
        count:
          type: integer
          description: Total number of matching events across all pages.
          example: 128
        next:
          type: string
          nullable: true
          description: URL of the next page, or null if this is the last page.
          example: https://api.turneo.co/v2/activities?page=2&page_size=50
        previous:
          type: string
          nullable: true
          description: URL of the previous page, or null if this is the first page.
          example: null
        results:
          type: array
          items:
            $ref: "#/components/schemas/activity"
    activityAvailableFilters:
      type: object
      description: Filter facets present in the caller's scoped activity feed.
      properties:
        category:
          type: array
          description: Categories present in the caller's activity, each with its display
            label.
          items:
            type: object
            properties:
              value:
                type: string
                example: booking
              label:
                type: string
                example: Booking
        actor:
          type: array
          description: Actor types present in the caller's activity, each with its display
            label.
          items:
            type: object
            properties:
              value:
                type: string
                example: guest
              label:
                type: string
                example: Guest
    retailAttributeValue:
      type: object
      description: One value on a variation axis (Red on Colour, M on Size).
      properties:
        id:
          type: string
          format: uuid
          description: Value UUID. SKUs list the values they are made of in
            `attributeValueIds`.
          example: 9a8b7c6d-5e4f-4a3b-8c1d-0e9f8a7b6c5d
        label:
          $ref: "#/components/schemas/experienceMultilangText"
        sortOrder:
          type: integer
          description: Position of the value within its axis.
          example: 0
    retailAttribute:
      type: object
      description: A variation axis of a retail product (Colour, Size) with its values.
      properties:
        id:
          type: string
          format: uuid
          description: Axis UUID.
          example: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        sortOrder:
          type: integer
          description: Position of the axis among the product's axes.
          example: 0
        values:
          type: array
          description: The axis's values, in `sortOrder`.
          items:
            $ref: "#/components/schemas/retailAttributeValue"
    retailAttributeWrite:
      type: object
      description: >
        Writable fields of a variation axis. All are optional. When `values` is
        present it replaces the whole value set: entries with an `id` are
        updated, entries without one are created, and values left out are
        removed. Omit `values` to leave them as they are.
      properties:
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        sortOrder:
          type: integer
          description: Position of the axis among the product's axes. Defaults to 0.
          example: 0
        values:
          type: array
          description: The axis's values.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: UUID of an existing value of this axis (or of one removed earlier,
                  which brings it back). Omit to create a new value.
                example: 9a8b7c6d-5e4f-4a3b-8c1d-0e9f8a7b6c5d
              label:
                $ref: "#/components/schemas/experienceMultilangText"
              sortOrder:
                type: integer
                description: Position of the value within the axis. Defaults to 0.
                example: 0
    paginatedRetailAttributes:
      type: object
      description: Standard paginated envelope for variation axes.
      properties:
        count:
          type: integer
          description: Total number of axes.
          example: 2
        next:
          type: string
          format: uri
          description: URL of the next page, or null on the last page.
          example: null
          nullable: true
        previous:
          type: string
          format: uri
          description: URL of the previous page, or null on the first page.
          example: null
          nullable: true
        results:
          type: array
          description: Variation axes on this page.
          items:
            $ref: "#/components/schemas/retailAttribute"
    retailExtraField:
      type: object
      description: A question the buyer answers when buying this SKU (e.g. "Gift message").
      properties:
        id:
          type: string
          format: uuid
          description: Question UUID. Answers are keyed by it.
          example: aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f
        name:
          $ref: "#/components/schemas/experienceMultilangText"
        sortOrder:
          type: integer
          description: Order the questions are asked in.
          example: 0
        fieldType:
          type: string
          enum:
            - QUESTION
            - CHECKBOX
          description: '`QUESTION` takes free text; `CHECKBOX` takes `"true"` or `"false"`.'
          example: QUESTION
        required:
          type: boolean
          description: Whether the question must be answered before the order can be
            confirmed. A required `CHECKBOX` must be ticked.
          example: false
    retailSku:
      type: object
      description: >
        One sellable combination of variation values: the unit that carries
        price and stock. A product with no variation axes has exactly one SKU,
        with an empty `attributeValueIds`.
      properties:
        id:
          type: string
          format: uuid
          description: SKU UUID. Send it as `retailSkuId` to buy this SKU on an order.
          example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
        skuCode:
          type: string
          maxLength: 64
          nullable: true
          description: Your own stock-keeping code for this SKU.
          example: TSHIRT-RED-M
        attributeValueIds:
          type: array
          description: The variation values this SKU is made of. Empty for a product
            without variations.
          items:
            type: string
            format: uuid
          example:
            - 9a8b7c6d-5e4f-4a3b-8c1d-0e9f8a7b6c5d
        sortOrder:
          type: integer
          description: Position of the SKU in the grid.
          example: 0
        price:
          type: string
          nullable: true
          description: Unit price as a decimal string, in the organizer's default
            currency. Null until the SKU is priced.
          example: "24.00"
        tracksStock:
          type: boolean
          description: Whether stock is counted for this SKU. When `false` it sells
            without limit.
          example: true
        stockQuantity:
          type: integer
          nullable: true
          description: Units on hand. Read-only; it changes through the stock actions,
            sales and returns. Null until stock is first added. Units held in
            unconfirmed orders are not subtracted here.
          example: 12
        isEnabled:
          type: boolean
          description: Whether the SKU is on sale. Can't be `true` while `price` is null.
            New SKUs start disabled.
          example: true
        imageId:
          type: string
          format: uuid
          nullable: true
          description: The SKU's own image, chosen from the product's images. Null means
            the product's first image is shown.
          example: 3c4d5e6f-7a8b-4c9d-8e1f-2a3b4c5d6e7f
        extraFields:
          type: array
          description: Questions the buyer answers when buying this SKU.
          items:
            $ref: "#/components/schemas/retailExtraField"
    retailSkuWrite:
      type: object
      description: >
        Writable settings of a SKU. All are optional. The combination
        (`attributeValueIds`) comes from the generate endpoint and
        `stockQuantity` from the stock actions, so neither is writable. When
        `extraFields` is present it replaces the whole question set: entries
        with an `id` are updated, entries without one are created, and questions
        left out are removed.
      properties:
        skuCode:
          type: string
          maxLength: 64
          nullable: true
          description: Your own stock-keeping code for this SKU.
          example: TSHIRT-RED-M
        sortOrder:
          type: integer
          description: Position of the SKU in the grid.
          example: 0
        price:
          type: string
          nullable: true
          description: Unit price as a decimal string (a number is accepted too), in the
            organizer's default currency.
          example: "24.00"
        tracksStock:
          type: boolean
          description: Count stock for this SKU (`true`) or sell it without limit (`false`).
          example: true
        isEnabled:
          type: boolean
          description: Put the SKU on sale. Rejected while the SKU has no price.
          example: true
        imageId:
          type: string
          format: uuid
          nullable: true
          description: One of the product's images. Null clears it.
          example: 3c4d5e6f-7a8b-4c9d-8e1f-2a3b4c5d6e7f
        extraFields:
          type: array
          description: Questions the buyer answers when buying this SKU.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: UUID of an existing question of this SKU (or of one removed
                  earlier, which brings it back). Omit to create a new question.
                  An id from another SKU returns 400
                  (`RETAIL_EXTRA_FIELD_UNAVAILABLE`).
                example: aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f
              name:
                $ref: "#/components/schemas/experienceMultilangText"
              sortOrder:
                type: integer
                description: Order the questions are asked in. Defaults to 0.
                example: 0
              fieldType:
                type: string
                enum:
                  - QUESTION
                  - CHECKBOX
                description: Defaults to `QUESTION`. Any other type returns 400
                  (`RETAIL_EXTRA_FIELD_TYPE_UNSUPPORTED`).
                example: QUESTION
              required:
                type: boolean
                description: Whether the question must be answered before the order can be
                  confirmed. Defaults to `false`.
                example: false
    paginatedRetailSkus:
      type: object
      description: Standard paginated envelope for SKUs.
      properties:
        count:
          type: integer
          description: Total number of SKUs.
          example: 6
        next:
          type: string
          format: uri
          description: URL of the next page, or null on the last page.
          example: null
          nullable: true
        previous:
          type: string
          format: uri
          description: URL of the previous page, or null on the first page.
          example: null
          nullable: true
        results:
          type: array
          description: SKUs on this page.
          items:
            $ref: "#/components/schemas/retailSku"
    retailSkuStorefront:
      type: object
      description: A SKU as shoppers see it on the product's detail. Only enabled,
        priced SKUs are listed.
      properties:
        id:
          type: string
          format: uuid
          description: SKU UUID. Send it as `retailSkuId` to buy this SKU on an order.
          example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
        skuCode:
          type: string
          nullable: true
          description: The seller's stock-keeping code for this SKU.
          example: TSHIRT-RED-M
        attributeValueIds:
          type: array
          description: The variation values this SKU is made of; match them against
            `retailAttributes` to label it.
          items:
            type: string
            format: uuid
          example:
            - 9a8b7c6d-5e4f-4a3b-8c1d-0e9f8a7b6c5d
        sortOrder:
          type: integer
          description: Display position.
          example: 0
        price:
          type: string
          description: Unit price as a decimal string, in the organizer's default currency.
          example: "24.00"
        availableQuantity:
          type: integer
          nullable: true
          description: Units available to buy now (on hand minus units held in unconfirmed
            orders). Null means unlimited.
          example: 3
        extraFields:
          type: array
          description: Questions the buyer answers when buying this SKU.
          items:
            $ref: "#/components/schemas/retailExtraField"
        imageUrl:
          type: string
          format: uri
          nullable: true
          description: The SKU's own image, or null when it has none.
          example: https://images.example.com/tshirt-red.jpg
    retailSkuGenerateResponse:
      type: object
      description: Result of building the SKU grid.
      properties:
        summary:
          type: object
          description: What the call changed.
          properties:
            created:
              type: integer
              description: New combinations, created disabled and unpriced.
              example: 2
            revived:
              type: integer
              description: Combinations that came back, with their earlier settings.
              example: 1
            deactivated:
              type: integer
              description: SKUs whose combination no longer exists, taken out of the grid.
              example: 0
            unchanged:
              type: integer
              description: SKUs left as they were.
              example: 4
        skus:
          type: array
          description: Every SKU of the product after the call.
          items:
            $ref: "#/components/schemas/retailSku"
    retailSkuBulkUpdateRequest:
      type: object
      description: Send either `ids` with `patch`, or `updates`. Both shapes, neither,
        or an empty list returns 400.
      properties:
        ids:
          type: array
          maxItems: 500
          description: SKUs to apply the shared `patch` to.
          items:
            type: string
            format: uuid
          example:
            - 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
        patch:
          allOf:
            - $ref: "#/components/schemas/retailSkuWrite"
          description: The patch applied to every SKU in `ids`.
        updates:
          type: array
          maxItems: 500
          description: One patch per SKU.
          items:
            type: object
            required:
              - id
              - patch
            properties:
              id:
                type: string
                format: uuid
                description: UUID of a SKU of this product.
                example: 3b241101-e2bb-4255-8caf-4136c566a962
              patch:
                $ref: "#/components/schemas/retailSkuWrite"
    retailSkuBulkResults:
      type: object
      description: Outcome per SKU of a bulk update.
      properties:
        results:
          type: array
          description: One entry per requested id, in request order.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: The SKU this result is for.
                example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
              status:
                type: string
                enum:
                  - ok
                  - error
                description: Whether this SKU was saved.
                example: ok
              error:
                type: object
                description: Present only when `status` is `error`, in the standard error
                  envelope.
                properties:
                  type:
                    type: string
                    example: validation_error
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          example: RETAIL_SKU_PRICE_REQUIRED
                        field:
                          type: string
                          nullable: true
                          example: is_enabled
                        message:
                          type: string
                          example: Cannot enable a SKU without a price.
                        attr:
                          type: string
                          nullable: true
                          example: is_enabled
    retailStockMovement:
      type: object
      description: One entry in a SKU's stock ledger.
      properties:
        id:
          type: string
          format: uuid
          description: Entry UUID.
          example: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a
        delta:
          type: integer
          description: Change to the on-hand count; positive for a restock or return,
            negative for a sale or removal.
          example: -1
        reason:
          type: string
          enum:
            - RESTOCK
            - MANUAL_REMOVAL
            - SALE
            - REFUND_RETURN
            - CORRECTION
          description: Why the stock moved.
          example: SALE
        actorName:
          type: string
          nullable: true
          description: Account that made a manual movement. Null for sales and returns.
          example: Hotel Example Shop
        retailItemId:
          type: string
          format: uuid
          nullable: true
          description: The retail item a `SALE` or `REFUND_RETURN` entry came from.
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        note:
          type: string
          nullable: true
          description: Note recorded with a manual movement.
          example: Delivery from supplier
        createdAt:
          type: string
          format: date-time
          description: When the movement was recorded.
          example: 2026-07-15T09:12:00Z
    paginatedRetailStockMovements:
      type: object
      description: Standard paginated envelope for stock ledger entries, newest first.
      properties:
        count:
          type: integer
          description: Total number of entries.
          example: 34
        next:
          type: string
          format: uri
          description: URL of the next page, or null on the last page.
          example: null
          nullable: true
        previous:
          type: string
          format: uri
          description: URL of the previous page, or null on the first page.
          example: null
          nullable: true
        results:
          type: array
          description: Ledger entries on this page.
          items:
            $ref: "#/components/schemas/retailStockMovement"
    retailStockActionRequest:
      type: object
      description: Units to add to or remove from a SKU's on-hand stock.
      required:
        - quantity
      properties:
        quantity:
          type: integer
          minimum: 1
          description: Number of units. Always positive; the endpoint sets the direction.
          example: 20
        note:
          type: string
          maxLength: 255
          nullable: true
          description: Optional note stored on the ledger entry.
          example: Delivery from supplier
    retailStockActionResponse:
      type: object
      description: The ledger entry just recorded and the SKU's on-hand count after it.
      properties:
        movement:
          $ref: "#/components/schemas/retailStockMovement"
        stockQuantity:
          type: integer
          description: Units on hand after the movement.
          example: 32
    retailVoucherConfig:
      type: object
      description: Redemption rules of a gift voucher product.
      properties:
        redemptionsPerUnit:
          type: integer
          minimum: 1
          description: How many uses one voucher grants. One use covers one booking.
          example: 5
        scopeExperienceIds:
          type: array
          description: The experiences the voucher can be redeemed against.
          items:
            type: string
            format: uuid
          example:
            - 0d4dbb2e-8a51-4a4b-9d3e-6f2b7c1a9e55
        includesAddon:
          type: boolean
          description: Whether a redeemed booking may include one add-on of its option at
            no charge.
          example: false
    retailVoucherConfigWrite:
      type: object
      description: Redemption rules to store. Replaces any existing rules.
      required:
        - scopeExperienceIds
      properties:
        redemptionsPerUnit:
          type: integer
          minimum: 1
          description: How many uses one voucher grants. Defaults to 1.
          example: 5
        scopeExperienceIds:
          type: array
          description: Experiences the voucher can be redeemed against. Each must be one
            of your own active, bookable experiences. An empty list is accepted,
            but the voucher can't be activated without one.
          items:
            type: string
            format: uuid
          example:
            - 0d4dbb2e-8a51-4a4b-9d3e-6f2b7c1a9e55
        includesAddon:
          type: boolean
          description: Whether a redeemed booking may include one add-on of its option.
            Defaults to `false`.
          example: false
    retailVoucherLookup:
      type: object
      description: What a gift voucher code covers, read live.
      properties:
        voucherCode:
          type: string
          description: The code that was looked up.
          example: 7WF4MRY2KC8N
        voucherName:
          type: object
          description: Name of the voucher product, as a per-language object (not resolved
            by `language`).
          additionalProperties:
            type: string
          example:
            en: Spa day gift voucher
        voucherSourceLanguage:
          type: string
          nullable: true
          description: Language the product's content was written in, when known.
          example: en
        allowedUses:
          type: integer
          description: Total uses the voucher grants.
          example: 5
        remainingUses:
          type: integer
          description: Uses left. Uses held by unconfirmed orders count as used.
          example: 3
        includesAddon:
          type: boolean
          description: Whether a redeemed booking may include one add-on of its option.
          example: false
        scopeExperiences:
          type: array
          description: The experiences the voucher can be redeemed against right now.
          items:
            type: object
            properties:
              id:
                type: string
                format: uuid
                description: Experience UUID.
                example: 0d4dbb2e-8a51-4a4b-9d3e-6f2b7c1a9e55
              name:
                type: object
                description: Experience name, as a per-language object.
                additionalProperties:
                  type: string
                example:
                  en: Sunset Kayak Tour
              sourceLanguage:
                type: string
                nullable: true
                description: Language the experience's content was written in, when known.
                example: en
        redemptions:
          type: array
          description: Uses already spent, newest first. No booking or traveler details
            are included.
          items:
            type: object
            properties:
              experienceName:
                type: object
                description: Name of the redeemed experience, as a per-language object.
                additionalProperties:
                  type: string
                example:
                  en: Sunset Kayak Tour
              sourceLanguage:
                type: string
                nullable: true
                description: Language the experience's content was written in, when known.
                example: en
              date:
                type: string
                format: date-time
                nullable: true
                description: When the redeemed booking takes place.
                example: 2026-08-02T10:00:00Z
              status:
                type: string
                description: Status of the redeemed booking.
                example: ACCEPTED
    retailItem:
      type: object
      description: A retail or gift voucher line of an order, with the purchased SKU,
        the buyer and the money.
      properties:
        id:
          type: string
          format: uuid
          description: Line UUID.
          example: 7d1e2f3a-4b5c-4d6e-8f9a-0b1c2d3e4f5a
        orderId:
          type: string
          format: uuid
          description: UUID of the order the line belongs to.
          example: 0f47ac10-b58c-4372-a567-0e02b2c3d479
        retailCode:
          type: string
          description: Short reference for the line (10 characters). Usable in place of
            the UUID in `/v2/retail-items/{id}` and as a filter. It is not a
            gift voucher code.
          example: 3HCX9KPT2L
        retailSkuId:
          type: string
          format: uuid
          description: UUID of the purchased SKU.
          example: 8f14e45f-ceea-4e5b-b0d4-9f3c1a2b3c4d
        skuCode:
          type: string
          nullable: true
          description: The purchased SKU's stock-keeping code.
          example: TSHIRT-RED-M
        experienceId:
          type: string
          format: uuid
          description: UUID of the retail product.
          example: 0d4dbb2e-8a51-4a4b-9d3e-6f2b7c1a9e55
        experience:
          type: object
          description: The retail product, in the experience read shape without the fields
            that only bookable experiences have (options, participant types,
            meeting points, booking type).
        quantity:
          type: integer
          description: Units bought. Always 1 on a gift voucher line.
          example: 2
        imageUrl:
          type: string
          format: uri
          nullable: true
          description: The SKU's image, or the product's first image when the SKU has none.
          example: https://images.example.com/tshirt-red.jpg
        variantLabels:
          type: array
          description: Labels of the purchased SKU's variation values, in axis order, in
            the line's language. Empty for a product without variations.
          items:
            type: string
          example:
            - Red
            - M
        finalPrice:
          allOf:
            - $ref: "#/components/schemas/orderMoney"
          description: What the buyer pays for the line (unit price times quantity, minus
            any concierge discount).
        netRate:
          allOf:
            - $ref: "#/components/schemas/orderMoney"
          description: What the product's organizer receives for the line (line total
            minus commission).
        status:
          type: string
          enum:
            - ON_HOLD
            - PAID
            - DELIVERED
            - CANCELLED
            - EXPIRED
            - REMOVED
          description: "`ON_HOLD` while the order is unconfirmed; `PAID` once it is
            confirmed; `DELIVERED` after you mark it delivered; `CANCELLED`
            after a cancellation. `EXPIRED` means the order's hold ran out,
            `REMOVED` that the line was taken out of the order."
          example: PAID
        paidAt:
          type: string
          format: date-time
          nullable: true
          description: When the order was confirmed. Retail has no service date, so
            reporting uses this.
          example: 2026-07-15T09:12:00Z
        payment:
          $ref: "#/components/schemas/orderBookingPayment"
        cancellation:
          allOf:
            - $ref: "#/components/schemas/bookingCancellation"
          description: Cancellation details (`cancelledBy`, `cancelledAt` in UTC,
            `cancelledReason`, `cancellationFeeAmount`,
            `cancellationFeeCurrency`). Null unless the line is `CANCELLED`.
        reseller:
          type: object
          nullable: true
          description: The selling partner, enriched with the store and agent attribution
            captured at checkout.
        resellerProperty:
          type: object
          nullable: true
          description: The property (hotel) the sale is attributed to, or null.
        language:
          type: string
          nullable: true
          description: Language of the buyer's checkout, used for emails and labels.
          example: en
        travelerInformation:
          allOf:
            - $ref: "#/components/schemas/orderTravelerInformation"
          type: object
          nullable: true
          description: The buyer's details, from the order. Retail lines have no traveler
            of their own.
        conciergeDiscount:
          type: object
          nullable: true
          description: Discount applied to the line at checkout, as `{amount, currency,
            note}`, or null.
          example: null
        allowedUses:
          type: integer
          nullable: true
          description: Total uses a gift voucher line grants. Null on other lines.
          example: 5
        remainingUses:
          type: integer
          nullable: true
          description: Uses a gift voucher line has left; 0 unless the line is `PAID`.
            Null on other lines.
          example: 3
        voucherCode:
          type: string
          nullable: true
          description: The gift voucher code. Returned only by the `/v2/retail-items`
            endpoints, so the buyer of a gift never sees it on the order; the
            holder receives it by email. Null on other lines.
          example: 7WF4MRY2KC8N
        recipientEmail:
          type: string
          format: email
          nullable: true
          description: Gift recipient of a voucher. The voucher email goes here instead of
            to the buyer.
          example: recipient@guest.example
        recipientName:
          type: string
          nullable: true
          description: Name of the gift recipient.
          example: Alex Example
        extraFieldResponses:
          type: object
          nullable: true
          description: The buyer's answers to the SKU's questions, keyed by question UUID.
          example:
            aa1bb2cc-3dd4-4ee5-9ff6-0a1b2c3d4e5f: Happy birthday!
        createdAt:
          type: string
          format: date-time
          description: When the line was added to the order.
          example: 2026-07-15T09:05:00Z
    paginatedRetailItems:
      type: object
      description: Standard paginated envelope for retail items.
      properties:
        count:
          type: integer
          description: Total number of matching lines.
          example: 128
        next:
          type: string
          format: uri
          description: URL of the next page, or null on the last page.
          example: https://api.turneo.co/v2/retail-items?page=2&page_size=50
          nullable: true
        previous:
          type: string
          format: uri
          description: URL of the previous page, or null on the first page.
          example: null
          nullable: true
        results:
          type: array
          description: Retail items on this page.
          items:
            $ref: "#/components/schemas/retailItem"
    retailItemCancelRequest:
      type: object
      description: Optional cancellation details. An empty body cancels with a full refund.
      properties:
        cancellationFeeAmount:
          type: number
          minimum: 0
          default: 0
          description: Amount kept from the line price. Can't exceed the price; a fee
            equal to the price cancels without a refund.
          example: 5
        cancelledReason:
          type: string
          nullable: true
          description: Free-text reason stored with the cancellation.
          example: Out of stock
    retailItemRefundRequest:
      type: object
      description: Optional fee for a refund retry. An empty body keeps the fee
        recorded at cancellation.
      properties:
        cancellationFeeAmount:
          type: number
          description: Fee to keep instead of the one recorded at cancellation. The refund
            (line price minus fee) must be positive.
          example: 5
  responses:
    badRequest:
      description: Validation failed. Inspect `errors[].field` and `errors[].code`.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/error"
    unauthorized:
      description: Missing or invalid `X-API-Key` header.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/error"
    forbidden:
      description: The API key is valid but not allowed to perform this action on this
        resource.
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/error"
    notFound:
      description: The resource does not exist or belongs to another partner
        (existence is not leaked across partners).
      content:
        application/json:
          schema:
            $ref: "#/components/schemas/error"
