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

# hotel-cancel-commit

> Cancel a hotel booking against a quote the customer accepted

Start the cancellation the preview described. The body is the `quote` handle and the `acknowledged` figure PLUS the same booking\_ref, item\_id and last\_name the preview took: ownership is re-checked here rather than carried by the handle, so they have to be sent again. `acknowledged` is the refund the customer was shown, copied from the preview as it arrived (`value` and `decimal_places` included): if your figure differs from the still-live quote’s refund, the call is refused with 409 `quote_drift`. `retry_quote_id` is that same quote’s handle and `current.refund` its figure. Show it to the customer, then commit again with that handle and figure. Nothing is cancelled. If the supplier’s policy moved since the quote, `quote_drift` has no `retry_quote_id`; preview again. The other refusals are 409 `QUOTE_EXPIRED` (run hotel\_cancel\_preview again), `active_operation_exists` (poll the `active_operation` when present instead of starting a second one), `not_cancellable` and `funds_unavailable`. Success does NOT mean the money has moved: cancelling at the supplier and refunding the customer are separate steps, so the answer is an `operation` handle to poll with POST /v1/hotel\_cancel\_status.


## OpenAPI

````yaml api-reference/public-api.yaml POST /v1/hotel_cancel_commit
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/hotel_cancel_commit:
    post:
      tags:
        - Post-booking
      summary: Cancel a hotel booking against a quote the customer accepted
      description: >-
        Start the cancellation the preview described. The body is the `quote`
        handle and the `acknowledged` figure PLUS the same booking_ref, item_id
        and last_name the preview took: ownership is re-checked here rather than
        carried by the handle, so they have to be sent again. `acknowledged` is
        the refund the customer was shown, copied from the preview as it arrived
        (`value` and `decimal_places` included): if your figure differs from the
        still-live quote’s refund, the call is refused with 409 `quote_drift`.
        `retry_quote_id` is that same quote’s handle and `current.refund` its
        figure. Show it to the customer, then commit again with that handle and
        figure. Nothing is cancelled. If the supplier’s policy moved since the
        quote, `quote_drift` has no `retry_quote_id`; preview again. The other
        refusals are 409 `QUOTE_EXPIRED` (run hotel_cancel_preview again),
        `active_operation_exists` (poll the `active_operation` when present
        instead of starting a second one), `not_cancellable` and
        `funds_unavailable`. Success does NOT mean the money has moved:
        cancelling at the supplier and refunding the customer are separate
        steps, so the answer is an `operation` handle to poll with POST
        /v1/hotel_cancel_status.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/HotelCancelCommitRequest'
      responses:
        '200':
          description: The cancellation was accepted and is running
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HotelCancelCommitResponse'
        '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: Unknown booking, or one this credential may not read.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: NOT_FOUND
                  message: booking not found
        '409':
          description: >-
            The commit cannot run as quoted; nothing was cancelled. `code` says
            which case, as a sibling of `error` — see `ServicingConflictCode`
            for the closed list and what each one asks of you. A booking that is
            no longer active is refused with `code: not_cancellable`,
            `reason_code: booking_not_active` and a platform sentence in
            `error.message`, when the caller may service it. A 409 whose `code`
            is outside that list is NOT a servicing refusal: it arrives as the
            plain error envelope, with no `code` beside it.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ServicingConflictResponse'
                  - $ref: '#/components/schemas/BookingSelectionConflict'
              example:
                error:
                  code: CONFLICT
                  message: >-
                    Your acknowledged figure differs from the quote’s refund;
                    nothing was cancelled. Show the customer `current.refund`,
                    then commit again with `retry_quote_id` (the same quote
                    handle) and that figure.
                code: quote_drift
                requote: svq_01J8AB4N7GLY3Q0D
                current:
                  refund:
                    value: 20500
                    currency: USD
                    decimal_places: 2
        '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:
    HotelCancelCommitRequest:
      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
        booked_item_id:
          type: string
          pattern: ^itm_[a-z2-7]+$(?![\s\S])
          description: >-
            The booked item, from get_booking items[].booked_item_id. Preserved
            across exchanges. Omit only when the booking has exactly one item of
            the requested domain; otherwise a 409 returns items to choose from.
          example: itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a
        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
        provider_reference:
          type: string
          minLength: 1
          description: >-
            Deprecated: name the booking with booking_ref and booked_item_id
            from get_booking. Names the booking instead of booking_ref and
            last_name, never beside it, and needs a credential that owns the
            booking. Accepted until 2027-04-30; a request that sends it is
            answered with `Deprecation` and `Sunset` headers.
          deprecated: true
        intent:
          $ref: '#/components/schemas/IntentInput'
        quote_id:
          type: string
          description: >-
            The `quote_id` from a preceding POST /v1/hotel_cancel_preview. Binds
            this commit to the figures that quote reported.
          example: svq_01J7ZR3M8FKX2P9C
        acknowledged:
          type: object
          properties:
            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: 25000
            currency:
              type: string
              minLength: 1
              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
          required:
            - value
            - currency
            - decimal_places
          description: >-
            The refund the customer was shown — copy the preview's
            `refund.amount_money` across. Copying the whole `refund` object, as
            older integrations do, is still accepted. All three of `value`
            (minor units), `currency` and `decimal_places` are REQUIRED: the
            platform compares this against the refund as it stands, and a figure
            whose scale is unstated cannot be compared. `amount` is not accepted
            in its place. Any other key, such as `display` or `basis`, is
            ignored. A mismatch against a still-live quote’s refund is answered
            409 `quote_drift`. `retry_quote_id` is that same quote’s handle and
            `current.refund` its figure. Show it to the customer, then commit
            again with that handle and figure. Nothing is cancelled.
      required:
        - quote_id
        - acknowledged
      example:
        booking_ref: JNK-H1ZK90
        last_name: Doe
        quote_id: svq_01J7ZR3M8FKX2P9C
        acknowledged:
          value: 25000
          currency: USD
          decimal_places: 2
    HotelCancelCommitResponse:
      type: object
      properties:
        operation:
          type: string
          description: >-
            The cancellation this call started ("svc_…"). Poll it with POST
            /v1/hotel_cancel_status; it is the only handle that reports how the
            supplier call and the refund ended.
          example: svc_01J7ZR5Q2KME8V4T
        state:
          $ref: '#/components/schemas/ServicingState'
    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
    ServicingConflictResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: CONFLICT
            message:
              type: string
            doc_url:
              type: string
          required:
            - code
            - message
        code:
          $ref: '#/components/schemas/ServicingConflictCode'
        reason_code:
          type: string
          pattern: ^[A-Za-z_]{1,64}$
          description: >-
            Machine-readable reason for the servicing refusal.
            `already_cancelled` means this booking already has a successful
            cancellation recorded by Jinko; it is not a supplier answer.
            `booking_not_active` means get_booking returns a booking whose
            status is failed (for example, after payment), expired_quote,
            pending or exchange_partial_failure. Refund and hotel servicing
            routes refuse it with `code: not_cancellable` and a platform
            sentence in `error.message`, to a caller who may service the
            booking; any other caller gets the same 404 as for an unknown
            booking.
          example: already_cancelled
        retry_quote_id:
          type: string
          description: >-
            The quote to commit against when your acknowledged figure differs
            from a still-live quote’s refund (`quote_drift`). This is the same
            `quote_id`, not a new one. Show the customer `current.refund`, then
            commit again with this `quote_id` and that figure. Absent on
            `QUOTE_EXPIRED`, `superseded`, or a hotel `quote_drift` because the
            supplier’s policy moved since the quote. Preview again in those
            cases.
          example: svq_01J8AB4N7GLY3Q0D
        requote:
          type: string
          description: 'Deprecated: use `retry_quote_id` instead. Same value.'
          example: svq_01J8AB4N7GLY3Q0D
          deprecated: true
        current:
          type: object
          properties:
            refund:
              $ref: '#/components/schemas/Money'
          description: >-
            The quote’s refund, on `quote_drift`. When `retry_quote_id` is
            present, show this figure to the customer, then commit again with
            that handle and this figure.
        active_operation:
          type: string
          description: >-
            The operation already running on this booking, on
            `active_operation_exists`. Present when the running operation
            belongs to this booking and can be polled with the status route; it
            may be absent otherwise. Poll it with the status route for its
            domain — POST /v1/hotel_cancel_status or POST
            /v1/flight_refund_status.
          example: svc_01J7ZR5Q2KME8V4T
        shortfall:
          allOf:
            - $ref: '#/components/schemas/Money'
            - description: >-
                How much of the refund could not be reserved, on
                `funds_unavailable`. The refusal is about money still moving on
                the original payment, not about this booking, so this is the
                figure that says how much has to clear before a commit can
                succeed.
        blocking:
          type: array
          items:
            type: string
          description: >-
            What is holding that money, on `funds_unavailable`: the refunds
            already in flight against the same payment, which have to settle
            before this one can be reserved. Opaque handles — read them as
            identity, do not parse them. This is what to wait on; without it,
            "retry later" has nothing behind it.
          example:
            - re_3UBIxK2eZvKYlo2C
      required:
        - error
        - code
    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
    ServicingState:
      type: string
      enum:
        - in_progress
        - attention_required
        - succeeded
        - failed
      description: >-
        Where the cancellation has got to. `in_progress` — running; keep
        polling. `attention_required` — stalled on something a person at Jinko
        has to resolve (`reason` names it); keep polling, and do not report it
        to the customer as a failure, because the booking may already be
        cancelled at the supplier. `succeeded` and `failed` are terminal: the
        supplier outcome and the money are both settled and nothing further will
        change.
    ServicingConflictCode:
      type: string
      enum:
        - quote_drift
        - QUOTE_EXPIRED
        - active_operation_exists
        - not_cancellable
        - funds_unavailable
        - superseded
      description: >-
        Which refusal this is. `quote_drift` — your acknowledged figure differs
        from the still-live quote’s refund. `retry_quote_id` is that same
        quote’s handle and `current.refund` its figure. Show it to the customer,
        then commit again with that handle and figure. If the supplier’s policy
        moved since the quote, `quote_drift` has no `retry_quote_id`; preview
        again. `QUOTE_EXPIRED` — the quote stopped binding; take a fresh one.
        `active_operation_exists` — one cancellation is already running on this
        booking; poll `active_operation` when present instead of starting a
        second. `not_cancellable` — usually the supplier refuses to cancel this
        booking as it stands (already cancelled, never confirmed), with its
        reason in `error.message`. When `reason_code` is `already_cancelled`,
        Jinko already recorded a successful cancellation for this booking; this
        is not a supplier answer. The preview answers it too, so it is not a
        commit-only case. `booking_not_active` means the booking is no longer
        active; `error.message` is the platform’s sentence. `funds_unavailable`
        — the original payment cannot cover the refund yet; `shortfall` is how
        much is missing and `blocking` names the refunds that have to settle
        first. `superseded` — the item this quote named is no longer the live
        one with the supplier (an exchange moved it); preview again; there is no
        `retry_quote_id`. In every case NOTHING was cancelled.
    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.
    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
    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.
  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.