> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gojinko.com/llms.txt
> Use this file to discover all available pages before exploring further.

# checkout

> Checkout a trip, returns a checkout URL the user opens to pay, plus the Shared Payment Token params an agent can use to pay programmatically

Starts pricing when no valid quote exists and waits server-side for up to about 55 seconds. If the quote is still being priced, answers 503 QUOTE\_PENDING with Retry-After; calling checkout again picks up the same quote. A successful response contains the quoted prices and checkout details; no GET trip polling is required first. An offer that ran out may be found again and priced, and `price_changed` on the item reports a moved price. 410 OFFER\_EXPIRED means the product can no longer be found, even when no quote has ever succeeded. Search again and replace the item. QUOTE\_EXPIRED instead describes an established quote that can no longer be used: its deadline passed, or the trip's travelers changed after it was priced (`reason: travelers_changed`). Call checkout again to re-quote. `status: partial` means some items could not be priced: each carries `quote_status: failed`, and the trip cannot be paid until they are replaced or removed. For card payments, `collector` identifies who charges the card (Jinko or the supplier), and `submit_url` is the payment hostname endpoint to POST the card to; cards are refused on this API.


## OpenAPI

````yaml api-reference/public-api.yaml POST /v1/checkout
openapi: 3.0.0
info:
  title: Jinko Public API
  version: 0.125.0
  description: >-
    Curated public REST surface for Jinko. Authenticated with jnk_ API keys. See
    https://docs.gojinko.com for guides.


    ### Per-end-user attribution


    On booking calls you may send an optional `X-End-User-Id` request header to
    attribute the booking to one of your own end users (for per-end-user
    attribution and rate-limiting). The value is an **opaque, tenant-scoped**
    identifier that you choose — not a Jinko account id. Omit it to book as the
    tenant. Values prefixed `user_` or `org_` are rejected.
servers:
  - url: https://api.gojinko.com
    description: Production
  - url: https://api.sandbox.gojinko.com
    description: Sandbox
security: []
paths:
  /v1/checkout:
    post:
      tags:
        - Pricing & booking
      summary: >-
        Checkout a trip — returns a checkout URL the user opens to pay, plus the
        Shared Payment Token params an agent can use to pay programmatically
      description: >-
        Starts pricing when no valid quote exists and waits server-side for up
        to about 55 seconds. If the quote is still being priced, answers 503
        QUOTE_PENDING with Retry-After; calling checkout again picks up the same
        quote. A successful response contains the quoted prices and checkout
        details; no GET trip polling is required first. An offer that ran out
        may be found again and priced, and `price_changed` on the item reports a
        moved price. 410 OFFER_EXPIRED means the product can no longer be found,
        even when no quote has ever succeeded. Search again and replace the
        item. QUOTE_EXPIRED instead describes an established quote that can no
        longer be used: its deadline passed, or the trip's travelers changed
        after it was priced (`reason: travelers_changed`). Call checkout again
        to re-quote. `status: partial` means some items could not be priced:
        each carries `quote_status: failed`, and the trip cannot be paid until
        they are replaced or removed. For card payments, `collector` identifies
        who charges the card (Jinko or the supplier), and `submit_url` is the
        payment hostname endpoint to POST the card to; cards are refused on this
        API.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CheckoutRequest'
      responses:
        '200':
          description: 'Checkout result: the priced trip and how to pay for it'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutResponse'
        '400':
          description: >-
            The request was refused. Invalid traveller names are refused with
            `BAD_REQUEST` and `error.field` naming the traveller.
            **`BAD_REQUEST`** — The request was malformed or failed validation.
            Fix the request as the message describes; retrying it unchanged
            cannot succeed. **`CURRENCY_UNSUPPORTED`** — The requested currency
            is not supported for this operation. Re-run the search in a
            supported currency. Agent payment supports `USD` or `EUR`, depending
            on the partner's Stripe account binding; a trip in a currency the
            partner does not accept carries no `agent_spt_params`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: AUTH_REQUIRED
                  message: Invalid or expired API key.
                  doc_url: https://docs.gojinko.com/authentication/api-keys
        '402':
          description: Payment required — organization balance exhausted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: PAYMENT_REQUIRED
                  message: >-
                    Insufficient balance — this call costs $0.0150 and your
                    organization has $0.0000 available. Top up at
                    https://dashboard.gojinko.com/developers/billing/topup
                  doc_url: https://docs.gojinko.com/concepts/errors
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: NOT_FOUND
                  message: Resource not found.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '409':
          description: >-
            The checkout could not proceed against the current state of the
            trip. Tell the causes apart by `error.code`. **`CONFLICT`** — The
            resource's current state refuses the operation. Re-read the resource
            and act on what it says — never retry blindly. **`TRIP_EXPIRED`** —
            The trip lapsed under a limit that no longer applies and accepts no
            more writes. Start a new trip and add the items again. A lapsed trip
            cannot be revived. **`TRIP_STATE_CONFLICT`** — The trip is in a
            state that refuses this operation: payment already started
            (`fulfilling`, `fulfilled`, `partially_fulfilled`), or it is
            `cancelled` or `failed`. Read `status` and act on it: read the trip
            to find the booking that already exists, or start a new trip.
            Nothing was written. **`OFFER_UNAVAILABLE`** — The provider can no
            longer quote this offer. Emitted today when the hotel supplier has
            no rate for your occupancy at quote time, and at checkout when a
            flight fare cannot be priced for the trip's travellers: the fare is
            not sold for them, or the airline declines to price it. Search again
            for the occupancy or the travellers you intend to book and pick an
            offer that covers them; this one cannot be quoted at any price.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/TripStateResponse'
                  - $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: CONFLICT
                  message: >-
                    The checkout could not proceed against the current state of
                    the trip.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '410':
          description: >-
            The selected offer could not be priced, the established quote can no
            longer be used (`QUOTE_EXPIRED`, with `reason: travelers_changed`
            when the trip's travelers changed after it was priced), or another
            resource the request names is gone. Tell the causes apart by
            `error.code`. **`OFFER_EXPIRED`** — The search offer is no longer
            usable: its token expired, or the supplier rejected it as expired or
            missing during pricing and the same product could not be found
            again. No payable quote was established. Search again, replace the
            unavailable item using the latest search result, and check out
            promptly. Show that the flight offer is no longer available; do not
            describe this as an established quote expiring (QUOTE_EXPIRED).
            **`GONE`** — The resource this request names existed and no longer
            does. Re-acquire it — search again, or check out again to re-quote —
            then retry with the new identifier. Repeating this request with the
            same one cannot succeed. **`QUOTE_EXPIRED`** — The quote can no
            longer be paid, so payment was refused before any payment object was
            created: it passed its `expires_at`, the trip's travelers changed
            after it was priced (`reason: travelers_changed`; `expires_at` is
            then the refusal instant), it could not price every item of the trip
            (`reason: partial_quote`), or an item was added to the trip or
            removed from it after it was priced (`reason: items_changed`;
            `expires_at` is then the refusal instant). A typed payment refused
            this way also carries `payment_error` and `recovery`. Call `POST
            /v1/checkout` again on the same trip — it re-quotes — then mint a
            new Shared Payment Token against the new `agent_spt_params` and
            submit that against the new `quote_id`. With `reason:
            partial_quote`, first replace or remove the items whose
            `quote_status` is `failed`. With `reason: items_changed`, the new
            quote prices the items the trip holds now: get the traveler to
            approve the new total before paying. Nothing was charged.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/QuoteExpiredResponse'
                  - $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: >-
            The trip is not complete enough to check out. Tell the causes apart
            by `error.code`. **`BAD_REQUEST`** — The request was malformed or
            failed validation. Fix the request as the message describes;
            retrying it unchanged cannot succeed. **`MISSING_CUSTOMER_DETAILS`**
            — The trip is missing details the booking needs: no travelers, a
            contact without both an email and a phone, or passenger documents a
            carrier requires (see `required_attributes` on the trip item). Send
            `upsert_travelers` with the travelers, a contact, and the fields
            named in `missing_fields`, then check out again.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/MissingCustomerDetailsResponse'
                  - $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: MISSING_CUSTOMER_DETAILS
                  message: >-
                    the provider requires details this booking has not collected
                    — flight: passport_number, passport_expiry,
                    passport_country, nationality
                  doc_url: https://docs.gojinko.com/concepts/errors
                missing_fields:
                  - nationality
                  - passport_country
                  - passport_expiry
                  - passport_number
                missing_by_domain:
                  flight:
                    - passport_number
                    - passport_expiry
                    - passport_country
                    - nationality
        '429':
          description: Rate limit or quota exceeded
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying. Absent when no interval
                applies.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: RATE_LIMITED
                  message: Too many requests. Retry after the Retry-After delay.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '502':
          description: The travel provider rejected the request, or an upstream call failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: UPSTREAM_REJECTED
                  message: The request was declined for this offer. Try another offer.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '503':
          description: >-
            The quote is still being priced, or an upstream service is
            unavailable. **`QUOTE_PENDING`** — The trip's quote is still being
            priced. Call `POST /v1/checkout` again after the interval in
            `Retry-After`; the call picks up the same quote and answers with the
            checkout once it is priced. **`UPSTREAM_UNAVAILABLE`** — No provider
            can serve the request right now, for a reason that is not the
            request. Retry unchanged after the interval in `Retry-After`.
          headers:
            Retry-After:
              description: >-
                Seconds to wait before calling checkout again to pick up the
                same quote.
              schema:
                type: string
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - type: object
                    properties:
                      retry_after_seconds:
                        type: integer
                        minimum: 0
                        exclusiveMinimum: true
                      quote_id:
                        type: string
                        description: >-
                          The quote being priced; checkout called again picks up
                          the same one.
                        example: '2097152'
                      quoted_cart_id:
                        type: number
                        description: >-
                          Deprecated: use `quote_id` instead. The same quote as
                          an integer.
                        deprecated: true
        '504':
          description: >-
            The upstream service did not answer before the deadline.
            **`UPSTREAM_TIMEOUT`** — A travel provider did not answer in time.
            Retry a read unchanged. Before repeating a request that changes
            something, read the resource's state because the operation may still
            have completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    CheckoutRequest:
      type: object
      properties:
        trip_id:
          type: string
          example: trip_1048576
        intent:
          $ref: '#/components/schemas/IntentInput'
      required:
        - trip_id
    CheckoutResponse:
      type: object
      properties:
        quote_id:
          type: string
          description: >-
            The quote this checkout priced. Pass it as `quote_id` to the typed
            agent payment, or to the MCP `submit_agent_payment`, to pay exactly
            this quote. A quote whose checkout answered `status: partial` cannot
            be paid: replace or remove the failed items and check out again.
          example: '2097152'
        quoted_cart_id:
          type: integer
          description: 'Deprecated: use `quote_id` instead. The same quote as an integer.'
          deprecated: true
        accepted_payment_types:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                enum:
                  - spt
                  - card
              card_kinds:
                type: array
                items:
                  type: string
                  enum:
                    - customer_card
                    - vcc
              collector:
                type: string
                enum:
                  - jinko
                  - supplier
                description: >-
                  Who charges the card: Jinko (merchant of record) or the
                  supplier (channel mode).
              submit_url:
                type: string
                format: uri
                description: >-
                  Where to POST the card submission; cards are refused on this
                  API.
              requires:
                type: object
                properties:
                  headers:
                    type: array
                    items:
                      type: string
                  fields:
                    type: array
                    items:
                      type: string
                required:
                  - headers
                  - fields
              authentication:
                type: string
                enum:
                  - customer_handoff
                  - unavailable
            required:
              - type
              - requires
              - authentication
        session_id:
          type: string
          description: >-
            The hosted payment page session behind `checkout_url`. Nothing on
            this API takes it; send the traveler to `checkout_url`.
          example: cs_1048576
        checkout_url:
          type: string
          description: >-
            The Jinko page where the traveler pays. Absent when `status` is
            `partial`: the trip cannot be paid until the items that could not be
            priced are replaced or removed.
          example: https://app.gojinko.com/checkout?t=<signed token>
        status:
          type: string
          description: >-
            Checkout state. `ready` — every item is priced and the trip can be
            paid. `partial` — some items could not be priced: each of them
            carries `quote_status: failed` and, when the cause is known, a
            `failure_reason`. The trip cannot be paid: the response carries no
            `checkout_url`, no `agent_spt_params`, no `accepted_payment_types`
            entries and no `expires_at`, and a payment is refused with **410
            `QUOTE_EXPIRED`** and `reason: partial_quote`. Replace or remove the
            failed items, then call checkout again; after `provider_error`,
            calling checkout again on the unchanged trip prices the item again.
            A trip that is still pricing, or whose pricing failed entirely, is
            answered with an error instead of a status.
          example: ready
        expires_at:
          type: string
          description: >-
            When the quote behind this checkout lapses (RFC 3339). At most one
            hour from the call, and earlier when an offer in the trip carries a
            shorter deadline of its own (some airline fares last twenty minutes
            from their search). It is NOT a price hold: the supplier guarantees
            neither the price nor availability for the window, so an offer can
            lapse inside it. Nor is it the lifetime of `checkout_url`, which
            works for 7 days, or until 48 hours after the trip's booking ended
            when that comes first; `POST /v1/checkout` on the same trip gives a
            new link. With `payment_stays_open`, a payment is taken after this
            instant and the price and the product are checked again after it. If
            both held, the booking goes ahead. If the price dropped, the lower
            price is booked and charged, and `price_change` on
            `booking.completed` says so. If the price rose or the product is
            gone, nothing is booked or charged, and `booking.failed` says why.
            Without it, a payment after this instant is refused: `POST
            /v1/agent_payment/submit` answers **410 `QUOTE_EXPIRED`** and no
            payment object is created. To recover, call `POST /v1/checkout`
            again on the same trip, and pay against the new `expires_at`. The
            hosted page then shows the price as expired, and the customer has to
            be sent a fresh checkout. A quote can also stop being payable before
            this instant if the trip's travelers change after pricing: payment
            is then refused with **410 `QUOTE_EXPIRED`** and `reason:
            travelers_changed`. The same holds when an item is added to the trip
            or removed from it after pricing (`reason: items_changed`). Absent
            when `status` is `partial`: that trip cannot be paid.
          example: '2026-06-01T12:39:56Z'
        payment_stays_open:
          type: boolean
          description: >-
            True when a payment of any type is still taken after `expires_at`,
            because the price and the product are checked after payment. Absent
            means a payment after `expires_at` is refused with 410
            `QUOTE_EXPIRED`.
          example: true
        payment_type:
          type: string
          enum:
            - intent
            - checkout
            - agent
          description: >-
            Which payment rail this trip is on. None of the values means payment
            has been collected: checkout only prices the trip, and you must
            still act to get it paid. `intent` — nothing has been charged or
            authorized yet; this is what a trip created through this API
            returns. Send the traveler to `checkout_url` to pay on the Jinko
            checkout page, or pay programmatically with POST
            /v1/agent_payment/submit using a type listed in
            `accepted_payment_types`. `checkout` — a payment page is already
            open for this trip; send the traveler to `checkout_url` to complete
            it. `agent` — a programmatic payment was already submitted for this
            quote through POST /v1/agent_payment/submit; check its outcome
            before submitting again. To choose how to pay, read
            `accepted_payment_types` and `agent_spt_params`, not this field.
          example: intent
        total_amount:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `total_amount_money` instead. The trip total in
                major currency units.
              deprecated: true
        total_amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: The trip total the checkout is priced at.
        items:
          type: array
          items:
            $ref: '#/components/schemas/TripItem'
        agent_spt_params:
          $ref: '#/components/schemas/AgentSPTParams'
      required:
        - quote_id
        - quoted_cart_id
        - accepted_payment_types
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - INVALID_SEGMENTS_TO_EXCHANGE
                - PARTIAL_EXCHANGE_UNSUPPORTED
                - LEG_ALREADY_DEPARTED
                - DEPARTURE_DATE_IN_PAST
                - LEG_DATES_OUT_OF_ORDER
                - INVALID_EXCHANGE_REQUEST
                - NOT_EXCHANGEABLE
                - CREDENTIAL_FORMAT_INVALID
                - PAYMENT_TYPE_NOT_ENABLED
                - PAYMENT_CREDENTIAL_INVALID
                - TRIP_OWNED_BY_OTHER_PAYMENT
                - IDEMPOTENCY_KEY_REUSED
                - ATTEMPT_IN_PROGRESS
                - ATTEMPT_TERMINAL
                - TEMPORARILY_UNAVAILABLE
                - AUTH_REQUIRED
                - PAYMENT_REQUIRED
                - RATE_LIMITED
                - BAD_REQUEST
                - FORBIDDEN
                - NOT_FOUND
                - CONFLICT
                - GONE
                - QUOTE_PENDING
                - QUOTE_EXPIRED
                - TRIP_EXPIRED
                - TRIP_STATE_CONFLICT
                - OFFER_EXPIRED
                - OFFER_UNAVAILABLE
                - MISSING_CUSTOMER_DETAILS
                - INVALID_PHONE_NUMBER
                - INVALID_FLIGHT_NUMBER
                - CURRENCY_UNSUPPORTED
                - HOTEL_NAME_LOW_CONFIDENCE
                - DESTINATION_LOW_CONFIDENCE
                - UPSTREAM_REJECTED
                - UPSTREAM_UNAVAILABLE
                - UPSTREAM_TIMEOUT
                - UPSTREAM_ERROR
                - INTERNAL
              description: >-
                What went wrong, as a stable machine-readable code. This is a
                closed set — branch on it rather than on `message`, which is
                prose and may change. New codes arrive in a minor version, so
                treat an unknown one as its HTTP status. A code can also stop
                being emitted: it leaves this set in a minor version, named in
                the changelog, and a branch you wrote for it goes unreached
                rather than wrong.
              example: BAD_REQUEST
            message:
              type: string
              description: >-
                What went wrong, in prose. These codes always carry the same
                message, and it never includes text from a supplier:
                `RATE_LIMITED` — "Too many requests. Retry after the Retry-After
                delay."; `OFFER_EXPIRED` — "This offer has expired. Search
                again."; `OFFER_UNAVAILABLE` — "This offer is no longer
                available. Search again."; `UPSTREAM_REJECTED` — "The request
                was declined for this offer. Try another offer.";
                `UPSTREAM_UNAVAILABLE` — "The service is temporarily
                unavailable. Retry after the Retry-After delay.";
                `UPSTREAM_TIMEOUT` — "The request timed out before a result was
                available. Retry the request."; `UPSTREAM_ERROR` — "The request
                could not be completed.".
            doc_url:
              type: string
            field:
              type: string
              description: >-
                On a 400 `BAD_REQUEST` that names one refused input: the path of
                that field in your request, e.g. `selections[1].quantity` for
                the second selection of a `select_ancillaries` call. Absent when
                the refusal names no single field.
              example: selections[1].quantity
          required:
            - code
            - message
      required:
        - error
    TripStateResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - TRIP_EXPIRED
                - TRIP_STATE_CONFLICT
            message:
              type: string
            doc_url:
              type: string
          required:
            - code
            - message
        status:
          type: string
          enum:
            - draft
            - quoting
            - quoted
            - fulfillment_prepared
            - fulfilling
            - fulfilled
            - partially_fulfilled
            - failed
            - cancelled
            - expired
          description: >-
            The trip state that refused the write. `expired` on TRIP_EXPIRED; on
            TRIP_STATE_CONFLICT it is whichever state the trip is actually in.
            Nothing was changed, so re-reading the trip returns this same state.
          example: expired
      required:
        - error
    QuoteExpiredResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - QUOTE_EXPIRED
            message:
              type: string
            doc_url:
              type: string
          required:
            - code
            - message
        expires_at:
          type: string
          description: >-
            The instant the refused quote expired (RFC 3339). For a deadline
            lapse this is the past deadline; when `reason` is
            `travelers_changed` or `items_changed` it is the instant of the
            refusal.
          example: '2026-09-04T12:39:56Z'
        quote_id:
          type: string
          description: >-
            The quote that was refused — the same `quote_id` the trip and
            checkout responses carry, so a caller holding several can tell which
            one this refusal is about.
          example: '2097152'
        quoted_cart_id:
          type: number
          description: 'Deprecated: use `quote_id` instead. The same quote as an integer.'
          example: 2097152
          deprecated: true
        reason:
          type: string
          enum:
            - travelers_changed
            - partial_quote
            - items_changed
          description: >-
            Why the quote cannot be paid when it is not a plain deadline lapse.
            `travelers_changed`: the trip's travelers changed after it was
            priced; call `POST /v1/checkout` again to re-quote, then pay against
            the new quote. `partial_quote`: the quote could not price every item
            of the trip (the checkout answered `status: partial`); replace or
            remove the items with `quote_status: failed`, then call `POST
            /v1/checkout` again and pay against the new quote. `items_changed`:
            an item was added to the trip or removed from it after the quote was
            priced, so the quote no longer prices the items the trip holds;
            nothing was charged. Call `POST /v1/checkout` again to price the
            current items, get the traveler to approve the new total, then pay
            against the new quote. Absent for a plain deadline lapse, whose
            recovery is to call checkout again.
          example: travelers_changed
      required:
        - error
    MissingCustomerDetailsResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - MISSING_CUSTOMER_DETAILS
            message:
              type: string
            doc_url:
              type: string
          required:
            - code
            - message
        missing_fields:
          type: array
          items:
            type: string
          description: >-
            Field names the booking still needs, in the trip traveler vocabulary
            (e.g. `passport_number`).
          example:
            - nationality
            - passport_country
            - passport_expiry
            - passport_number
        missing_by_domain:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: The same fields grouped by product domain (e.g. `flight`).
          example:
            flight:
              - passport_number
              - passport_expiry
              - passport_country
              - nationality
      required:
        - error
    IntentInput:
      type: object
      properties:
        user_intent:
          type: string
          nullable: true
          description: >-
            The user's natural-language intent: the Alpic PII-stripped
            paraphrase when available, else a best-effort fallback to the
            client-provided NL query.
          example: find a cheap flight to Tokyo
    Money:
      type: object
      properties:
        amount:
          type: number
          description: >-
            Deprecated: use `value` instead (the same integer) where this object
            carries decimal_places. Where it does not, the figure is in MAJOR
            units and the field holding this object is itself deprecated: read
            its `*_money` sibling. The two-scale rule applies only to deprecated
            fields. Alternative to `value` on some endpoints (the two never
            appear together); its scale depends on decimal_places. When this
            object carries decimal_places, amount is an INTEGER in minor units —
            divide by 10 ** decimal_places (e.g. select_ancillaries
            total_with_ancillaries). When there is no decimal_places field,
            amount is a decimal in MAJOR units, safe to display as-is (e.g. trip
            and checkout totals).
          deprecated: true
        value:
          type: integer
          description: >-
            Integer amount in MINOR units, always paired with decimal_places —
            divide by 10 ** decimal_places to display. Example: value 15977 with
            decimal_places 2 is 159.77 USD. Rendering this field directly shows
            prices 100x too high for 2-decimal currencies.
          example: 41250
        currency:
          type: string
          description: ISO 4217 currency code.
          example: USD
        decimal_places:
          type: integer
          description: >-
            Scale of the integer value/amount: display = integer / 10 **
            decimal_places. Always sent alongside minor-unit amounts. Usually
            the ISO 4217 digits of the currency (2 for USD/EUR/GBP, 0 for
            JPY/KRW, 3 for BHD/JOD/KWD) but currency-converted prices can carry
            a different scale — ALWAYS use the decimal_places sent with the
            amount, never a hardcoded 2. Only if the field is genuinely absent
            on a value-shaped object, fall back to the ISO digits for the
            currency.
          example: 2
        display:
          type: string
          description: >-
            The same figure as a string ready to show: the ISO 4217 code, a
            space, then the amount, e.g. "USD 159.77". With decimal_places it is
            written at exactly that scale (value 1561500, JPY, decimal_places 2
            is "JPY 15615.00"); without, at the ISO digits of the currency. Show
            this; compute with the number. Absent when the figure is not money
            (a cancellation step expressed as a percent or a number of nights)
            or could not be read unambiguously.
          example: USD 412.50
      description: >-
        A money figure in one of two scales. New integrations read the `*_money`
        field beside it (a `MoneyValue`) where there is one, and `value` on
        objects that carry it; the rule below applies only to the deprecated
        forms. When `decimal_places` is present, `value` (or the deprecated
        `amount`) is an INTEGER in minor units: divide by 10 ** decimal_places.
        When it is absent, the deprecated `amount` is already in MAJOR units.
        Branch on whether decimal_places is present in the response you
        received, never on the currency code or the field name. `display` is the
        same figure as a string to show.
    MoneyValue:
      type: object
      properties:
        value:
          type: integer
          description: >-
            Integer amount in MINOR units at the ISO 4217 digits of `currency`:
            divide by 10 ** decimal_places to get the amount. Signed where the
            field says so (a price change delta).
          example: 41250
        currency:
          type: string
          pattern: ^[A-Z]{3}$
          description: ISO 4217 currency code.
          example: USD
        decimal_places:
          type: integer
          description: >-
            The ISO 4217 digits of `currency` (2 for USD/EUR, 0 for JPY/KRW, 3
            for BHD/KWD), and the scale of `value`.
          example: 2
        display:
          type: string
          description: >-
            The same figure as a string ready to show: the ISO 4217 code, a
            space, then the amount at `decimal_places`, e.g. "USD 412.50". Show
            this; compute with `value`.
          example: USD 412.50
      required:
        - value
        - currency
        - decimal_places
        - display
      description: >-
        Money as every new field carries it: `value` is an INTEGER in minor
        units at the ISO 4217 digits of `currency` (`decimal_places`), and
        `display` is the same figure ready to show. All four members are always
        present; a figure the platform does not know is absent, never `{value:
        0}`. New integrations read the `*_money` fields (and `value` on the
        objects that carry it); the two-scale rule described on `Money` applies
        only to the deprecated fields.
    TripItem:
      type: object
      properties:
        collector:
          type: string
          enum:
            - jinko
            - supplier
          description: >-
            Who charges the card: Jinko (merchant of record) or the supplier
            (channel mode).
        item_id:
          type: string
          example: itm_4b91c2
        kind:
          type: string
          description: 'What the item is: "flight", "hotel", "car" or "ground".'
          example: flight
        offer_id:
          type: string
          description: >-
            Deprecated: use `trip_item_token` instead. The offer handle this
            item was created from, exactly as it was submitted to
            `trip(add_item)`. On a hotel item it is the `htl_…` rate token; on a
            flight item it is the `offer_id` of the search result the token came
            from. One caveat when reconciling: on a hotel whose occupancy the
            provider re-shopped, this stays the token you SUBMITTED even though
            the priced rate moved. A trip never holds two flights the same
            travellers cannot both take: adding a flight whose segments overlap
            a flight already in the trip, another fare of the same flights
            included, is refused with 409 naming the item already there.
          example: htl_2d67a7441c60e5de
          deprecated: true
        trip_item_token:
          type: string
          description: >-
            The handle `trip(add_item)` took, echoed verbatim. On a hotel or car
            item it is the offer’s `trip_item_token` from the search. On a
            flight item it is the itinerary id and the fare joined by a colon,
            absent when the fare half was never resolved (a caller-supplied
            snapshot skips the resolver); read that absence as "the platform
            cannot name the fare", never as a different fare.
          example: of_9c1d2e:FARE_ABC
        hotel_id:
          type: string
          description: >-
            The property this hotel item books — the same id `hotel_search`
            publishes, so an item joins straight back to the search result it
            came from. Hotel items only.
          example: lp1f2c3
        special_requests:
          type: array
          items:
            type: string
          description: >-
            The special requests submitted with `trip(add_item)` for this hotel
            item, as stored — trimmed, blank entries dropped — and forwarded to
            the hotel supplier at booking. Requests only — the hotel may not
            honour them, and a confirmed booking does not imply it will. Hotel
            items only; absent when none were given (JIN-2499).
        booking_scope:
          type: string
          description: >-
            `room_bundle` means the submitted hotel offer token covers every
            room in `rooms`. Absent on every other hotel item, a single room
            included: read `rooms` for the rooms an item covers, and
            `booking_scope` only to learn whether one token books them all.
          example: room_bundle
        num_rooms:
          type: integer
          minimum: 1
          description: >-
            Number of rooms this hotel item covers: 1 for a single room, the
            bundle size for a room bundle. Hotel items only; absent when the
            platform cannot state the party the item was priced for.
          example: 1
        rooms:
          type: array
          items:
            $ref: '#/components/schemas/HotelBundleRoom'
          description: >-
            One entry per room this hotel item covers, single room or bundle
            (JIN-2565). Each entry states in `occupancy` the party that room was
            priced for — adults and children’s ages — so a checkout page can
            show the guest who the rate is for before payment, and a wrong child
            age, which changes the price and the room, is caught before the
            money moves. On a single room the entry’s room, board, refundability
            and tax lines are the item’s own, the same figures `hotel_terms`
            states; on a room bundle each entry carries that room’s details from
            the supplier. The item price remains the authoritative customer
            total for every room together. Absent when the platform holds no
            party for the item.
        price:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `price_money` instead. Item total in major
                currency units. Absent until the trip has been quoted, and on an
                item with `quote_status: failed`.
              deprecated: true
        price_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                Item total. Absent until the trip has been quoted — an unpriced
                item carries no `price_money` key at all, so absence means "not
                priced yet", not "free". Also absent on an item with
                `quote_status: failed`, which could not be priced.
        quote_status:
          type: string
          enum:
            - completed
            - failed
          description: >-
            How pricing this item ended in the trip’s latest quote. `completed`:
            the item is priced and included in the total. `failed`: the item
            could not be priced; it has no price and is not in the total, and
            the trip cannot be paid while it holds the item — read
            `failure_reason`, then remove the item or search again and replace
            it, and call checkout again. Absent until the trip has been quoted,
            and while pricing is still running.
          example: completed
        failure_reason:
          type: string
          enum:
            - offer_expired
            - offer_unavailable
            - provider_error
          description: >-
            Why an item with `quote_status: failed` could not be priced, in the
            same terms as the quote’s `failure_reason`. offer_expired or
            offer_unavailable: search again and replace the item.
            provider_error: an upstream technical failure; retry checkout once.
            Absent on a priced item, and when the cause is not known.
          example: offer_expired
        pax_count:
          type: number
          example: 1
        available_ancillaries:
          type: array
          items:
            $ref: '#/components/schemas/AncillaryOffer'
          description: >-
            Ancillaries that can still be selected on this item. Empty once
            nothing is on offer; populated only after the item has been quoted.
        selected_ancillaries:
          type: array
          items:
            $ref: '#/components/schemas/SelectedAncillary'
          description: Ancillaries already selected on this item.
        price_changed:
          type: boolean
          description: >-
            True when the provider re-priced this item between the search
            snapshot and the live quote. Checkout PROCEEDS at the new `price` —
            show the change before taking payment. Read `price_change` for the
            two figures and the signed difference. Absent when the price held.
          example: true
        original_price:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `original_price_money` instead. The snapshot
                price recorded at search time, in major currency units.
              deprecated: true
        original_price_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                The snapshot price recorded at search time. Present only when
                `price_changed` is true; compare it against `price_money` to
                show the caller what moved.
        price_change:
          $ref: '#/components/schemas/PriceChange'
        required_attributes:
          type: object
          properties:
            source:
              type: string
              description: >-
                Origin of the requirement. Known values: "provider"
                (carrier-stated, authoritative) and "derived" (inferred from the
                itinerary; advisory only, not a compliance statement). The value
                is passed through without additional validation, so new sources
                may appear.
              example: provider
            per_passenger:
              type: array
              items:
                type: string
              description: >-
                Attribute names that must be collected for each passenger. Names
                are an open set in the provider’s own vocabulary.
              example:
                - PassportNumber
                - PassportExpiryDate
                - DateOfBirth
            booking:
              type: array
              items:
                type: string
              description: Attribute names that must be collected once per booking.
              example:
                - BillingAddress
                - PostCode
            per_passenger_conditional:
              type: array
              items:
                type: string
              description: >-
                Attribute names that may be required for each passenger
                depending on carrier, route, or passenger details. Collect them
                when in doubt.
              example:
                - Nationality
            booking_conditional:
              type: array
              items:
                type: string
              description: >-
                Attribute names that may be required once per booking depending
                on carrier, route, or passenger details. Collect them when in
                doubt.
          description: >-
            Extra attributes the carrier requires collected before booking this
            item — e.g. passport fields on carriers that mandate travel
            documents. Contents are passed through without additional
            validation. When this object is absent, no requirement is known;
            absence is NOT a statement that no document is needed.
        hotel_terms:
          $ref: '#/components/schemas/HotelTerms'
    AgentSPTParams:
      type: object
      properties:
        max_amount:
          type: integer
          description: >-
            Deprecated: use `max_amount_money` instead. Locked trip total in the
            smallest currency unit — scope the Shared Payment Token to at most
            this.
          example: 259449
          deprecated: true
        currency:
          type: string
          description: >-
            Deprecated: use `max_amount_money` instead. The trip currency: `USD`
            or `EUR`, depending on the partner's Stripe account binding.
            `agent_spt_params` is present only when the partner accepts SPT for
            this cart currency.
          example: USD
          deprecated: true
        max_amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                Locked trip total — scope the Shared Payment Token to at most
                `value` (minor units) in `currency`, the trip currency (`USD` or
                `EUR`, depending on the partner's Stripe account binding).
        stripe_profile:
          type: string
          description: >-
            Stripe Agentic Commerce network_business_profile id the SPT is
            granted against. Empty until the preview account is provisioned.
        expires_at:
          type: string
          description: >-
            When a Shared Payment Token scoped to these params stops being
            usable (RFC 3339). With `payment_stays_open` on the checkout
            response, this is 24 hours from the checkout. Otherwise it is the
            same instant as `expires_at` on the checkout response, and a token
            submitted after it answers **410 `QUOTE_EXPIRED`** and redeems
            nothing; call `POST /v1/checkout` again and mint a fresh token
            against the new params. A quote can also be refused earlier if the
            trip's travelers change after pricing (`reason: travelers_changed`),
            or if an item is added to the trip or removed from it after pricing
            (`reason: items_changed`).
          example: '2026-06-10T13:04:56Z'
      required:
        - max_amount
        - currency
      description: >-
        Parameters to scope a Shared Payment Token to, so an agent can pay
        programmatically instead of opening `checkout_url`: mint the token
        against these, then call POST /v1/agent_payment/submit with `trip_id`
        and the token. The currency is the trip currency: `USD` or `EUR`,
        depending on the partner's Stripe account binding. **Absent when the
        partner does not accept SPT for this trip currency**; use the returned
        `accepted_payment_types` to select an available payment method, or pay
        through `checkout_url`. Also absent, together with `checkout_url`, when
        the checkout answered `status: partial`: that trip cannot be paid until
        the failed items are replaced or removed and checkout is called again.
        The human checkout path ignores this object.
    HotelBundleRoom:
      type: object
      properties:
        occupancy_number:
          type: integer
          minimum: 1
          description: Stable one-based room slot within this bundle.
          example: 1
        room_id:
          type: string
        mapped_room_id:
          type: integer
        room_name:
          type: string
          example: Superior Double
        rate_id:
          type: string
        occupancy:
          $ref: '#/components/schemas/Occupancy'
        board_type:
          type: string
          example: BB
        board_name:
          type: string
          example: Breakfast Included
        max_occupancy:
          type: integer
        taxes_and_fees:
          type: array
          items:
            $ref: '#/components/schemas/TaxLine'
        policies:
          type: array
          items:
            $ref: '#/components/schemas/HotelBundleRoomPolicy'
        is_refundable:
          type: boolean
        cancellation_policy:
          type: array
          items:
            $ref: '#/components/schemas/CancellationStep'
        free_cancellation_until:
          type: string
        payment_types:
          type: array
          items:
            $ref: '#/components/schemas/HotelPaymentType'
          description: How the rate can be settled. Each value appears at most once.
          example:
            - pay_now
        remarks:
          type: string
      required:
        - occupancy_number
        - occupancy
      description: >-
        One room of a hotel item — the single room a one-room item books, or one
        slot of a room-bundle rate — with the party it was priced for
        (`occupancy`) and its display and policy details. The containing item
        owns the customer-facing total; supplier net, suggested retail,
        commission and room-local supplier price figures are intentionally not
        part of this public shape.
    AncillaryOffer:
      type: object
      properties:
        offer_id:
          type: string
          description: >-
            Opaque identifier of this ancillary offer. Pass it back exactly as
            received in `selections[].offer_id`; do not parse or build it.
          example: anc_3f9a1c27e4b8d051
        type:
          type: string
          description: >-
            Ancillary family — "bag", "seat", "meal", "assistance", … An open
            set. Offers with type "seat" carry `seat_map` and no
            `price_per_unit`: the price is per seat, in
            `seat_map.seats[].price_money`.
          example: bag
        label:
          type: string
          description: >-
            The provider label verbatim, kept as the source of truth. Some
            labels arrive with HTML entities and "&" component-joiners — show
            `display_label` instead.
          example: bag&1 x large 55 x 40 x 20 cm&Includes Speedy Boarding
        display_label:
          type: string
          description: >-
            Human-readable rendering of `label`: HTML entities decoded, "&"
            joiners normalised to ", ". This is the one to display.
          example: bag, 1 x large 55 x 40 x 20 cm, Includes Speedy Boarding
        description:
          type: string
        price_per_unit:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `price_per_unit_money` instead. The unit price
                in MAJOR currency units.
              deprecated: true
        price_per_unit_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                The price of one unit of this ancillary. Absent when the offer
                carries no price, and on seat offers, which price each seat in
                the seat map.
        scope:
          type: string
          description: 'Seat offers only: one seat per passenger per segment.'
          example: PER_PAX_PER_SEGMENT
        segment_ref_ids:
          type: array
          items:
            type: string
          description: >-
            The segment(s) a seat offer covers, one per offer. Pass the one
            entry back as the selection's `segment_ref_ids`.
          example:
            - seg_1
        seat_map:
          $ref: '#/components/schemas/AncillarySeatMap'
        seat_map_status:
          type: string
          enum:
            - pending
            - ready
          description: >-
            Seat offers only: pending means the seat map is still loading and
            seat_map.seats is empty; read again. Ready means seats are listed.
        per_pax:
          type: boolean
          description: >-
            True when the price is charged per passenger rather than once per
            booking.
          example: true
        max_quantity:
          type: integer
          example: 2
        paid_at:
          type: string
          enum:
            - now
            - local
          description: >-
            Car rate extras only. `now`: charged by Jinko at checkout and inside
            the item price once selected. `local`: collected by the rental desk
            on pick-up — selectable, but never part of the charge. Absent for
            flight ancillaries, which are always charged by Jinko.
          example: now
      required:
        - offer_id
    SelectedAncillary:
      type: object
      properties:
        offer_id:
          type: string
          description: >-
            Opaque identifier of this ancillary offer. Pass it back exactly as
            received in `selections[].offer_id`; do not parse or build it.
          example: anc_3f9a1c27e4b8d051
        traveler_ref:
          type: string
          description: >-
            The traveler the selection applies to; absent on a booking-level
            ancillary.
          example: pax_1
        pax_ref_id:
          type: string
          description: 'Deprecated: use `traveler_ref` instead. Same value.'
          example: pax_1
          deprecated: true
        quantity:
          type: integer
          example: 1
        type:
          type: string
          description: >-
            Ancillary family on a booked outcome, e.g. "seat" or "bag"
            (lowercase, open set). May be absent before booking.
          example: seat
        seat_number:
          type: string
          example: 14A
        segment_ref_ids:
          type: array
          items:
            type: string
          example:
            - seg_1
        price:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `price_money` instead. The unit price of the
                chosen seat, set by the server: major units in the trip
                currency. Absent for a free seat or a selection without its own
                unit price.
              deprecated: true
        price_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                The exact unit price of the chosen seat, set by the server.
                Absent for a free seat or a selection without its own unit
                price, e.g. a bag.
        status:
          type: string
          enum:
            - pending
            - confirmed
            - failed
          description: >-
            Absent before booking. For seats, `pending` means the airline has
            not confirmed the seat yet. `confirmed` means booked with the
            airline. `failed` means not booked.
        not_charged:
          type: boolean
          description: true when this seat is not charged to the traveler.
        failure_reason:
          type: string
          description: >-
            Why an ancillary failed, or why a pending airline outcome needs
            reconciliation.
      required:
        - offer_id
      description: >-
        An ancillary selected on a trip item, as the trip read and the
        select_ancillaries response both return it. Provider data is never
        included.
    PriceChange:
      type: object
      properties:
        original:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `original_money` instead. The selling price
                shown at search time, before the quote, in MAJOR currency units.
              deprecated: true
        current:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `current_money` instead. The selling price the
                trip is quoted at — the same figure as `price` — in MAJOR
                currency units.
              deprecated: true
        delta:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `delta_money` instead. `current` minus
                `original`, SIGNED, in MAJOR currency units: positive when the
                price rose, negative when it fell.
              deprecated: true
        original_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: The selling price shown at search time, before the quote.
        current_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                The selling price the trip is quoted at — the same figure as
                `price_money`.
        delta_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                `current_money` minus `original_money`, SIGNED: `value` is
                positive when the price rose, negative when it fell.
      required:
        - original
        - current
        - delta
      description: >-
        The move between the price shown at search time and the price the trip
        is quoted at, stated as three figures so the caller can report it
        without subtracting. Read `original_money`, `current_money` and
        `delta_money`; the deprecated `original`, `current` and `delta` carry
        the same figures in major currency units. All are in one currency,
        matching the item’s price. Present ONLY when the two differ — an item
        whose price held carries no `price_change` at all, and `price_changed`
        is true whenever it is present.
    HotelTerms:
      type: object
      properties:
        terms_as_of:
          type: string
          enum:
            - search
            - quote
          description: >-
            How fresh these terms are. `search` — captured in the search
            snapshot the item was created from and held since. `quote` — re-read
            from the provider when the trip was quoted. Today the platform
            always answers `search`.
          example: search
        taxes_breakdown:
          type: array
          items:
            $ref: '#/components/schemas/TaxLine'
          description: >-
            Taxes and fees on the held rate. An empty array means no tax is
            known, not that there is none; check `included` per line before
            adding anything to the item price.
        cancellation_schedule:
          type: array
          items:
            $ref: '#/components/schemas/CancellationStep'
          description: >-
            The penalty ladder for this rate, chronological. Absent when the
            provider published none — which is not a statement that cancelling
            is free.
        free_cancellation_until:
          type: string
          description: >-
            Last instant the stay can be cancelled at no charge. RFC 3339 with
            the supplier’s declared UTC offset. Absent when the supplier
            declared no timezone — the platform never invents an offset, so a
            deadline it cannot place on the clock is withheld rather than
            published ambiguously — and absent when the rate is non-refundable
            or the provider named no deadline.
          example: '2026-08-18T10:00:00+02:00'
        is_refundable:
          type: boolean
          example: false
        board_type:
          type: string
          example: RO
        board_name:
          type: string
          example: Room Only
        payment_types:
          type: array
          items:
            $ref: '#/components/schemas/HotelPaymentType'
          description: How the rate can be settled. Each value appears at most once.
          example:
            - pay_now
        room_name:
          type: string
          example: Superior Double
        room_capacity:
          type: integer
          example: 2
      description: >-
        The rate terms behind a hotel item — cancellation ladder, taxes, board
        and room — as the platform holds them. They were captured at SEARCH time
        and are not re-confirmed at quote: read `terms_as_of` before treating
        any of them as a guarantee of what the provider will charge at booking.
        Present on hotel items only.
    Occupancy:
      type: object
      properties:
        adults:
          type: integer
          minimum: 1
        children_ages:
          type: array
          items:
            type: integer
            minimum: 0
            maximum: 17
      required:
        - adults
      description: >-
        The party one room is requested or priced for: the number of adults and
        the age of each child.
    TaxLine:
      type: object
      properties:
        amount:
          type: number
          description: >-
            Deprecated: use `amount_money` instead. The tax in MAJOR units of
            `currency`.
          example: 164.49
          deprecated: true
        currency:
          type: string
          description: 'Deprecated: use `amount_money` instead. The currency of `amount`.'
          example: EUR
          deprecated: true
        amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                The tax. When the supplier named no currency for the line, it is
                the currency the rate is priced in.
        description:
          type: string
          description: The provider’s own wording for the tax. Free text, not a code.
          example: 19, VAT National taxes on accommodation
        included:
          type: boolean
          description: >-
            True when the amount is ALREADY inside `total_amount_money`; false
            when the guest pays it at the property on top. Getting this
            backwards misquotes the trip.
          example: true
        display:
          type: string
          description: >-
            Deprecated: use `amount_money` instead. The same figure as a string
            ready to show: the ISO 4217 code, a space, then the amount, e.g.
            "USD 159.77". With decimal_places it is written at exactly that
            scale (value 1561500, JPY, decimal_places 2 is "JPY 15615.00");
            without, at the ISO digits of the currency. Show this; compute with
            the number. Absent when the figure is not money (a cancellation step
            expressed as a percent or a number of nights) or could not be read
            unambiguously.
          example: EUR 164.49
          deprecated: true
    HotelBundleRoomPolicy:
      type: object
      properties:
        type:
          type: string
        description:
          type: string
        fee_amount:
          type: number
          description: >-
            Deprecated: use `fee_amount_money` instead. Customer policy fee in
            MAJOR units of `fee_currency`.
          deprecated: true
        fee_currency:
          type: string
          description: >-
            Deprecated: use `fee_amount_money` instead. The currency of
            `fee_amount`.
          deprecated: true
        fee_amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                Customer cancellation or policy fee, with exact minor units and
                currency precision.
    CancellationStep:
      type: object
      properties:
        cancel_time:
          type: string
          description: >-
            Deadline after which this tier applies. RFC 3339 with the supplier’s
            declared UTC offset. Steps whose deadline has no declared timezone
            are omitted from the ladder — the platform never invents an offset —
            so a schedule can be shorter than the supplier’s own. Tiers are
            chronological, earliest first, so the first entry is the deadline
            that matters.
          example: '2026-08-18T10:00:00+02:00'
        amount:
          type: number
          description: >-
            Deprecated: use `amount_money` instead. Read `amount_money`,
            `percent` or `nights`, whichever this step carries. What the guest
            is charged on or after `cancel_time`: a sum in MAJOR units of
            `currency`, a percentage or a number of nights, as `type` says.
          example: 606.13
          deprecated: true
        currency:
          type: string
          description: 'Deprecated: use `amount_money` instead. The currency of `amount`.'
          example: EUR
          deprecated: true
        type:
          type: string
          description: >-
            How the charge is expressed — a sum ("amount", "flat_fee"; read
            `amount_money`), a percentage ("percent", "percentage"; read
            `percent`) or a number of nights ("nights"; read `nights`).
          example: amount
        display:
          type: string
          description: >-
            Deprecated: use `amount_money` instead. The same figure as a string
            ready to show: the ISO 4217 code, a space, then the amount, e.g.
            "USD 159.77". With decimal_places it is written at exactly that
            scale (value 1561500, JPY, decimal_places 2 is "JPY 15615.00");
            without, at the ISO digits of the currency. Show this; compute with
            the number. Absent when the figure is not money (a cancellation step
            expressed as a percent or a number of nights) or could not be read
            unambiguously.
          example: EUR 606.13
          deprecated: true
        amount_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                What the guest is charged on or after `cancel_time`, when this
                step is a sum. Absent on a percentage or nights step, and when
                the supplier named no currency.
        percent:
          type: number
          description: >-
            The charge as a percentage of the stay price, when this step is a
            percentage, on the 0–100 scale the supplier states it in: 50 is half
            the stay price, 100 the whole of it. Never a 0–1 fraction. Absent
            otherwise.
          example: 50
        nights:
          type: number
          description: >-
            The charge as a number of nights of the stay, when this step is
            expressed in nights. Absent otherwise.
          example: 1
    HotelPaymentType:
      type: string
      enum:
        - pay_now
        - pay_at_property
        - deposit
      description: >-
        How the rate can be settled. `pay_now` — paid when the booking is made.
        `pay_at_property` — paid to the hotel at the property. `deposit` — a
        deposit is taken.
    AncillarySeatMap:
      type: object
      properties:
        segment_ref_id:
          type: string
          example: seg_1
        flight_number:
          type: string
          example: W62202
        seats:
          type: array
          items:
            $ref: '#/components/schemas/AncillarySeat'
      description: >-
        The numbered seats for the segment covered by a seat offer. Select a
        seat with `available` true; its `price_money`, when present, is exact
        money in the trip currency.
    AncillarySeat:
      type: object
      properties:
        seat_number:
          type: string
          example: 14A
        available:
          type: boolean
        chargeable:
          type: boolean
          description: True when the seat has a price.
        price:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                Deprecated: use `price_money` instead. The seat price in major
                units in the trip currency.
              deprecated: true
        price_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                The exact seat price in the trip currency. Absent for a free
                seat.
        characteristics:
          type: array
          items:
            type: string
          example:
            - WINDOW
      description: >-
        A numbered seat. Read `price_money` for its exact price in the trip
        currency. Both price fields are absent for a free seat.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.