GET
/
v1
/
trips
/
{status}
List user trips by status (internal)
curl --request GET \
  --url https://api.hofj.com/v1/trips/{status} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-End-User-Authorization: <x-end-user-authorization>'
{
  "data": [
    {
      "reservationCode": "<string>",
      "title": "<string>",
      "location": "<string>",
      "startDate": "2023-12-25",
      "price": {
        "amount": "<string>",
        "currency": "<string>"
      },
      "status": "paid",
      "image": {
        "url": "<string>",
        "name": "<string>",
        "alternativeText": "<string>",
        "caption": "<string>",
        "width": 123,
        "height": 123
      },
      "endDate": "2023-12-25",
      "adultCount": 123,
      "childCount": 123,
      "paymentMethod": "<string>"
    }
  ],
  "meta": {
    "now": 123
  }
}

Authorizations

Authorization
string
header
default:dev-internal-api-key
required

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

X-End-User-Authorization
string
required

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

status
enum<string>
required
Available options:
active,
past

Query Parameters

brand
string

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
enum<string>

Locale for the brand site (it, en, es, fr). Injected as /{locale}/api/... on the upstream call. Defaults to CONTENT_DEFAULT_LOCALE.

Available options:
it,
en,
es,
fr

Response

Trips

data
object[]
required
meta
object