Skip to main content
GET
/
v1
/
trip
/
{trip_id}
/
ancillaries
List purchasable ancillaries for a trip (no checkout)
curl --request GET \
  --url https://api.example.com/v1/trip/{trip_id}/ancillaries \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.example.com/v1/trip/{trip_id}/ancillaries"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://api.example.com/v1/trip/{trip_id}/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.example.com/v1/trip/{trip_id}/ancillaries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)

func main() {

url := "https://api.example.com/v1/trip/{trip_id}/ancillaries"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.example.com/v1/trip/{trip_id}/ancillaries")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v1/trip/{trip_id}/ancillaries")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "trip_id": "<string>",
  "status": "ready",
  "quoted_cart_id": 123,
  "expires_at": "<string>",
  "retry_after_seconds": 123,
  "items": [
    {
      "item_id": "<string>",
      "kind": "<string>",
      "price": {
        "amount": 318.4,
        "value": 123,
        "currency": "USD",
        "decimal_places": 2
      },
      "pax_count": 123,
      "available_ancillaries": [
        {
          "offer_id": "<string>",
          "type": "<string>",
          "label": "<string>",
          "description": "<string>",
          "price_per_unit": {
            "amount": 318.4,
            "value": 123,
            "currency": "USD",
            "decimal_places": 2
          },
          "per_pax": true,
          "max_quantity": 123
        }
      ],
      "selected_ancillaries": [
        null
      ]
    }
  ]
}
{
"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/api-reference/authentication"
}
}
{
"error": {
"code": "BAD_REQUEST",
"message": "origins: origins is required; trip_type: trip_type is required",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}
{
"error": {
"code": "RATE_LIMITED",
"message": "Rate limit or quota exceeded.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}
{
"error": {
"code": "UPSTREAM_ERROR",
"message": "Upstream travel provider returned an error. Please retry.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}
Returns the available ancillaries for a trip without generating a checkout URL. A price quote runs transparently behind the BFF (TravelFusion only emits the ancillary catalog at pricing time) and is reused while valid. Responds 200 with status: "ready" and items[] when the quote is complete. If the quote is still being priced it responds 202 with status: "pricing" and a Retry-After header — poll the same URL until it returns 200. Never returns a checkout URL.

Authorizations

X-API-Key
string
header
required

Path Parameters

trip_id
string
required

Response

Ancillaries ready (200) or quote still pricing (202)

trip_id
string
required
status
string
required
Example:

"ready"

quoted_cart_id
number
expires_at
string
retry_after_seconds
integer
items
object[]