curl --request POST \
--url https://api.hofj.com/v1/bookings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"itineraryId": "<string>",
"paymentType": "full",
"planIndex": 1,
"paymentIntentId": "<string>",
"paymentStatus": "<string>"
}
'import requests
url = "https://api.hofj.com/v1/bookings"
payload = {
"itineraryId": "<string>",
"paymentType": "full",
"planIndex": 1,
"paymentIntentId": "<string>",
"paymentStatus": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
itineraryId: '<string>',
paymentType: 'full',
planIndex: 1,
paymentIntentId: '<string>',
paymentStatus: '<string>'
})
};
fetch('https://api.hofj.com/v1/bookings', 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",
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([
'itineraryId' => '<string>',
'paymentType' => 'full',
'planIndex' => 1,
'paymentIntentId' => '<string>',
'paymentStatus' => '<string>'
]),
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/bookings"
payload := strings.NewReader("{\n \"itineraryId\": \"<string>\",\n \"paymentType\": \"full\",\n \"planIndex\": 1,\n \"paymentIntentId\": \"<string>\",\n \"paymentStatus\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.hofj.com/v1/bookings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"itineraryId\": \"<string>\",\n \"paymentType\": \"full\",\n \"planIndex\": 1,\n \"paymentIntentId\": \"<string>\",\n \"paymentStatus\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hofj.com/v1/bookings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"itineraryId\": \"<string>\",\n \"paymentType\": \"full\",\n \"planIndex\": 1,\n \"paymentIntentId\": \"<string>\",\n \"paymentStatus\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": "<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>"
}Confirm booking (internal)
Upsert the reservation for the itinerary. Call this AFTER the Stripe payment has been confirmed on the frontend. The brand site requires paymentType (full or plan); if omitted the API defaults to full so a body of { "itineraryId" } still works. For deposit / balance send paymentType: "plan" and the same planIndex used when creating the PaymentIntent. The response contains the human-readable reservation code shown on the thank-you page.
curl --request POST \
--url https://api.hofj.com/v1/bookings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"itineraryId": "<string>",
"paymentType": "full",
"planIndex": 1,
"paymentIntentId": "<string>",
"paymentStatus": "<string>"
}
'import requests
url = "https://api.hofj.com/v1/bookings"
payload = {
"itineraryId": "<string>",
"paymentType": "full",
"planIndex": 1,
"paymentIntentId": "<string>",
"paymentStatus": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
itineraryId: '<string>',
paymentType: 'full',
planIndex: 1,
paymentIntentId: '<string>',
paymentStatus: '<string>'
})
};
fetch('https://api.hofj.com/v1/bookings', 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",
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([
'itineraryId' => '<string>',
'paymentType' => 'full',
'planIndex' => 1,
'paymentIntentId' => '<string>',
'paymentStatus' => '<string>'
]),
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/bookings"
payload := strings.NewReader("{\n \"itineraryId\": \"<string>\",\n \"paymentType\": \"full\",\n \"planIndex\": 1,\n \"paymentIntentId\": \"<string>\",\n \"paymentStatus\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.hofj.com/v1/bookings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"itineraryId\": \"<string>\",\n \"paymentType\": \"full\",\n \"planIndex\": 1,\n \"paymentIntentId\": \"<string>\",\n \"paymentStatus\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hofj.com/v1/bookings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"itineraryId\": \"<string>\",\n \"paymentType\": \"full\",\n \"planIndex\": 1,\n \"paymentIntentId\": \"<string>\",\n \"paymentStatus\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": "<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>"
}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.
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 Body
Itinerary to confirm.
Must match the PaymentIntent. Defaults to full when omitted so { "itineraryId" } still confirms a full payment.
full, plan Same installment index used when creating the PaymentIntent (0 = deposit).
x >= 0Stripe PaymentIntent id (pi_...) from the confirmed payment. Optional; forwarded to the brand site when present.
Stripe PaymentIntent status after confirmation (e.g. succeeded). Optional; forwarded to the brand site when present.
