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

# get-booking

> Retrieve booked item IDs and per-item servicing eligibility using the Jinko booking reference

Authenticated API lookup for a booking the user already made. Guest access verifies the booking reference and last name; the integrating application still supplies API credentials. Use it when the traveler has their Jinko booking reference and last name, for example to look up the itinerary days later without signing in. Returns the full booking envelope: status, travelers, and itinerary items, each with its `booked_item_id` and its supplier confirmations in `supplier_references` (the airline's record locator per airline, the hotel's confirmation number, the rental reservation number).

The flight itinerary in `items[].confirmation.details.flight.legs` is the one booked and ticketed. It is not refreshed from the airline afterwards: a schedule change or a cancellation made by the airline doesn't appear here, and no webhook reports it. The customer contact you send at checkout (an email and a phone number, not necessarily the traveler's) is passed on with the flight booking. Depending on how the flight was booked, it is sent to the airline as part of the reservation, or it stays with an intermediary booking system and Jinko can't confirm that it reaches the airline. Whether an airline that has the contact uses it to tell anyone about a change is up to the airline.


## OpenAPI

````yaml api-reference/public-api.yaml POST /v1/get_booking
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/get_booking:
    post:
      tags:
        - Post-booking
      summary: >-
        Retrieve booked item IDs and per-item servicing eligibility using the
        Jinko booking reference
      description: >-
        Call get_booking first. Use booking_ref and the selected booked_item_id
        for every servicing action. last_name is required for guest lookup; an
        owning credential may omit it. The deprecated `provider`, `order_id`,
        `provider_reference` and `provider_booking_id` are accepted until
        2027-04-30 where the request declares them; a request that sends one is
        answered with `Deprecation` and `Sunset` headers. A 409
        item_selection_required returns safe items to choose from.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetBookingRequest'
      responses:
        '200':
          description: >-
            Retrieve booked item IDs and per-item servicing eligibility using
            the Jinko booking reference
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBookingResponse'
        '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: >-
            Choose booked_item_id when several booked items match; other
            conflicts report the current resource state.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ErrorResponse'
                  - $ref: '#/components/schemas/BookingSelectionConflict'
        '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:
    GetBookingRequest:
      type: object
      properties:
        booking_ref:
          type: string
          minLength: 1
          description: >-
            Jinko booking reference. Call get_booking first, then select its
            booked_item_id for servicing.
          example: JNK-A0AUR2
        last_name:
          type: string
          minLength: 1
          description: >-
            Required for guest lookup. A credential that owns the booking may
            omit it; ownership is checked by the platform.
          example: Doe
        check_eligibility:
          type: boolean
          description: >-
            Whether to check now, with the airline or supplier, if each item can
            be voided, refunded or exchanged (`items[].servicing`). For a flight
            this asks the airline and can add several seconds. Send `false` to
            read the booking and its stored `fare_conditions` without asking the
            airline: an active flight item then leaves its eligibility fields
            out of `items[].servicing`, and hotel, car and ground items still
            state theirs. Defaults to `true`; after a 180-day notice the default
            becomes `false`, so send `true` explicitly before cancelling or
            changing.
          example: false
        intent:
          $ref: '#/components/schemas/IntentInput'
      required:
        - booking_ref
    GetBookingResponse:
      type: object
      properties:
        booking:
          $ref: '#/components/schemas/Booking'
      example:
        booking:
          booking_ref: JNK-A0AUR2
          booking_reference: JNK-A0AUR2
          status: completed
          type: flight
          last_name: Doe
          total_paid:
            value: 31840
            currency: USD
            decimal_places: 2
            display: USD 318.40
          created_at: '2026-05-20T09:14:00Z'
          calendar:
            files:
              - method: REQUEST
                filename: jinko-JNK-A0AUR2.ics
                content_type: text/calendar; charset=utf-8; method=REQUEST
                content: BEGIN:VCALENDAR\r\nVERSION:2.0\r\n…\r\nEND:VCALENDAR\r\n
    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
    BookingSelectionConflict:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              enum:
                - CONFLICT
            message:
              type: string
          required:
            - code
            - message
        code:
          type: string
          enum:
            - item_selection_required
        items:
          type: array
          items:
            $ref: '#/components/schemas/BookingItem'
      required:
        - error
        - code
        - items
      description: >-
        Several items match the requested domain. Choose a booked_item_id from
        items (the same safe projection as get_booking) and repeat the request
        with booking_ref and booked_item_id.
    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
    Booking:
      type: object
      properties:
        booking_ref:
          type: string
          description: >-
            The Jinko booking reference of this booking. Looked up with the
            reference of one of its exchanges, it is still the booking’s own
            reference. Hand it to cancel, refund and exchange as `booking_ref`.
          example: JNK-XEVGW5
        booking_reference:
          type: string
          description: >-
            Deprecated: use `booking_ref` instead. The reference the booking was
            looked up with, which can be an exchange’s own reference.
          example: JNK-XEVGW5
          deprecated: true
        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: completed
        status:
          type: string
          description: >-
            The booking's state in Jinko's own booking and servicing flow. In
            progress: `pending`, `awaiting_payment`, `preparing`, `prepared`,
            `processing`, `confirming`. Final: `completed` (booked; for a
            flight, ticketed), `partial` (some items booked, others failed),
            `failed`, `cancelled` (nothing is booked any more: the checkout was
            never paid, or every item was cancelled), `expired_quote` (a quoted
            price, at checkout or for an exchange, expired before it was
            confirmed). Needing attention: `exchange_partial_failure`,
            `needs_review`. Treat the list as open: new values may be added. It
            changes only through Jinko's steps (payment, booking, ticketing, or
            a cancellation or exchange you request), never because an airline
            changed or cancelled a flight.
          example: completed
        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
        type:
          type: string
          description: What was booked — "flight" or "hotel".
          example: flight
        last_name:
          type: string
          example: Doe
        total_paid:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                What was captured for this booking, gross: refunds are NOT
                subtracted (the same figure as `paid` in `servicing_summary`;
                `net_paid` there is the figure after refunds). Absent when the
                captured amount is unknown, and when the booking was charged in
                more than one currency — read `servicing_summary`, one row per
                currency, then.
        refund_status:
          type: object
          properties:
            state:
              type: string
              description: '`in_progress`, `succeeded` or `failed`.'
              example: succeeded
            initiated_at:
              type: string
            completed_at:
              type: string
            refunded_amount:
              $ref: '#/components/schemas/Money'
        servicing_summary:
          type: array
          items:
            type: object
            properties:
              currency:
                type: string
                example: USD
              paid:
                $ref: '#/components/schemas/Money'
              refunded:
                $ref: '#/components/schemas/Money'
              net_paid:
                $ref: '#/components/schemas/Money'
              attention_required:
                type: boolean
            description: >-
              One currency’s servicing totals. `paid` includes the original
              charge as well as money collected for exchanges (settled
              ADD_COLLECT collections). `attention_required` is true on the
              booking currency’s row while a manual exchange case is open.
        items:
          type: array
          items:
            type: object
            properties:
              booked_item_id:
                type: string
                description: The item to name with `booked_item_id` on the next request.
                example: itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a
              item_id:
                type: integer
                minimum: 0
                exclusiveMinimum: true
                maximum: 9007199254740991
                description: >-
                  Deprecated: use `booked_item_id` instead. The booked item as
                  an integer.
                example: 42
                deprecated: true
              domain:
                type: string
              summary:
                type: string
              status:
                type: string
                description: >-
                  This item's state in Jinko's own booking and servicing flow.
                  In progress: `pending`, `awaiting_payment`, `preparing`,
                  `prepared`, `processing`, `confirming`. Final: `completed`
                  (booked; for a flight, ticketed), `failed`, `cancelled`
                  (nothing is booked any more: the checkout was never paid, or a
                  cancellation succeeded), `expired_quote` (a quoted price, at
                  checkout or for an exchange, expired before it was confirmed).
                  Needing attention: `exchange_partial_failure`, `needs_review`.
                  Treat the list as open: new values may be added. It changes
                  only through Jinko's steps (payment, booking, ticketing, or a
                  cancellation or exchange you request), never because an
                  airline changed or cancelled a flight.
                example: completed
              booking_ref:
                type: string
                description: >-
                  The Jinko booking reference of the booking this item belongs
                  to: the same value as the booking’s `booking_ref`, also after
                  an exchange.
                example: JNK-XEVGW5
              booking_reference:
                type: string
                description: >-
                  Deprecated: use `booking_ref` instead. The Jinko reference of
                  the cart this item lives on: after an exchange, the exchange’s
                  own reference.
                deprecated: true
              servicing:
                type: object
                properties:
                  can_refund:
                    type: boolean
                  can_void:
                    type: boolean
                  can_exchange:
                    type: boolean
                  refund_support_level:
                    type: string
                    enum:
                      - AUTO
                      - MANUAL_REQUIRED
                      - UNSUPPORTED
                  exchange_support_level:
                    type: string
                    enum:
                      - AUTO
                      - MANUAL_REQUIRED
                      - UNSUPPORTED
                  refund_unavailable_reason:
                    type: string
                  exchange_unavailable_reason:
                    type: string
                  refund_reason_code:
                    type: string
                  exchange_reason_code:
                    type: string
                  reason_code:
                    type: string
                  support_level:
                    type: string
                    enum:
                      - AUTO
                      - MANUAL_REQUIRED
                      - UNSUPPORTED
                  cancellation:
                    type: object
                    properties:
                      state:
                        type: string
                        description: >-
                          `none` when nothing has cancelled the item; otherwise
                          `in_progress`, `attention_required`, `succeeded` or
                          `failed`.
                        example: succeeded
                      operation:
                        type: string
                        example: svc_01J7ZR5Q2KME8V4T
                      reason:
                        type: string
                      park_deadline:
                        type: string
                      next_run_at:
                        type: string
                      paid:
                        $ref: '#/components/schemas/Money'
                      refund_due:
                        type: object
                        properties:
                          amount:
                            type: number
                            description: >-
                              Deprecated: use `amount_money` instead.
                              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: >-
                              Deprecated: use `amount_money` instead. 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
                            deprecated: true
                          currency:
                            type: string
                            description: >-
                              Deprecated: use `amount_money` instead. ISO 4217
                              currency code.
                            example: USD
                            deprecated: true
                          decimal_places:
                            type: integer
                            description: >-
                              Deprecated: use `amount_money` instead. 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
                            deprecated: 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: USD 412.50
                            deprecated: true
                          amount_money:
                            allOf:
                              - $ref: '#/components/schemas/MoneyValue'
                              - description: What the operation says the customer is owed.
                          penalty:
                            $ref: '#/components/schemas/Money'
                          source:
                            type: string
                            description: >-
                              Where the figure came from: `quoted` (what the
                              platform expects) or `provider_confirmed` (what
                              the supplier agreed to).
                            example: quoted
                      refunded:
                        type: object
                        properties:
                          amount:
                            type: number
                            description: >-
                              Deprecated: use `amount_money` instead.
                              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: >-
                              Deprecated: use `amount_money` instead. 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
                            deprecated: true
                          currency:
                            type: string
                            description: >-
                              Deprecated: use `amount_money` instead. ISO 4217
                              currency code.
                            example: USD
                            deprecated: true
                          decimal_places:
                            type: integer
                            description: >-
                              Deprecated: use `amount_money` instead. 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
                            deprecated: 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: USD 412.50
                            deprecated: true
                          amount_money:
                            allOf:
                              - $ref: '#/components/schemas/MoneyValue'
                              - description: >-
                                  What was refunded, as read back from the
                                  payment provider.
                          at:
                            type: string
                            example: '2026-09-03T12:30:00Z'
                          stripe_reference:
                            type: string
                            description: Deprecated. An internal payment reference.
                            example: re_3UBIxK2eZvKYlo2C
                            deprecated: true
                  exchange:
                    $ref: '#/components/schemas/ItemExchangeView'
                description: >-
                  This item’s servicing: its cancellation and exchange progress
                  and whether it can be refunded, voided or exchanged
                  (`can_refund`, `can_void`, `can_exchange`, the support levels
                  and reasons). With `check_eligibility: false` an active flight
                  item leaves those eligibility fields out, since the answer
                  needs the airline; hotel, car and ground items still state
                  them. Read the live refund or exchange check before
                  committing.
              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.
              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
              booked_ancillaries:
                type: array
                items:
                  $ref: '#/components/schemas/BookedAncillary'
              confirmation:
                type: object
                properties:
                  confirmation_number:
                    type: string
                    description: >-
                      Deprecated: use `supplier_references` instead. A
                      confirmation number for this item; when the airline’s own
                      locator is not known it can hold an id only Jinko’s
                      intermediary answers to.
                    deprecated: true
                  product_summary:
                    type: string
                  total_paid:
                    $ref: '#/components/schemas/Money'
                  details:
                    type: object
                    properties:
                      flight:
                        $ref: '#/components/schemas/BookingFlightDetails'
                      car:
                        type: object
                        properties:
                          due_at_desk:
                            $ref: '#/components/schemas/Money'
                          deposit:
                            $ref: '#/components/schemas/Money'
                          estimated_total:
                            $ref: '#/components/schemas/Money'
                          ancillaries:
                            type: array
                            items:
                              type: object
                              properties:
                                offer_id:
                                  type: string
                                label:
                                  type: string
                                quantity:
                                  type: integer
                                paid_at:
                                  type: string
                                price:
                                  $ref: '#/components/schemas/Money'
                          cancellation_fees:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                fee:
                                  $ref: '#/components/schemas/Money'
                                non_refundable:
                                  type: boolean
                                applicable_from:
                                  type: string
                                applicable_to:
                                  type: string
                      hotel:
                        $ref: '#/components/schemas/BookingHotelDetails'
              cancellation:
                type: object
                properties:
                  state:
                    type: string
                    example: confirmed
                  refund_method:
                    type: string
                  monetary_refund_minor:
                    type: integer
                    description: >-
                      Deprecated: use `monetary_refund_money` instead. The money
                      refund in minor units of `currency`, with no
                      `decimal_places`.
                    deprecated: true
                  voucher_refund_minor:
                    type: integer
                    description: >-
                      Deprecated: use `voucher_refund_money` instead. The
                      voucher refund in minor units of `currency`, with no
                      `decimal_places`.
                    deprecated: true
                  fee_minor:
                    type: integer
                    description: >-
                      Deprecated: use `fee_money` instead. The cancellation fee
                      in minor units of `currency`, with no `decimal_places`.
                    deprecated: true
                  currency:
                    type: string
                    description: >-
                      Deprecated: use `monetary_refund_money` instead. The
                      currency of the three `*_minor` figures; each `*_money`
                      field carries its own.
                    deprecated: true
                  monetary_refund_money:
                    allOf:
                      - $ref: '#/components/schemas/MoneyValue'
                      - description: The refund paid back as money.
                  voucher_refund_money:
                    allOf:
                      - $ref: '#/components/schemas/MoneyValue'
                      - description: The refund given as a supplier voucher.
                  fee_money:
                    allOf:
                      - $ref: '#/components/schemas/MoneyValue'
                      - description: The cancellation fee.
                  fee_known:
                    type: boolean
              exchange:
                type: object
                properties:
                  exchange_ref:
                    type: string
                  state:
                    type: string
                  delta_direction:
                    type: string
                    description: >-
                      `add_collect`, `refund` or `even`: which way the
                      difference moves.
                    example: add_collect
                  delta_amount_minor:
                    type: integer
                    description: >-
                      Deprecated: use `delta_amount_money` instead. The absolute
                      difference in minor units of `currency`, with no
                      `decimal_places`.
                    deprecated: true
                  new_total_minor:
                    type: integer
                    description: >-
                      Deprecated: use `new_total_money` instead. The replacement
                      rental total in minor units of `currency`, with no
                      `decimal_places`.
                    deprecated: true
                  currency:
                    type: string
                    description: >-
                      Deprecated: use `delta_amount_money` instead. The currency
                      of the two `*_minor` figures; each `*_money` field carries
                      its own.
                    deprecated: true
                  delta_amount_money:
                    allOf:
                      - $ref: '#/components/schemas/MoneyValue'
                      - description: >-
                          The ABSOLUTE difference between the old and the new
                          rental; `delta_direction` says which way it moves.
                  new_total_money:
                    allOf:
                      - $ref: '#/components/schemas/MoneyValue'
                      - description: The replacement rental’s total.
            required:
              - item_id
              - domain
        can_refund:
          type: boolean
          description: >-
            OR aggregate over items[].servicing.can_refund; select an item
            before acting.
          deprecated: true
        can_void:
          type: boolean
          description: >-
            OR aggregate over items[].servicing.can_void; select an item before
            acting.
          deprecated: true
        can_exchange:
          type: boolean
          description: >-
            OR aggregate over items[].servicing.can_exchange; select an item
            before acting.
          deprecated: true
        refund_support_level:
          type: string
          enum:
            - AUTO
            - MANUAL_REQUIRED
            - UNSUPPORTED
          description: Use items[].servicing.refund_support_level.
          deprecated: true
        exchange_support_level:
          type: string
          enum:
            - AUTO
            - MANUAL_REQUIRED
            - UNSUPPORTED
          description: Use items[].servicing.exchange_support_level.
          deprecated: true
        created_at:
          type: string
          example: '2026-05-20T09:14:00Z'
        calendar:
          $ref: '#/components/schemas/BookingCalendar'
      description: >-
        The booked trip. Minimally described — the platform sends more (items,
        per-item confirmations, provider state) and all of it reaches you. The
        two `*_support_level` fields are a SNAPSHOT: a fare’s void window closes
        with time, so before acting on a refund or exchange read the level from
        a live POST /v1/refund_check or POST /v1/exchange_shop rather than from
        here. The flight itinerary (`items[].confirmation.details.flight.legs`)
        is the one booked and ticketed. It is not refreshed from the airline,
        and no webhook reports an airline's schedule change or cancellation.
    BookingItem:
      type: object
      properties:
        booked_item_id:
          type: string
          description: The item to name with `booked_item_id` on the next request.
          example: itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a
        item_id:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          maximum: 9007199254740991
          description: >-
            Deprecated: use `booked_item_id` instead. The booked item as an
            integer.
          example: 42
          deprecated: true
        domain:
          type: string
        summary:
          type: string
        status:
          type: string
          description: >-
            This item's state in Jinko's own booking and servicing flow. In
            progress: `pending`, `awaiting_payment`, `preparing`, `prepared`,
            `processing`, `confirming`. Final: `completed` (booked; for a
            flight, ticketed), `failed`, `cancelled` (nothing is booked any
            more: the checkout was never paid, or a cancellation succeeded),
            `expired_quote` (a quoted price, at checkout or for an exchange,
            expired before it was confirmed). Needing attention:
            `exchange_partial_failure`, `needs_review`. Treat the list as open:
            new values may be added. It changes only through Jinko's steps
            (payment, booking, ticketing, or a cancellation or exchange you
            request), never because an airline changed or cancelled a flight.
          example: completed
        booking_ref:
          type: string
          description: >-
            The Jinko booking reference of the booking this item belongs to,
            also after an exchange.
          example: JNK-A0AUR2
        booking_reference:
          type: string
          description: >-
            Deprecated: use `booking_ref` instead. The Jinko reference of the
            cart this item lives on: after an exchange, the exchange’s own
            reference.
          deprecated: true
        servicing:
          $ref: '#/components/schemas/BookingItemServicing'
      required:
        - item_id
        - domain
    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.
    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.
    ItemExchangeView:
      type: object
      properties:
        state:
          type: string
          description: >-
            `attention_required` when the request is with Jinko support;
            `in_progress` when support is completing it; `succeeded` when
            completed; `failed` when support closed it.
          example: attention_required
        operation:
          type: string
          description: The operation is `exchange`.
          example: exchange
        reason:
          type: string
        park_deadline:
          type: string
        next_run_at:
          type: string
        paid:
          $ref: '#/components/schemas/Money'
        refund_due:
          type: object
          properties:
            amount:
              type: number
              description: >-
                Deprecated: use `amount_money` instead. 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: >-
                Deprecated: use `amount_money` instead. 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
              deprecated: true
            currency:
              type: string
              description: 'Deprecated: use `amount_money` instead. ISO 4217 currency code.'
              example: USD
              deprecated: true
            decimal_places:
              type: integer
              description: >-
                Deprecated: use `amount_money` instead. 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
              deprecated: 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: USD 412.50
              deprecated: true
            amount_money:
              allOf:
                - $ref: '#/components/schemas/MoneyValue'
                - description: What the operation says the customer is owed.
            penalty:
              $ref: '#/components/schemas/Money'
            source:
              type: string
              description: >-
                Where the figure came from: `quoted` (what the platform expects)
                or `provider_confirmed` (what the supplier agreed to).
              example: quoted
        refunded:
          type: object
          properties:
            amount:
              type: number
              description: >-
                Deprecated: use `amount_money` instead. 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: >-
                Deprecated: use `amount_money` instead. 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
              deprecated: true
            currency:
              type: string
              description: 'Deprecated: use `amount_money` instead. ISO 4217 currency code.'
              example: USD
              deprecated: true
            decimal_places:
              type: integer
              description: >-
                Deprecated: use `amount_money` instead. 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
              deprecated: 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: USD 412.50
              deprecated: true
            amount_money:
              allOf:
                - $ref: '#/components/schemas/MoneyValue'
                - description: What was refunded, as read back from the payment provider.
            at:
              type: string
              example: '2026-09-03T12:30:00Z'
            stripe_reference:
              type: string
              description: Deprecated. An internal payment reference.
              example: re_3UBIxK2eZvKYlo2C
              deprecated: true
      description: >-
        An exchange Jinko support handles by hand. Present only when the item
        has such a request; absent otherwise. `operation` is `exchange`. State
        `attention_required` means the request is with Jinko support;
        `in_progress` means support is completing it; `succeeded` means
        completed; `failed` means support closed the request. Hidden while the
        item has a cancellation (`cancellation.state` other than `none`). An
        exchange does not pay a price difference back; `refund_due` (the quoted
        refund) and `refunded` (what was refunded and when) appear only on an
        exchange quoted before that rule applied.
    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
    BookedAncillary:
      type: object
      properties:
        type:
          type: string
          enum:
            - seat
            - bag
            - meal
            - cabin_bag_upgrade
            - sports_equipment
            - priority_boarding
            - assistance
            - insurance
            - lounge
            - frequent_flyer
            - other
          description: >-
            What was booked: a seat, a bag, a meal or another service. Treat the
            list as open: new kinds may be added.
          example: seat
        seat_number:
          type: string
          example: 12B
        traveler_ref:
          type: string
          example: pax_1
        pax_ref_id:
          type: string
          description: 'Deprecated: use `traveler_ref` instead. Same value.'
          example: pax_1
          deprecated: true
        segment_ref_ids:
          type: array
          items:
            type: string
          example:
            - seg_1
        status:
          type: string
          enum:
            - confirmed
            - pending
            - failed
          description: >-
            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
          nullable: true
          description: >-
            Public partner-facing explanation of a failed or unresolved outcome;
            never internal diagnostics.
        price:
          $ref: '#/components/schemas/Money'
        refund:
          $ref: '#/components/schemas/SeatRefund'
      required:
        - type
        - status
      description: >-
        An ancillary selected for this booked item: a seat, a bag, a meal or
        another service. `seat_number` is set on a seat. Price is omitted for an
        included or free ancillary; otherwise it uses the item confirmation’s
        total_paid money shape, in the trip currency. Booking payment totals are
        unchanged by this list.
    BookingFlightDetails:
      type: object
      properties:
        pnr:
          type: string
          description: >-
            Deprecated: use `supplier_references` instead. The validating
            carrier’s record locator; when it is not known, an id only Jinko’s
            intermediary answers to.
          deprecated: true
        ticket_numbers:
          type: array
          items:
            type: string
          description: >-
            The ticket numbers issued for this item. Absent when none is
            recorded.
          example:
            - '0010000000001'
            - '0010000000002'
        airline_locators:
          type: array
          items:
            type: object
            properties:
              carrier_code:
                type: string
              carrier_name:
                type: string
              locator:
                type: string
          description: >-
            Deprecated: use `supplier_references` instead. Each airline's own
            record locator, one per carrier; the item's `supplier_references`
            lists the same locators.
          deprecated: true
        trip_type:
          type: string
          description: >-
            The itinerary shape: `one_way`, `round_trip`, `open_jaw` or
            `multi_city`. Absent on a booking confirmed before it was recorded.
          example: round_trip
        origin_city_code:
          type: string
        destination_city_code:
          type: string
        cabin_class:
          type: string
        validating_carrier:
          type: string
        validating_carrier_info:
          type: object
          properties:
            code:
              type: string
            name:
              type: string
            logo:
              type: string
        legs:
          type: array
          items:
            $ref: '#/components/schemas/BookingFlightJourney'
          description: >-
            Every journey of the itinerary in flown order, as booked and
            ticketed. It is not refreshed from the airline afterwards: a
            schedule change or cancellation made by the airline is not reflected
            here. Absent on a booking confirmed before legs were recorded. After
            an exchange that re-issued part of the itinerary it holds the
            re-issued journeys only, so read `trip_type` rather than counting
            legs.
        outbound_flight:
          $ref: '#/components/schemas/BookingFlightJourney'
        inbound_flight:
          $ref: '#/components/schemas/BookingFlightJourney'
        is_refundable:
          type: boolean
          description: >-
            Whether the fare allows a refund, from its rules: an estimate, like
            `fare_conditions`. Absent when the fare states nothing.
        is_changeable:
          type: boolean
          description: >-
            Whether the fare allows a change, from its rules: an estimate, like
            `fare_conditions`. Absent when the fare states nothing.
        refund_policy:
          type: string
          description: >-
            The fare’s refund rule in words: an estimate, like
            `fare_conditions`.
        change_policy:
          type: string
          description: >-
            The fare’s change rule in words: an estimate, like
            `fare_conditions`.
        carry_on_baggage:
          type: string
        checked_baggage:
          type: string
        fare_conditions:
          $ref: '#/components/schemas/BookingFareConditions'
      description: >-
        Flight confirmation details as booked and ticketed. `outbound_flight`
        and `inbound_flight` are `legs[0]` and `legs[1]` under older names;
        `inbound_flight` is the second journey, not necessarily a return.
    BookingHotelDetails:
      type: object
      properties:
        hotel_id:
          type: string
          example: lp1d2c3
        hotel_name:
          type: string
          example: NH Paris Opéra Faubourg
        address:
          type: string
        star_rating:
          type: integer
          example: 4
        main_photo_url:
          type: string
        check_in:
          type: string
          example: '2026-11-15'
        check_out:
          type: string
          example: '2026-11-17'
        num_nights:
          type: integer
          example: 2
        room_name:
          type: string
          example: Standard Double
        room_description:
          type: string
        max_occupancy:
          type: integer
          example: 2
        board_type:
          type: string
          description: >-
            The board code of the meal plan the guest bought, as the rate sold
            it — the same value the trip item’s `hotel_terms.board_type` stated
            at checkout (`RO` room only, `BB` bed and breakfast, `HB` half
            board, …; some suppliers use `BI` for breakfast included). On a
            multi-room booking, present only when every room is on the same
            board; read `rooms[].board_type` otherwise. Absent on bookings
            confirmed before the meal plan was recorded.
          example: BI
        board_name:
          type: string
          description: >-
            The meal plan the guest bought, in words, as the rate sold it — the
            same value the trip item’s `hotel_terms.board_name` stated at
            checkout. On a multi-room booking the rooms’ distinct boards joined
            with "; ". Absent on bookings confirmed before the meal plan was
            recorded.
          example: Breakfast Included
        is_refundable:
          type: boolean
          example: true
        cancellation_summary:
          type: string
        free_cancellation_until:
          type: string
        hotel_confirmation_number:
          type: string
          description: >-
            Deprecated: use `supplier_references` instead. The hotel’s own
            confirmation number, once the property issued one.
          deprecated: true
        rooms:
          type: array
          items:
            type: object
            properties:
              room_number:
                type: integer
                example: 1
              room_name:
                type: string
                example: Twin Room
              board_type:
                type: string
                example: BB
              board_name:
                type: string
                example: BED AND BREAKFAST
              is_refundable:
                type: boolean
              cancellation_summary:
                type: string
              free_cancellation_until:
                type: string
          description: >-
            Each room of a multi-room booking with its own meal plan and
            cancellation terms, in room order. Absent on a single-room booking.
      description: >-
        The stay a booked hotel item confirms: the property, the dates, the
        room, the meal plan the guest bought (`board_type`, `board_name`) and
        the cancellation terms read at checkout. The platform sends more and all
        of it reaches you.
    BookingCalendar:
      type: object
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/BookingCalendarFile'
          description: >-
            The iCalendar files this booking is carried in, cancellation first
            and then invitation — the order the emails attach them in. Never
            empty: a booking with nothing to put in a calendar omits `calendar`
            altogether.
      description: >-
        The calendar entries for this booking, as iCalendar files. Absent — not
        null, and never an empty list — when the booking holds no flight and no
        hotel, and whenever the files could not be built.
    BookingItemServicing:
      type: object
      properties:
        can_refund:
          type: boolean
        can_void:
          type: boolean
        can_exchange:
          type: boolean
        refund_support_level:
          type: string
          enum:
            - AUTO
            - MANUAL_REQUIRED
            - UNSUPPORTED
        exchange_support_level:
          type: string
          enum:
            - AUTO
            - MANUAL_REQUIRED
            - UNSUPPORTED
        refund_unavailable_reason:
          type: string
        exchange_unavailable_reason:
          type: string
        refund_reason_code:
          type: string
        exchange_reason_code:
          type: string
        reason_code:
          type: string
        support_level:
          type: string
          enum:
            - AUTO
            - MANUAL_REQUIRED
            - UNSUPPORTED
      required:
        - can_refund
        - can_void
        - can_exchange
      description: >-
        Eligibility of this booked item and its current product. Read the live
        refund or exchange check before committing; eligibility can change with
        time.
    SeatRefund:
      type: object
      properties:
        offer_id:
          type: string
        seat_number:
          type: string
          example: 12B
        traveler_ref:
          type: string
          example: pax_1
        pax_ref_id:
          type: string
          description: 'Deprecated: use `traveler_ref` instead. Same value.'
          example: pax_1
          deprecated: true
        status:
          type: string
          enum:
            - pending_airline_refund
            - refunded
            - not_refunded
        amount:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                The seat price while pending, then the actual customer refund
                amount (zero when not refunded). Not part of the separate quoted
                fare refund.
        carrier:
          type: string
          description: Airline display name.
          example: United
        message:
          type: string
          description: Customer-facing sentence explaining the seat refund.
          example: Your paid seat will be refunded once United refunds Jinko.
        airline_refund_registered:
          type: boolean
          description: >-
            Whether the airline refund has been registered with the payment
            provider.
      required:
        - offer_id
        - seat_number
        - status
        - amount
        - carrier
        - message
        - airline_refund_registered
      description: >-
        A carrier-settled paid seat is refunded once the airline refunds Jinko.
        It is not part of the quoted fare refund; track its separate status
        here.
    BookingFlightJourney:
      type: object
      properties:
        origin:
          type: string
        origin_name:
          type: string
        origin_airport_name:
          type: string
        destination:
          type: string
        destination_name:
          type: string
        destination_airport_name:
          type: string
        departure_datetime:
          type: string
          description: >-
            First departure of the journey. The scheduled time as booked, in the
            airport's local time with its UTC offset (RFC 3339), e.g.
            `2026-11-27T18:05:00-05:00`. Without an offset when the airport's
            time zone is unknown.
          example: '2026-11-27T18:05:00-05:00'
        arrival_datetime:
          type: string
          description: >-
            Final arrival of the journey. The scheduled time as booked, in the
            airport's local time with its UTC offset (RFC 3339), e.g.
            `2026-11-27T18:05:00-05:00`. Without an offset when the airport's
            time zone is unknown.
          example: '2026-11-28T07:25:00+01:00'
        duration_minutes:
          type: integer
        stops:
          type: integer
        stop_infos:
          type: array
          items:
            type: object
            properties:
              airport_code:
                type: string
              duration_minutes:
                type: integer
        airline:
          type: string
        airline_name:
          type: string
        airline_logo:
          type: string
        segments:
          type: array
          items:
            $ref: '#/components/schemas/BookingFlightSegment'
      description: >-
        One journey of the booked and ticketed itinerary, with its flight
        segments in flown order.
    BookingFareConditions:
      type: object
      properties:
        rules:
          type: array
          items:
            $ref: '#/components/schemas/BookingFareRule'
      required:
        - rules
      description: >-
        The fare’s refund and change rules as kept with the booking, returned
        whatever `check_eligibility` says and read without asking the airline.
        An estimate: the airline can refund or void a ticket the rules call
        non-refundable (on the day of issue, for example) and the reverse.
        Whether a refund or change can be done is confirmed by
        `items[].servicing`, the refund check and the refund or exchange
        preview.
    BookingCalendarFile:
      type: object
      properties:
        method:
          type: string
          description: >-
            The iTIP method (RFC 5546) this file carries: `REQUEST` for the
            events the booking still holds, `CANCEL` for the ones it no longer
            does. One file carries exactly one method — a booking that both
            retires and confirms flights, which is what an exchange does, comes
            back as two files rather than one mixed one.
          example: REQUEST
        filename:
          type: string
          description: >-
            The name the confirmation or cancellation email attached this same
            file under.
          example: jinko-JNK-A0AUR2.ics
        content_type:
          type: string
          description: >-
            The media type, including the `method` parameter. Attach or serve
            the file under this exact value: the method parameter is what makes
            a mail client act on the file instead of storing it as a plain
            attachment.
          example: text/calendar; charset=utf-8; method=REQUEST
        content:
          type: string
          description: >-
            The iCalendar file itself. Real CRLF line endings, as iCalendar
            requires — the example escapes them only so it can be read here.
            Byte-identical to what the email carried for the current state of
            this booking.
          example: BEGIN:VCALENDAR\r\nVERSION:2.0\r\n…\r\nEND:VCALENDAR\r\n
    BookingFlightSegment:
      type: object
      properties:
        airline:
          type: string
          description: Marketing carrier code.
        airline_name:
          type: string
          description: Marketing carrier name.
        airline_logo:
          type: string
          description: Marketing carrier logo URL.
        flight_number:
          type: string
          description: Flight number without the carrier code.
          example: '57'
        operating_carrier:
          type: string
          description: Operating carrier code.
        operating_carrier_info:
          type: object
          properties:
            code:
              type: string
            name:
              type: string
            logo:
              type: string
        aircraft:
          type: string
          example: '777'
        departure_airport:
          type: string
        departure_city:
          type: string
        departure_city_name:
          type: string
        arrival_airport:
          type: string
        arrival_city:
          type: string
        arrival_city_name:
          type: string
        departure_time:
          type: string
          description: >-
            The scheduled time as booked, in the airport's local time with its
            UTC offset (RFC 3339), e.g. `2026-11-27T18:05:00-05:00`. Without an
            offset when the airport's time zone is unknown.
          example: '2026-11-27T18:05:00-05:00'
        arrival_time:
          type: string
          description: >-
            The scheduled time as booked, in the airport's local time with its
            UTC offset (RFC 3339), e.g. `2026-11-27T18:05:00-05:00`. Without an
            offset when the airport's time zone is unknown.
          example: '2026-11-28T07:25:00+01:00'
        departure_time_local:
          type: string
          description: The same wall-clock time without an offset (`YYYY-MM-DDTHH:MM:SS`).
          example: '2026-11-27T18:05:00'
        arrival_time_local:
          type: string
          description: The same wall-clock time without an offset (`YYYY-MM-DDTHH:MM:SS`).
          example: '2026-11-28T07:25:00'
        duration_minutes:
          type: integer
        layover_minutes:
          type: integer
          description: >-
            Minutes on the ground after this segment, before the next one
            departs; absent on the last segment of a journey.
      description: >-
        A flight segment as booked and ticketed. No terminal and no per-segment
        status are given.
    BookingFareRule:
      type: object
      properties:
        rule_type:
          type: string
          description: >-
            What the rule governs: `CANCEL`, `CHANGE`, `CANCEL_AFTER_DEPARTURE`,
            `CHANGE_AFTER_DEPARTURE` or `NAME_CHANGE`. Treat the list as open.
          example: CHANGE
        penalty:
          type: string
          description: >-
            `NOT_ALLOWED`, `NO_PENALTY` or `ALLOWED_WITH_FEE`. Treat the list as
            open.
          example: ALLOWED_WITH_FEE
        penalty_fee:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                The fee when the airline states one, in the currency the airline
                states it in, which can differ from the fare’s.
        fee_unknown:
          type: boolean
          description: The operation is allowed and the airline states nothing about a fee.
        min_minutes_before_departure:
          type: integer
        max_minutes_before_departure:
          type: integer
        max_minutes_after_departure:
          type: integer
        channels:
          type: array
          items:
            type: string
        charge_model:
          type: array
          items:
            type: string
        direction:
          type: string
      required:
        - rule_type
        - penalty
  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.