> ## 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.

# trip-status

> Fetch the full lifecycle state of a trip, items, travelers, quote, fulfillment, and any booking references

Inspect the current state of a trip without modifying it. Reach for it when you need to confirm what items are on the trip, verify the travelers attached to a booking, or check whether a checkout has finalized after the user paid. The response covers items, traveler details, the quote and its `quote_id`, the booking's progress in `booking_state` once payment starts, and any booking references that have been issued.

This read does not start pricing. Checkout starts pricing and waits for success or failure. If `quote.status` is `failed`, no payable quote was established, even if an older response also carries `expires_at`. Failed quotes omit `expires_at` and can include `failure_reason` and `failure_message`. For `offer_expired` or `offer_unavailable`, search again and replace the item before checking out. If `quote.status` is `partial`, some items are priced and others are not: each item's `quote_status` says which, and the trip cannot be paid until a new checkout prices every item: remove or replace the items with `quote_status: failed`, or, after `provider_error`, call checkout again on the unchanged trip. A missing item `price_money` or `total_amount_money` means the figure is not known yet and must not be displayed as zero.

`status` is one value for the whole trip. Once payment starts, `booking_state` summarizes the booking and `fulfillment.status` gives the detailed status behind it. See [Trip status and booking state](https://docs.gojinko.com/concepts/overview.md#trip-status-and-booking-state).


## OpenAPI

````yaml api-reference/public-api.yaml GET /v1/trip/{trip_id}
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/trip/{trip_id}:
    get:
      tags:
        - Pricing & booking
      summary: >-
        Fetch the full lifecycle state of a trip — items, travelers, quote,
        fulfillment, and any booking references
      description: >-
        Reads the latest trip state without starting pricing. After checkout
        fails, quote.status can be failed, with failure_reason and
        failure_message when available. A failed quote has no payment
        expires_at. Never treat a missing item price or total_amount as zero.
      parameters:
        - schema:
            type: string
          required: true
          name: trip_id
          in: path
      responses:
        '200':
          description: The trip
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTripResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: BAD_REQUEST
                  message: Malformed JSON in request body.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '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 operation conflicts with the current state of the resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: CONFLICT
                  message: >-
                    The operation conflicts with the current state of the
                    resource.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '410':
          description: The resource this request names no longer exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: GONE
                  message: The resource no longer exists.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: BAD_REQUEST
                  message: A required field is missing or invalid.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '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: No travel provider can serve the request right now
          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: UPSTREAM_UNAVAILABLE
                  message: >-
                    The service is temporarily unavailable. Retry after the
                    Retry-After delay.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '504':
          description: The travel provider did not answer in time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: UPSTREAM_TIMEOUT
                  message: >-
                    The request timed out before a result was available. Retry
                    the request.
                  doc_url: https://docs.gojinko.com/concepts/errors
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    GetTripResponse:
      type: object
      properties:
        seat_map_url:
          type: string
          description: >-
            Link to a page where the traveller picks seats on a visual seat map.
            Present only when a flight item has a seat-map session. Expires;
            read the trip again for a fresh link.
        payment_attempt:
          $ref: '#/components/schemas/PaymentAttemptOutcome'
        trip_id:
          type: string
          example: trip_1048576
        status:
          type: string
          enum:
            - draft
            - quoting
            - quoted
            - fulfillment_prepared
            - fulfilling
            - fulfilled
            - partially_fulfilled
            - failed
            - cancelled
            - expired
          description: >-
            Where the trip is in its lifecycle, as one value for the whole trip.
            The booking’s progress after payment is `booking_state` (GET
            /v1/trip/{trip_id}); the four booking values below (`fulfilling`,
            `fulfilled`, `partially_fulfilled`, `failed`) are deprecated in
            favour of it and still sent. `draft`: being built or priced, nothing
            paid. `fulfilling`: payment was submitted and booking started. Then
            exactly one outcome: `fulfilled` (`booking_state` `completed`),
            `partially_fulfilled` (`partial`) or `failed` (`failed`).
            `cancelled`: replaced by a new trip when it was re-shopped.
            `expired`: the trip lapsed under a limit that no longer applies. A
            trip left unpaid stays open, so no new trip reaches this state. On
            an expired trip, adding items, setting travelers and checkout are
            refused with `TRIP_EXPIRED`; any other state that refuses a write
            answers `TRIP_STATE_CONFLICT` and names the state here. Start a new
            trip — an expired one cannot be revived. `quoting`, `quoted` and
            `fulfillment_prepared` are reserved and not currently set; quote
            progress is in `quote.status`.
          example: draft
        travelers:
          type: array
          items:
            $ref: '#/components/schemas/TripTraveler'
        contact:
          type: object
          properties:
            email:
              type: string
            phone:
              type: string
            title:
              type: string
        hotel_room_guests:
          $ref: '#/components/schemas/HotelRoomGuests'
        items:
          type: array
          items:
            $ref: '#/components/schemas/TripItem'
        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. Absent until the trip has been quoted.
        quote:
          type: object
          properties:
            quote_id:
              type: string
              description: >-
                The quote’s id: pass it as `quote_id` to the typed agent
                payment, or to the MCP `submit_agent_payment`, to pay exactly
                this quote. A `partial` quote cannot be paid: replace or remove
                the items with `quote_status: failed` and check out again.
              example: '2097152'
            quoted_cart_id:
              type: number
              description: >-
                Deprecated: use `quote_id` instead. The same quote as an
                integer.
              deprecated: true
            status:
              type: string
              description: >-
                Where pricing stands. `pending` or `in_progress`: pricing is
                running. `completed`: every item is priced. `partial`: some
                items are priced and others are not — each item’s `quote_status`
                says which, and the trip cannot be paid until those items are
                replaced or removed. `failed`: nothing could be priced; read
                `failure_reason`. `expired`: the payment deadline passed; call
                checkout again to price the trip anew. Treat any other value as
                pricing not finished.
              example: completed
            expires_at:
              type: string
              description: >-
                The payment deadline of a successfully priced quote, unless
                `payment_stays_open` is true. Absent on a failed quote; a failed
                pricing attempt does not establish a payable price.
            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.
            failure_reason:
              type: string
              enum:
                - offer_expired
                - offer_unavailable
                - provider_error
              description: >-
                Known reason pricing failed. Present only on a failed quote with
                a classified failure. For offer_expired or offer_unavailable,
                search again and replace the unavailable item before checkout.
                provider_error is an upstream technical pricing failure: retry
                checkout once; if it still fails, choose another flight or
                contact support. offer_expired describes a search offer that
                could not be priced, not an established quote expiring.
            failure_message:
              type: string
              description: >-
                Safe explanation of a failed pricing attempt, when available.
                Use failure_reason for programmatic handling; the wording can
                change. Where the explanation would carry the supplier’s own
                words, it reads “The booking could not be completed. Contact
                Jinko support.”
            invalid_reason:
              type: string
              description: >-
                Present when the latest priced quote can no longer be paid.
                Known values: `travelers_changed`, the trip's travelers changed
                after it was priced; `items_changed`, an item was added to the
                trip or removed from it after it was priced. Treat any other
                value the same way: the quote is not payable. Absent otherwise,
                including when the quote simply passed its `expires_at`. Payment
                against this quote is refused with **410 `QUOTE_EXPIRED`**
                carrying the same value as `reason`; call `POST /v1/checkout`
                again to re-quote, and get the traveler to approve the new total
                before paying.
          description: >-
            Latest pricing attempt. POST /v1/trip does not start pricing; POST
            /v1/checkout starts it and waits for success or failure. Reading the
            trip does not trigger pricing. A failed quote has no payable price.
          example:
            quote_id: '2097152'
            status: completed
            expires_at: '2026-06-01T13:04:56Z'
        fulfillment:
          type: object
          properties:
            fulfillment_cart_id:
              type: number
              description: >-
                Deprecated: use `booking_ref` instead. An internal number for
                the booking.
              deprecated: true
            status:
              type: string
              description: >-
                Progress of the booking that started when payment was submitted,
                in detail; `booking_state` is its summary. `awaiting_payment`:
                waiting for the payment to be confirmed. `processing`: booking
                with the suppliers. Outcomes: `completed` (every item booked;
                trip `fulfilled`), `partial` (some items booked; trip
                `partially_fulfilled`), `failed` (nothing booked; trip
                `failed`), `cancelled`. `needs_review`: held for a person to
                resolve; not final. Other known values: pending, preparing,
                prepared, confirming, exchange_partial_failure, expired_quote.
                Additional values may appear.
            phase:
              type: string
            failure_reason:
              type: string
              description: Classified reason for a failed fulfillment, when available.
              example: price_changed
            price_change:
              $ref: '#/components/schemas/BookingPriceChange'
            scheduled_at:
              type: string
              format: date-time
              description: Scheduled fulfillment time (RFC 3339), when available.
              example: '2026-06-01T12:35:00Z'
        booking_state:
          type: string
          enum:
            - awaiting_payment
            - processing
            - completed
            - partial
            - failed
            - cancelled
            - needs_review
          description: >-
            The booking’s progress once payment has started; absent before.
            `awaiting_payment`: waiting for the payment to be confirmed.
            `processing`: booking with the suppliers. Then one outcome:
            `completed` (every item booked), `partial` (some items booked),
            `failed` (nothing booked) or `cancelled`. `needs_review`: held for a
            person at Jinko to resolve; not final. `fulfillment.status` keeps
            the detailed status behind it.
          example: processing
        booking_ref:
          type: string
          description: >-
            The Jinko booking reference for this trip — the value `POST
            /v1/get_booking`, cancel, refund and exchange take as `booking_ref`,
            and the `booking_ref` every webhook event carries. Present as soon
            as booking has been scheduled for the trip, which can be before
            payment completes (a hosted checkout still in progress, or an agent
            submit that fell back to `checkout_url`, leaves the booking
            `awaiting_payment`). Presence does not mean paid: read
            `booking_state`. The value never changes afterwards. One per trip.
          example: JNK-XEVGW5
        bookings:
          type: array
          items:
            $ref: '#/components/schemas/BookingRef'
          description: >-
            One entry per item with a booking reference, including items whose
            booking was attempted and failed. The supplier confirmation can be
            empty on failed items; the Jinko reference is the trip-level
            `booking_ref`.
        created_at:
          type: string
          example: '2026-06-01T12:30:00Z'
        updated_at:
          type: string
          example: '2026-06-01T12:34:56Z'
      required:
        - trip_id
    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
    PaymentAttemptOutcome:
      type: object
      properties:
        payment_attempt_id:
          type: string
        trip_id:
          type: string
          description: >-
            The trip this attempt pays, written with a `trip_` prefix
            (`trip_1048576`); the trip answers carry the same id without it
            (`1048576`). Strip the prefix to compare the two.
          example: trip_1048576
        quote_id:
          type: string
          description: The quote this payment is taken against.
          example: '2097152'
        quoted_cart_id:
          type: integer
          description: 'Deprecated: use `quote_id` instead. The same quote as an integer.'
          deprecated: true
        fulfillment_cart_id:
          type: integer
          description: >-
            Deprecated: use `booking_ref` instead. An internal number for the
            booking this payment funds.
          deprecated: true
        payment_status:
          type: string
          enum:
            - pending
            - requires_authentication
            - authorized
            - captured
            - declined
            - cancelling
            - cancelled
            - expired
            - failed
        booking_status:
          type: string
          description: >-
            The detailed status of the booking this payment started,
            `not_scheduled` until booking begins. `booking_state` on GET
            /v1/trip/{trip_id} is its summary.
        failure_reason:
          type: string
          nullable: true
          description: >-
            Why the booking failed, when it failed after payment and the cause
            is known: `offer_unavailable`, `price_changed`,
            `booking_not_created` (the supplier holds no booking; nothing was
            booked and no money was taken), `booking_cancelled_at_provider`,
            `ticketing_refused`. Null otherwise. For `offer_unavailable`, the
            supplier no longer sells the priced offer. Nothing was booked and
            the card authorisation was released. Search again and book a new
            offer. The `booking.failed` webhook carries the same reason with a
            sentence to show the traveller (`failure_message`).
          example: booking_not_created
        items:
          type: array
          items:
            type: object
            properties:
              booked_item_id:
                type: string
                description: >-
                  The booked item, as get_booking and the servicing routes name
                  it. Absent only when the item cannot be named yet.
                example: itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a
              item_id:
                type: integer
                description: >-
                  Deprecated: use `booked_item_id` instead. The booked item as
                  an integer.
                deprecated: true
              outcome:
                type: string
              failure_reason:
                type: string
                nullable: true
                description: >-
                  Why the booking failed, when it failed after payment and the
                  cause is known: `offer_unavailable`, `price_changed`,
                  `booking_not_created` (the supplier holds no booking; nothing
                  was booked and no money was taken),
                  `booking_cancelled_at_provider`, `ticketing_refused`. Null
                  otherwise. For `offer_unavailable`, the supplier no longer
                  sells the priced offer. Nothing was booked and the card
                  authorisation was released. Search again and book a new offer.
                  The `booking.failed` webhook carries the same reason with a
                  sentence to show the traveller (`failure_message`).
                example: booking_not_created
            required:
              - item_id
              - outcome
        booking_ref:
          type: string
          description: The booking reference. Absent until the booking has one; never null.
        payment_error:
          type: object
          nullable: true
          properties:
            code:
              type: string
              enum:
                - CREDENTIAL_FORMAT_INVALID
                - PAYMENT_TYPE_NOT_ENABLED
                - PAYMENT_CREDENTIAL_INVALID
                - TRIP_OWNED_BY_OTHER_PAYMENT
                - IDEMPOTENCY_KEY_REUSED
                - ATTEMPT_IN_PROGRESS
                - CARD_DECLINED
                - CARD_ALIAS_EXPIRED
                - PAYMENT_CREDENTIAL_REJECTED
                - AUTHENTICATION_REQUIRED
                - AUTHENTICATION_FAILED
                - AUTHENTICATION_ABANDONED
                - QUOTE_EXPIRED
                - ATTEMPT_TERMINAL
                - PAYMENT_OUTCOME_UNKNOWN
                - FULFILLMENT_DISPATCH_DELAYED
                - RECONCILIATION_REQUIRED
                - TEMPORARILY_UNAVAILABLE
            message:
              type: string
          required:
            - code
            - message
          description: >-
            Why the payment has not gone through, or null. On the `checkout_url`
            payment page, a card the issuer declines (`card_declined`) or whose
            authentication fails (`authentication_failed`) is reported here
            while `payment_status` stays `pending` and `recovery.action` is
            `poll`: the payer can use another card on the same page until this
            payment's `quote_expires_at`. It returns to null when a card is
            authorized. `CARD_ALIAS_EXPIRED`: The submitted card details can no
            longer be used for this payment. Follow `recovery.action`; when it
            is `retry_new_key`: Submit the card again on the pay hostname with a
            new Idempotency-Key.
        recovery:
          type: object
          properties:
            action:
              type: string
              enum:
                - poll
                - authenticate
                - retry_same_key
                - retry_new_key
                - recheckout
                - contact_support
                - stop
              description: >-
                The next step. `authenticate`: when `authentication` is present,
                open `authentication.url` before `authentication.expires_at`.
                For a Shared Payment Token (`spt`), first read the token's
                `next_action.use_stripe_sdk.value` with your own Stripe secret
                key and append it unchanged: open `authentication.url + "#hv=" +
                <value>`, or call `stripe.handleNextAction({ hashedValue })`
                with Stripe.js on your own page. Then poll `GET
                /v1/trip/{trip_id}/payment_attempts/{payment_attempt_id}` until
                `payment_status` is none of `requires_authentication`,
                `cancelling` or `pending`.
            replacement_credential_required:
              type: boolean
          required:
            - action
            - replacement_credential_required
        recovery_status:
          type: string
          enum:
            - automatic
            - manual_review
        quote_expires_at:
          type: string
          format: date-time
          description: >-
            Deadline for completing this payment (RFC 3339). It is the quote
            deadline the checkout response and the trip's `quote` call
            `expires_at`, unless they say `payment_stays_open`: then this
            payment has its own, later deadline.
        retry_after_seconds:
          type: integer
          description: >-
            Seconds to wait before reading the payment attempt again. Present
            only while `recovery.action` is `poll`; absent otherwise, never
            null.
        authentication:
          type: object
          properties:
            url:
              type: string
            expires_at:
              type: string
              format: date-time
          required:
            - url
            - expires_at
          description: >-
            Where the customer authenticates when `recovery.action` is
            `authenticate`: open `url` before `expires_at`. For a Shared Payment
            Token (`spt`), `url` is a Jinko-hosted page that needs the token's
            hashed value: read the issued token's
            `next_action.use_stripe_sdk.value` with your own Stripe secret key
            and open `url + "#hv=" + <value>`, passing the value unchanged. The
            value travels in the URL fragment, which keeps it out of server
            logs.
        money:
          type: object
          properties:
            authorized:
              $ref: '#/components/schemas/Money'
            captured:
              $ref: '#/components/schemas/Money'
            released:
              $ref: '#/components/schemas/Money'
            refunded:
              $ref: '#/components/schemas/Money'
            externally_reimbursed:
              $ref: '#/components/schemas/Money'
            resolution_status:
              type: string
              enum:
                - pending
                - resolved
                - manual_review
                - external_reimbursement_pending
                - externally_reimbursed
            refund_reference:
              type: string
      required:
        - payment_attempt_id
        - trip_id
        - quote_id
        - quoted_cart_id
        - payment_status
        - booking_status
        - payment_error
        - recovery
        - recovery_status
    TripTraveler:
      type: object
      properties:
        traveler_ref:
          type: string
          description: >-
            The reference to send as `traveler_ref` when selecting a
            per-traveler ancillary: `pax_<N>`, the traveler's 1-based position
            in `travelers`.
          example: pax_1
        pax_ref_id:
          type: string
          description: 'Deprecated: use `traveler_ref` instead. Same value.'
          example: pax_1
          deprecated: true
        first_name:
          type: string
          example: John
        last_name:
          type: string
          example: Doe
        date_of_birth:
          type: string
          example: '1990-01-15'
        gender:
          type: string
          example: MALE
        traveler_type:
          type: string
          enum:
            - adult
            - child
            - infant
          example: adult
        passenger_type:
          type: string
          description: 'Deprecated: use `traveler_type` instead. The same type in uppercase.'
          example: ADULT
          deprecated: true
        identity_documents:
          type: object
          properties:
            passport:
              $ref: '#/components/schemas/TripIdentityDocument'
            known_traveler_number:
              $ref: '#/components/schemas/TripIdentityDocument'
            redress_number:
              $ref: '#/components/schemas/TripIdentityDocument'
          required:
            - passport
            - known_traveler_number
            - redress_number
          description: >-
            Whether each travel document sent on `upsert_travelers` was saved
            and will be sent with a flight booking. The passport, Known Traveler
            and redress numbers themselves are not returned. `upsert_travelers`
            replaces the whole traveler list, so a document left out of a later
            upsert reads `absent`.
      description: >-
        A traveler stored on the trip. A `frequent_flyer` sent on write is
        echoed back alongside these when present; travel documents are reported
        in `identity_documents`, without their values.
    HotelRoomGuests:
      type: object
      additionalProperties:
        type: array
        items:
          $ref: '#/components/schemas/HotelRoomPrimaryGuest'
        minItems: 1
      description: >-
        Optional primary adult room-contact overrides keyed by the returned
        hotel item_id/product_id. Each product array is non-empty and
        occupancy_number values are unique positive room slots; omitted slots
        use persisted adult travelers in order with the trip contact email. The
        trip must already exist because the keys refer to its items.
    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'
    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.
    BookingPriceChange:
      type: object
      properties:
        original_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: The amount paid.
        current_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: The price of the product now.
        delta_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: Current minus original, negative when the price dropped.
      required:
        - original_money
        - current_money
        - delta_money
      description: >-
        How the price moved from what was paid, after the quote lapsed before
        the payment. With `failure_reason: price_changed` nothing was booked or
        charged. On a completed booking the lower `current_money` is what was
        charged and the payer keeps the difference: a card hold releases it, and
        a partner balance is credited it back.
    BookingRef:
      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
          example: flight
        supplier_references:
          type: array
          items:
            $ref: '#/components/schemas/SupplierReference'
          description: >-
            The confirmations the supplier itself issued for this item: one per
            airline record locator, the hotel’s confirmation number, the rental
            company’s confirmation. Empty when none is known yet. The traveler
            quotes these to the airline, hotel or rental desk; `POST
            /v1/get_booking` takes the trip-level `booking_ref`.
        booking_reference:
          type: string
          description: >-
            Deprecated: use `supplier_references` instead. A confirmation
            reference for this item; when the airline’s own locator is not known
            it can hold an id only Jinko’s intermediary answers to.
          example: 8Q69NYQTT
          deprecated: true
        pnr:
          type: string
          description: >-
            Deprecated: use `supplier_references` instead. The same value as
            `booking_reference`.
          example: XM9L2K
          deprecated: true
        supplier_hold_released:
          type: boolean
          description: >-
            Present and `true` on a failed item whose ticket the supplier
            refused to issue and whose order the platform then released at the
            supplier, verified by a reread of the record: nothing is held under
            this booking any more, although `booking_reference` still names the
            record. Absent on every other item, including a failed item whose
            release could not be verified.
          example: true
        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).
    TripIdentityDocument:
      type: object
      properties:
        status:
          type: string
          description: >-
            `absent`: none of the document's fields were sent. `saved`: stored,
            and sent to the airline with the flight booking (this does not mean
            the airline accepted it). `invalid`: received, but it cannot be sent
            as is, so the booking goes ahead without it; `invalid_fields` names
            what to correct. More values may be added: treat one you do not know
            as not usable.
          example: saved
        invalid_fields:
          type: array
          items:
            type: string
          description: >-
            The missing or failing fields, by their `upsert_travelers` names.
            Sent only when `status` is `invalid`.
          example:
            - passport_expiry
      required:
        - status
    HotelRoomPrimaryGuest:
      type: object
      properties:
        occupancy_number:
          type: integer
          minimum: 1
          description: Stable one-based room slot within the selected room bundle.
          example: 1
        first_name:
          type: string
        last_name:
          type: string
        email:
          type: string
          format: email
      required:
        - occupancy_number
        - first_name
        - last_name
        - email
      additionalProperties: false
    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.
    SupplierReference:
      type: object
      properties:
        issuer:
          type: string
          description: >-
            Who issued the reference: the airline’s IATA code, the hotel’s name,
            or the rental company’s name.
          example: AF
        reference:
          type: string
          description: The reference itself.
          example: XM9L2K
      required:
        - issuer
        - reference
    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.