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

> List the seats, bags and special requests that can be added to a ticketed booking

For each booked flight: whether anything can be bought after ticketing and, if so, the seat maps and bag offers on sale. Buy with `POST /v1/trip` add\_item (`trip_item_token`, `traveler_ref`, and `seat_number` for a seat) without a `trip_id`, then `POST /v1/checkout` and pay that trip. The purchase has its own reference, and get\_booking lists what it bought on the booked item. A bag offer is a number of bags of one kind on one journey: pick the offer for the number wanted. Seats and bags are sold only when paid. Special meals and assistance requests (offers with an `ssr_code`) are free and go in a trip of their own: adding one to a trip that holds a paid seat or bag, or the reverse, is refused with 400 `BAD_REQUEST` and `error.field` `add_item.trip_item_token`. That trip's checkout answers `payment_type: none` and `status: fulfilling`, with nothing to pay, and get\_booking lists each request on the booked item with its `status`. A traveler who already holds a seat on a segment cannot buy a second one, and a request the traveler already holds on a segment is not offered again. Reads only.


## OpenAPI

````yaml api-reference/public-api.yaml POST /v1/get_booking_ancillaries
openapi: 3.0.0
info:
  title: Jinko Public API
  version: 0.148.2
  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_ancillaries:
    post:
      tags:
        - Post-booking
      summary: >-
        List the seats, bags and special requests that can be added to a
        ticketed booking
      description: >-
        For each booked flight: whether anything can be bought after ticketing
        and, if so, the seat maps and bag offers on sale. Buy with `POST
        /v1/trip` add_item (`trip_item_token`, `traveler_ref`, and `seat_number`
        for a seat) without a `trip_id`, then `POST /v1/checkout` and pay that
        trip. The purchase has its own reference, and get_booking lists what it
        bought on the booked item. A bag offer is a number of bags of one kind
        on one journey: pick the offer for the number wanted. Seats and bags are
        sold only when paid. Special meals and assistance requests (offers with
        an `ssr_code`) are free and go in a trip of their own: adding one to a
        trip that holds a paid seat or bag, or the reverse, is refused with 400
        `BAD_REQUEST` and `error.field` `add_item.trip_item_token`. That trip's
        checkout answers `payment_type: none` and `status: fulfilling`, with
        nothing to pay, and get_booking lists each request on the booked item
        with its `status`. A traveler who already holds a seat on a segment
        cannot buy a second one, and a request the traveler already holds on a
        segment is not offered again. Reads only.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetBookingAncillariesRequest'
      responses:
        '200':
          description: What can be bought for the booking
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetBookingAncillariesResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: BAD_REQUEST
                  message: Malformed JSON in request body.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: AUTH_REQUIRED
                  message: Invalid or expired API key.
                  doc_url: https://docs.gojinko.com/authentication/api-keys
        '402':
          description: Payment required — organization balance exhausted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: PAYMENT_REQUIRED
                  message: >-
                    Insufficient balance — this call costs $0.0150 and your
                    organization has $0.0000 available. Top up at
                    https://dashboard.gojinko.com/developers/billing/topup
                  doc_url: https://docs.gojinko.com/concepts/errors
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: NOT_FOUND
                  message: Resource not found.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '409':
          description: The operation conflicts with the current state of the resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: CONFLICT
                  message: >-
                    The operation conflicts with the current state of the
                    resource.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '410':
          description: The resource this request names no longer exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: GONE
                  message: The resource no longer exists.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: BAD_REQUEST
                  message: A required field is missing or invalid.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '429':
          description: Rate limit or quota exceeded
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying. Absent when no interval
                applies.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: RATE_LIMITED
                  message: Too many requests. Retry after the Retry-After delay.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '502':
          description: The travel provider rejected the request, or an upstream call failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: UPSTREAM_REJECTED
                  message: The request was declined for this offer. Try another offer.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '503':
          description: No travel provider can serve the request right now
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying. Absent when no interval
                applies.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: UPSTREAM_UNAVAILABLE
                  message: >-
                    The service is temporarily unavailable. Retry after the
                    Retry-After delay.
                  doc_url: https://docs.gojinko.com/concepts/errors
        '504':
          description: The travel provider did not answer in time
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: UPSTREAM_TIMEOUT
                  message: >-
                    The request timed out before a result was available. Retry
                    the request.
                  doc_url: https://docs.gojinko.com/concepts/errors
      security:
        - ApiKeyAuth: []
        - BearerAuth: []
components:
  schemas:
    GetBookingAncillariesRequest:
      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: The surname on the booking, as for a guest get_booking.
          example: Doe
        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
      required:
        - booking_ref
        - last_name
    GetBookingAncillariesResponse:
      type: object
      properties:
        booking_ref:
          type: string
          example: JNK-A0AUR2
        items:
          type: array
          items:
            $ref: '#/components/schemas/BookingAncillariesItem'
        refund_policy:
          type: string
          description: >-
            What is bought after ticketing is non-refundable. Special meal and
            assistance requests are free.
          example: non_refundable
      required:
        - booking_ref
        - items
        - refund_policy
    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
                - SUPPORT_REQUIRED
              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
    BookingAncillariesItem:
      type: object
      properties:
        booked_item_id:
          type: string
          example: itm_…
        domain:
          type: string
          example: flight
        summary:
          type: string
          example: FRA→JFK 2026-11-02
        purchasable:
          type: boolean
        not_purchasable_reason:
          type: string
          enum:
            - not_ticketed
            - evidence_missing
            - passenger_details_missing
            - provider_unsupported
            - servicing_in_progress
            - past_deadline
          description: >-
            Why nothing can be bought for this item: `not_ticketed`;
            `evidence_missing` (the ticket details an order needs are not known,
            or the item was exchanged); `passenger_details_missing` (a date of
            birth); `provider_unsupported`; `servicing_in_progress` (a refund or
            exchange is running); `past_deadline` (the purchase closes 24 hours
            before departure).
        catalog_status:
          type: string
          enum:
            - ready
            - pending
            - unavailable
          description: '`pending`: the offers are still loading; call again shortly.'
        catalog_expires_at:
          type: string
        purchase_deadline:
          type: string
        travelers:
          type: array
          items:
            $ref: '#/components/schemas/BookingAncillariesTraveler'
        available_ancillaries:
          type: array
          items:
            $ref: '#/components/schemas/BookingAncillaryOffer'
        already_held:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
                example: seat
              ssr_code:
                type: string
                description: >-
                  Special meal and assistance lines only: the standard airline
                  code requested.
              display_label:
                type: string
                description: The label to show for this line.
              failure_reason:
                type: string
                description: >-
                  A sentence to show the traveller about an unresolved outcome;
                  never internal diagnostics. On a special meal or assistance
                  request still `pending`, it says that the airline has not
                  answered yet.
              seat_number:
                type: string
                example: 12C
              traveler_ref:
                type: string
                example: pax_1
              segment_ref_ids:
                type: array
                items:
                  type: string
              status:
                type: string
                enum:
                  - confirmed
                  - pending
                  - failed
              refund_policy:
                type: string
                enum:
                  - non_refundable
                description: Present on a paid seat, bag or meal that is non-refundable.
              purchase:
                type: string
                enum:
                  - post_booking
                description: >-
                  post_booking for a seat or bag bought after ticketing; absent
                  for one sold with the booking.
              purchase_booking_ref:
                type: string
                description: >-
                  The purchase's own reference; get_booking resolves it to this
                  booking.
                example: JNK-B7Q2M1
            required:
              - type
      required:
        - domain
        - purchasable
        - available_ancillaries
        - already_held
    BookingAncillariesTraveler:
      type: object
      properties:
        traveler_ref:
          type: string
          example: pax_1
        traveler_type:
          type: string
          enum:
            - adult
            - child
            - infant
          example: adult
        first_name:
          type: string
        last_name:
          type: string
      required:
        - traveler_ref
    BookingAncillaryOffer:
      type: object
      properties:
        trip_item_token:
          type: string
          description: >-
            Pass to `POST /v1/trip` add_item without a `trip_id`: the purchase
            is a trip of its own. A seat, bag, special meal or assistance offer
            also takes `traveler_ref` (and `seat_number` for a seat). Opaque;
            valid until `catalog_expires_at`.
          example: pba_3f9c1a27e4b8d0516c2e9f0a7b3d4e15
        type:
          type: string
          enum:
            - seat
            - bag
            - meal
            - assistance
          example: seat
        ssr_code:
          type: string
          description: >-
            Special meal and assistance offers only: the standard airline code
            of the request, e.g. `WCHR` or `VGML`. Such an offer is free: it has
            no `price_per_unit_money`. It goes in a trip of its own: a trip
            holds either paid seats and bags or special meal and assistance
            requests, never both.
          example: WCHR
        applicable_pax_types:
          type: array
          items:
            type: string
            enum:
              - adult
              - child
              - infant
          description: >-
            Eligible `traveler_type` values for this offer. When absent, any
            traveller is eligible. Add it with that traveller's `traveler_ref`
            from `travelers[]`.
          example:
            - child
        display_label:
          type: string
          example: 2 checked bags, 23 kg
        price_per_unit_money:
          allOf:
            - $ref: '#/components/schemas/MoneyValue'
            - description: >-
                A bag offer's price for the bags it names, per traveler. A seat
                offer prices each seat in `seat_map`. Price Drop Protection is
                free: 0. A special meal or assistance offer (`ssr_code`) has
                none: it is free.
        scope:
          type: string
          example: PER_PAX_PER_SEGMENT
        segment_ref_ids:
          type: array
          items:
            type: string
          example:
            - seg_1
        seat_map:
          type: object
          properties:
            segment_ref_id:
              type: string
              example: seg_1
            flight_number:
              type: string
              example: LH400
            seats:
              type: array
              items:
                type: object
                properties:
                  seat_number:
                    type: string
                    example: 14A
                  available:
                    type: boolean
                  characteristics:
                    type: array
                    items:
                      type: string
                    example:
                      - WINDOW
                  chargeable:
                    type: boolean
                  price_money:
                    $ref: '#/components/schemas/MoneyValue'
                required:
                  - seat_number
      required:
        - trip_item_token
    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.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    BearerAuth:
      type: http
      scheme: bearer
      description: A jnk_ API key sent as a bearer token.

````

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