List the seats, bags and special requests that can be added to a ticketed booking
curl --request POST \
--url https://api.gojinko.com/v1/get_booking_ancillaries \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"booking_ref": "JNK-A0AUR2",
"last_name": "Doe",
"booked_item_id": "itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a"
}
'import requests
url = "https://api.gojinko.com/v1/get_booking_ancillaries"
payload = {
"booking_ref": "JNK-A0AUR2",
"last_name": "Doe",
"booked_item_id": "itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
booking_ref: 'JNK-A0AUR2',
last_name: 'Doe',
booked_item_id: 'itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a'
})
};
fetch('https://api.gojinko.com/v1/get_booking_ancillaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gojinko.com/v1/get_booking_ancillaries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'booking_ref' => 'JNK-A0AUR2',
'last_name' => 'Doe',
'booked_item_id' => 'itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gojinko.com/v1/get_booking_ancillaries"
payload := strings.NewReader("{\n \"booking_ref\": \"JNK-A0AUR2\",\n \"last_name\": \"Doe\",\n \"booked_item_id\": \"itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gojinko.com/v1/get_booking_ancillaries")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"booking_ref\": \"JNK-A0AUR2\",\n \"last_name\": \"Doe\",\n \"booked_item_id\": \"itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gojinko.com/v1/get_booking_ancillaries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"booking_ref\": \"JNK-A0AUR2\",\n \"last_name\": \"Doe\",\n \"booked_item_id\": \"itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a\"\n}"
response = http.request(request)
puts response.read_body{
"booking_ref": "JNK-A0AUR2",
"items": [
{
"domain": "flight",
"purchasable": true,
"available_ancillaries": [
{
"trip_item_token": "pba_3f9c1a27e4b8d0516c2e9f0a7b3d4e15",
"type": "seat",
"ssr_code": "WCHR",
"applicable_pax_types": [
"child"
],
"display_label": "2 checked bags, 23 kg",
"price_per_unit_money": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"scope": "PER_PAX_PER_SEGMENT",
"segment_ref_ids": [
"seg_1"
],
"seat_map": {
"segment_ref_id": "seg_1",
"flight_number": "LH400",
"seats": [
{
"seat_number": "14A",
"available": true,
"characteristics": [
"WINDOW"
],
"chargeable": true,
"price_money": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
}
}
]
}
}
],
"already_held": [
{
"type": "seat",
"ssr_code": "<string>",
"display_label": "<string>",
"failure_reason": "<string>",
"seat_number": "12C",
"traveler_ref": "pax_1",
"segment_ref_ids": [
"<string>"
],
"status": "confirmed",
"refund_policy": "non_refundable",
"purchase": "post_booking",
"purchase_booking_ref": "JNK-B7Q2M1"
}
],
"booked_item_id": "itm_…",
"summary": "FRA→JFK 2026-11-02",
"not_purchasable_reason": "not_ticketed",
"catalog_status": "ready",
"catalog_expires_at": "<string>",
"purchase_deadline": "<string>",
"travelers": [
{
"traveler_ref": "pax_1",
"traveler_type": "adult",
"first_name": "<string>",
"last_name": "<string>"
}
]
}
],
"refund_policy": "non_refundable"
}{
"error": {
"code": "BAD_REQUEST",
"message": "Malformed JSON in request body.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "AUTH_REQUIRED",
"message": "Invalid or expired API key.",
"doc_url": "https://docs.gojinko.com/authentication/api-keys"
}
}{
"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"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "CONFLICT",
"message": "The operation conflicts with the current state of the resource.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "GONE",
"message": "The resource no longer exists.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "A required field is missing or invalid.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_REJECTED",
"message": "The request was declined for this offer. Try another offer.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The service is temporarily unavailable. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"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"
}
}Other endpoints
get-booking-ancillaries
List the seats, bags and special requests that can be added to a ticketed booking
POST
/
v1
/
get_booking_ancillaries
List the seats, bags and special requests that can be added to a ticketed booking
curl --request POST \
--url https://api.gojinko.com/v1/get_booking_ancillaries \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"booking_ref": "JNK-A0AUR2",
"last_name": "Doe",
"booked_item_id": "itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a"
}
'import requests
url = "https://api.gojinko.com/v1/get_booking_ancillaries"
payload = {
"booking_ref": "JNK-A0AUR2",
"last_name": "Doe",
"booked_item_id": "itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
booking_ref: 'JNK-A0AUR2',
last_name: 'Doe',
booked_item_id: 'itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a'
})
};
fetch('https://api.gojinko.com/v1/get_booking_ancillaries', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gojinko.com/v1/get_booking_ancillaries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'booking_ref' => 'JNK-A0AUR2',
'last_name' => 'Doe',
'booked_item_id' => 'itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.gojinko.com/v1/get_booking_ancillaries"
payload := strings.NewReader("{\n \"booking_ref\": \"JNK-A0AUR2\",\n \"last_name\": \"Doe\",\n \"booked_item_id\": \"itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.gojinko.com/v1/get_booking_ancillaries")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"booking_ref\": \"JNK-A0AUR2\",\n \"last_name\": \"Doe\",\n \"booked_item_id\": \"itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gojinko.com/v1/get_booking_ancillaries")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"booking_ref\": \"JNK-A0AUR2\",\n \"last_name\": \"Doe\",\n \"booked_item_id\": \"itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a\"\n}"
response = http.request(request)
puts response.read_body{
"booking_ref": "JNK-A0AUR2",
"items": [
{
"domain": "flight",
"purchasable": true,
"available_ancillaries": [
{
"trip_item_token": "pba_3f9c1a27e4b8d0516c2e9f0a7b3d4e15",
"type": "seat",
"ssr_code": "WCHR",
"applicable_pax_types": [
"child"
],
"display_label": "2 checked bags, 23 kg",
"price_per_unit_money": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
},
"scope": "PER_PAX_PER_SEGMENT",
"segment_ref_ids": [
"seg_1"
],
"seat_map": {
"segment_ref_id": "seg_1",
"flight_number": "LH400",
"seats": [
{
"seat_number": "14A",
"available": true,
"characteristics": [
"WINDOW"
],
"chargeable": true,
"price_money": {
"value": 41250,
"currency": "USD",
"decimal_places": 2,
"display": "USD 412.50"
}
}
]
}
}
],
"already_held": [
{
"type": "seat",
"ssr_code": "<string>",
"display_label": "<string>",
"failure_reason": "<string>",
"seat_number": "12C",
"traveler_ref": "pax_1",
"segment_ref_ids": [
"<string>"
],
"status": "confirmed",
"refund_policy": "non_refundable",
"purchase": "post_booking",
"purchase_booking_ref": "JNK-B7Q2M1"
}
],
"booked_item_id": "itm_…",
"summary": "FRA→JFK 2026-11-02",
"not_purchasable_reason": "not_ticketed",
"catalog_status": "ready",
"catalog_expires_at": "<string>",
"purchase_deadline": "<string>",
"travelers": [
{
"traveler_ref": "pax_1",
"traveler_type": "adult",
"first_name": "<string>",
"last_name": "<string>"
}
]
}
],
"refund_policy": "non_refundable"
}{
"error": {
"code": "BAD_REQUEST",
"message": "Malformed JSON in request body.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "AUTH_REQUIRED",
"message": "Invalid or expired API key.",
"doc_url": "https://docs.gojinko.com/authentication/api-keys"
}
}{
"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"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "CONFLICT",
"message": "The operation conflicts with the current state of the resource.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "GONE",
"message": "The resource no longer exists.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "A required field is missing or invalid.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_REJECTED",
"message": "The request was declined for this offer. Try another offer.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The service is temporarily unavailable. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"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"
}
}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.Body
application/json
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.
Pattern:
^itm_[a-z2-7]+$(?![\s\S])Example:
"itm_aaaaaaaaaaaaafhuxsdxpbzrbfz5hm3a"
