curl --request GET \
--url https://api.hofj.com/v1/bookings/{bookingId} \
--header 'Authorization: Bearer <token>' \
--header 'X-End-User-Authorization: <x-end-user-authorization>'import requests
url = "https://api.hofj.com/v1/bookings/{bookingId}"
headers = {
"X-End-User-Authorization": "<x-end-user-authorization>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-End-User-Authorization': '<x-end-user-authorization>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.hofj.com/v1/bookings/{bookingId}', 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/bookings/{bookingId}",
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>",
"X-End-User-Authorization: <x-end-user-authorization>"
],
]);
$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/bookings/{bookingId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-End-User-Authorization", "<x-end-user-authorization>")
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/bookings/{bookingId}")
.header("X-End-User-Authorization", "<x-end-user-authorization>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hofj.com/v1/bookings/{bookingId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-End-User-Authorization"] = '<x-end-user-authorization>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"distributionChannel": "<string>",
"productId": "<string>",
"locale": "<string>",
"reservationCode": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"startDate": "<string>",
"status": "pending",
"currency": "<string>",
"totalPrice": 123,
"affiliateId": "<string>",
"phone": "<string>",
"address": "<string>",
"fiscalCode": "<string>",
"endDate": "<string>",
"notes": "<string>",
"itinerary": {}
},
"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 booking by id (internal)
Retrieve a previously created booking (e.g. to render the thank-you / order detail page). This route is user-scoped on the brand site: pass the end-user Bearer token in X-End-User-Authorization; the BFF forwards it as Authorization to the upstream call.
curl --request GET \
--url https://api.hofj.com/v1/bookings/{bookingId} \
--header 'Authorization: Bearer <token>' \
--header 'X-End-User-Authorization: <x-end-user-authorization>'import requests
url = "https://api.hofj.com/v1/bookings/{bookingId}"
headers = {
"X-End-User-Authorization": "<x-end-user-authorization>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-End-User-Authorization': '<x-end-user-authorization>',
Authorization: 'Bearer <token>'
}
};
fetch('https://api.hofj.com/v1/bookings/{bookingId}', 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/bookings/{bookingId}",
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>",
"X-End-User-Authorization: <x-end-user-authorization>"
],
]);
$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/bookings/{bookingId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-End-User-Authorization", "<x-end-user-authorization>")
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/bookings/{bookingId}")
.header("X-End-User-Authorization", "<x-end-user-authorization>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hofj.com/v1/bookings/{bookingId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-End-User-Authorization"] = '<x-end-user-authorization>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"distributionChannel": "<string>",
"productId": "<string>",
"locale": "<string>",
"reservationCode": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "jsmith@example.com",
"startDate": "<string>",
"status": "pending",
"currency": "<string>",
"totalPrice": 123,
"affiliateId": "<string>",
"phone": "<string>",
"address": "<string>",
"fiscalCode": "<string>",
"endDate": "<string>",
"notes": "<string>",
"itinerary": {}
},
"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.
Headers
End-user Bearer token issued by the brand site (Cognito access token). Forwarded as Authorization to the upstream call. Required because the operation is user-scoped on the brand site.
Path Parameters
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 