Post-booking

Check the status of an exchange

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.

post/v1/exchange_status

Request

  • Base URL
    https://api.gojinko.com
  • URL
    https://api.gojinko.com/v1/exchange_status
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Request body

booking_refstring

Jinko booking reference. Call get_booking first, then select its booked_item_id for servicing.

booked_item_idstring

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.

last_namestring

Required for guest lookup. A credential that owns the booking may omit it; ownership is checked by the platform.

order_idstring

Deprecated: name the booking with booking_ref and booked_item_id from get_booking. Names the booking instead of booking_ref, 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.

providerstring

Deprecated: omit it. The platform uses the supplier recorded with the booking. Accepted until 2027-04-30; a request that sends it is answered with Deprecation and Sunset headers.

Example request

{
  "booking_ref": "JNK-A0AUR2",
  "last_name": "Doe"
}

Response

Check the status of an exchange

airline_locatorstring

Deprecated: read the item’s supplier_references on POST /v1/get_booking, which carries each airline’s record locator with the airline that issued it. Airline record locator for the current itinerary.

booking_refstring
booking_referencestring

Deprecated: use booking_ref instead. Same value.

status'confirmed' | 'pending' | 'partial_failure' | 'failed'

pending until the exchange is carried out — including while it waits for the customer’s payment, and while a Jinko agent has it (manual_handling).

new_ticket_numbersstring[]
confirmed_payment_outcomestring
checkout_urlstring

Present while the exchange waits for the customer to pay the difference: the same page exchange_commit returned. The exchange runs once that payment authorizes.

warningsstring[]

Notes about the booking and its documents, each said once, in words the customer can be shown. A note the supplier sends as free text without a code is left out.

Example response

{
  "airline_locator": "ABC123",
  "booking_ref": "JNK-A0AUR2",
  "booking_reference": "JNK-A0AUR2",
  "status": "confirmed",
  "new_ticket_numbers": [
    "0012345678901"
  ],
  "confirmed_payment_outcome": "paid",
  "checkout_url": "https://app.gojinko.com/checkout?t=eyJyIjoiY2FydCIs…",
  "manual_handling": {
    "status": "pending"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.