curl --request GET \
--url https://api.hofj.com/v1/itineraries/{itineraryId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hofj.com/v1/itineraries/{itineraryId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hofj.com/v1/itineraries/{itineraryId}', 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.hofj.com/v1/itineraries/{itineraryId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.hofj.com/v1/itineraries/{itineraryId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.hofj.com/v1/itineraries/{itineraryId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hofj.com/v1/itineraries/{itineraryId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"productId": "<string>",
"title": "<string>",
"titleVenue": "<string>",
"image": {
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
},
"productUrl": "<string>",
"totalPrice": {
"amount": "<string>",
"currency": "<string>"
},
"cancellationPolicy": {
"name": "<string>",
"tourOperator": "<string>",
"minimumFee": {
"amount": "<string>",
"currency": "<string>"
},
"processingFee": {
"amount": "<string>",
"currency": "<string>"
},
"processingFeeUnit": "Total",
"cancellations": [
{
"rangeStart": 123,
"cancellationPercentage": 123,
"applicableTo": [
"Fee"
],
"rangeEnd": 123
}
]
},
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"paxNumber": 123,
"activities": [
{
"id": "<string>",
"productId": "<string>",
"title": "<string>",
"price": {
"amount": "<string>",
"currency": "<string>"
},
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"startTime": "<string>",
"endTime": "<string>",
"selectedCategory": {
"id": "<string>",
"title": "<string>",
"description": "<string>"
},
"selectedAmenities": [
{
"productId": "<string>",
"name": "<string>",
"type": "<string>",
"paxNumber": 123,
"inclusionPolicy": "OptionalIncluded",
"pricingPaxDimension": "<string>",
"pricingTimeDimension": "<string>",
"salesPrice": {
"amount": "<string>",
"currency": "<string>"
},
"netPrice": {
"amount": "<string>",
"currency": "<string>"
}
}
],
"isFixed": true,
"paxNumber": 123,
"description": "<string>",
"possibleStartTimes": [
"<string>"
]
}
],
"checkout": {
"openAmount": {
"amount": "<string>",
"currency": "<string>"
},
"total": {
"amount": "<string>",
"currency": "<string>"
},
"originalTotal": {
"amount": "<string>",
"currency": "<string>"
},
"status": "<string>",
"refId": "<string>",
"promoCode": "<string>",
"promoCodeDiscount": {
"amount": "<string>",
"currency": "<string>"
}
},
"trackingCommerce": {
"transaction_id": "<string>",
"currency": "<string>",
"value": "<string>",
"items": [
{
"item_id": "<string>",
"item_name": "<string>",
"item_brand": "<string>",
"item_category": "<string>",
"location_id": "<string>",
"price": "<string>",
"quantity": 1,
"index": 0,
"coupon": "<string>",
"discount": "<string>"
}
]
},
"availableLocales": [
"it"
],
"affiliateId": "<string>",
"description": "<string>",
"hotelSelection": true,
"allowAccommodationList": true,
"venue": {
"id": 123,
"title": "<string>",
"description": "<string>",
"cover": {
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
},
"location": {
"latitude": 123,
"longitude": 123
},
"address": "<string>"
},
"tournamentVenue": {
"id": 123,
"title": "<string>",
"description": "<string>",
"cover": {
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
},
"location": {
"latitude": 123,
"longitude": 123
},
"address": "<string>"
},
"accommodation": {
"id": "<string>",
"title": "<string>",
"description": "<string>",
"rating": 123,
"totalPrice": {
"amount": "<string>",
"currency": "<string>"
},
"image": {
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
},
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"nights": 123,
"address": "<string>",
"rooms": [
{
"id": "<string>",
"name": "<string>"
}
],
"gallery": [
{
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
}
],
"coordinates": {
"latitude": 123,
"longitude": 123
}
},
"bookingCart": {
"id": "<string>",
"totalPrice": {
"amount": "<string>",
"currency": "<string>"
}
}
},
"meta": {
"now": 123
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Get itinerary (internal)
Return the full cart snapshot for an itinerary (checkout totals, activities, accommodation, customer, pax, tracking commerce). Internal clients only.
curl --request GET \
--url https://api.hofj.com/v1/itineraries/{itineraryId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hofj.com/v1/itineraries/{itineraryId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hofj.com/v1/itineraries/{itineraryId}', 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.hofj.com/v1/itineraries/{itineraryId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.hofj.com/v1/itineraries/{itineraryId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.hofj.com/v1/itineraries/{itineraryId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hofj.com/v1/itineraries/{itineraryId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"productId": "<string>",
"title": "<string>",
"titleVenue": "<string>",
"image": {
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
},
"productUrl": "<string>",
"totalPrice": {
"amount": "<string>",
"currency": "<string>"
},
"cancellationPolicy": {
"name": "<string>",
"tourOperator": "<string>",
"minimumFee": {
"amount": "<string>",
"currency": "<string>"
},
"processingFee": {
"amount": "<string>",
"currency": "<string>"
},
"processingFeeUnit": "Total",
"cancellations": [
{
"rangeStart": 123,
"cancellationPercentage": 123,
"applicableTo": [
"Fee"
],
"rangeEnd": 123
}
]
},
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"paxNumber": 123,
"activities": [
{
"id": "<string>",
"productId": "<string>",
"title": "<string>",
"price": {
"amount": "<string>",
"currency": "<string>"
},
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"startTime": "<string>",
"endTime": "<string>",
"selectedCategory": {
"id": "<string>",
"title": "<string>",
"description": "<string>"
},
"selectedAmenities": [
{
"productId": "<string>",
"name": "<string>",
"type": "<string>",
"paxNumber": 123,
"inclusionPolicy": "OptionalIncluded",
"pricingPaxDimension": "<string>",
"pricingTimeDimension": "<string>",
"salesPrice": {
"amount": "<string>",
"currency": "<string>"
},
"netPrice": {
"amount": "<string>",
"currency": "<string>"
}
}
],
"isFixed": true,
"paxNumber": 123,
"description": "<string>",
"possibleStartTimes": [
"<string>"
]
}
],
"checkout": {
"openAmount": {
"amount": "<string>",
"currency": "<string>"
},
"total": {
"amount": "<string>",
"currency": "<string>"
},
"originalTotal": {
"amount": "<string>",
"currency": "<string>"
},
"status": "<string>",
"refId": "<string>",
"promoCode": "<string>",
"promoCodeDiscount": {
"amount": "<string>",
"currency": "<string>"
}
},
"trackingCommerce": {
"transaction_id": "<string>",
"currency": "<string>",
"value": "<string>",
"items": [
{
"item_id": "<string>",
"item_name": "<string>",
"item_brand": "<string>",
"item_category": "<string>",
"location_id": "<string>",
"price": "<string>",
"quantity": 1,
"index": 0,
"coupon": "<string>",
"discount": "<string>"
}
]
},
"availableLocales": [
"it"
],
"affiliateId": "<string>",
"description": "<string>",
"hotelSelection": true,
"allowAccommodationList": true,
"venue": {
"id": 123,
"title": "<string>",
"description": "<string>",
"cover": {
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
},
"location": {
"latitude": 123,
"longitude": 123
},
"address": "<string>"
},
"tournamentVenue": {
"id": 123,
"title": "<string>",
"description": "<string>",
"cover": {
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
},
"location": {
"latitude": 123,
"longitude": 123
},
"address": "<string>"
},
"accommodation": {
"id": "<string>",
"title": "<string>",
"description": "<string>",
"rating": 123,
"totalPrice": {
"amount": "<string>",
"currency": "<string>"
},
"image": {
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
},
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"nights": 123,
"address": "<string>",
"rooms": [
{
"id": "<string>",
"name": "<string>"
}
],
"gallery": [
{
"url": "<string>",
"name": "<string>",
"alternativeText": "<string>",
"caption": "<string>",
"width": 123,
"height": 123
}
],
"coordinates": {
"latitude": 123,
"longitude": 123
}
},
"bookingCart": {
"id": "<string>",
"totalPrice": {
"amount": "<string>",
"currency": "<string>"
}
}
},
"meta": {
"now": 123
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
Use Authorization: Bearer <access_token> from POST /v1/oauth/token, or Authorization: Bearer <api_key>. Dev-only example key (do not use in production): see repository README.
Path Parameters
Identifier of the itinerary (cart) returned by POST /v1/itineraries.
Query Parameters
Distribution channel brand: matches channel name or domainUrl (e.g. Weebora, weebora.com, booking.hofj.com, terrarossa.com). The resolved domain is BOTH the upstream host AND the tenant routing value. If omitted, CONTENT_DEFAULT_CHANNEL_DOMAIN must be set server-side.
Locale for the brand site (it, en, es, fr). Injected as /{locale}/api/... on the upstream call. Defaults to CONTENT_DEFAULT_LOCALE.
it, en, es, fr 