curl --request PUT \
--url https://api.hofj.com/v1/itineraries/{itineraryId}/pax \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"refId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "2023-11-07T05:31:56Z",
"age": 123,
"nationalityCountryCode": "<string>",
"marketingOptIn": true
}
]
'import requests
url = "https://api.hofj.com/v1/itineraries/{itineraryId}/pax"
payload = [
{
"refId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "2023-11-07T05:31:56Z",
"age": 123,
"nationalityCountryCode": "<string>",
"marketingOptIn": True
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
refId: '<string>',
firstName: '<string>',
lastName: '<string>',
birthDate: '2023-11-07T05:31:56Z',
age: 123,
nationalityCountryCode: '<string>',
marketingOptIn: true
}
])
};
fetch('https://api.hofj.com/v1/itineraries/{itineraryId}/pax', 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}/pax",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
[
'refId' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'birthDate' => '2023-11-07T05:31:56Z',
'age' => 123,
'nationalityCountryCode' => '<string>',
'marketingOptIn' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.hofj.com/v1/itineraries/{itineraryId}/pax"
payload := strings.NewReader("[\n {\n \"refId\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"birthDate\": \"2023-11-07T05:31:56Z\",\n \"age\": 123,\n \"nationalityCountryCode\": \"<string>\",\n \"marketingOptIn\": true\n }\n]")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.hofj.com/v1/itineraries/{itineraryId}/pax")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"refId\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"birthDate\": \"2023-11-07T05:31:56Z\",\n \"age\": 123,\n \"nationalityCountryCode\": \"<string>\",\n \"marketingOptIn\": true\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hofj.com/v1/itineraries/{itineraryId}/pax")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"refId\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"birthDate\": \"2023-11-07T05:31:56Z\",\n \"age\": 123,\n \"nationalityCountryCode\": \"<string>\",\n \"marketingOptIn\": true\n }\n]"
response = http.request(request)
puts response.read_body{
"data": {},
"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>"
}Update pax data (internal)
Replace the passenger details for the itinerary. Submit one element per slot returned by GET .../pax; refId must match.
curl --request PUT \
--url https://api.hofj.com/v1/itineraries/{itineraryId}/pax \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"refId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "2023-11-07T05:31:56Z",
"age": 123,
"nationalityCountryCode": "<string>",
"marketingOptIn": true
}
]
'import requests
url = "https://api.hofj.com/v1/itineraries/{itineraryId}/pax"
payload = [
{
"refId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "2023-11-07T05:31:56Z",
"age": 123,
"nationalityCountryCode": "<string>",
"marketingOptIn": True
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
refId: '<string>',
firstName: '<string>',
lastName: '<string>',
birthDate: '2023-11-07T05:31:56Z',
age: 123,
nationalityCountryCode: '<string>',
marketingOptIn: true
}
])
};
fetch('https://api.hofj.com/v1/itineraries/{itineraryId}/pax', 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}/pax",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
[
'refId' => '<string>',
'firstName' => '<string>',
'lastName' => '<string>',
'birthDate' => '2023-11-07T05:31:56Z',
'age' => 123,
'nationalityCountryCode' => '<string>',
'marketingOptIn' => true
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.hofj.com/v1/itineraries/{itineraryId}/pax"
payload := strings.NewReader("[\n {\n \"refId\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"birthDate\": \"2023-11-07T05:31:56Z\",\n \"age\": 123,\n \"nationalityCountryCode\": \"<string>\",\n \"marketingOptIn\": true\n }\n]")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://api.hofj.com/v1/itineraries/{itineraryId}/pax")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"refId\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"birthDate\": \"2023-11-07T05:31:56Z\",\n \"age\": 123,\n \"nationalityCountryCode\": \"<string>\",\n \"marketingOptIn\": true\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hofj.com/v1/itineraries/{itineraryId}/pax")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"refId\": \"<string>\",\n \"firstName\": \"<string>\",\n \"lastName\": \"<string>\",\n \"birthDate\": \"2023-11-07T05:31:56Z\",\n \"age\": 123,\n \"nationalityCountryCode\": \"<string>\",\n \"marketingOptIn\": true\n }\n]"
response = http.request(request)
puts response.read_body{
"data": {},
"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>"
}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 