Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.travelbase.ai/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Travelbase currently supports a single currency. Every monetary amount in a request or response is in US Dollars (USD).

Supported

USD — US Dollar

Format

Integer cents — 4999 means $49.99

More Coming

Multi-currency support is on the roadmap.

Format

All amounts are expressed as integers in the smallest currency unit — cents for USD. There are no decimals anywhere in the API.
{
  "amount": 4999,
  "currency": "USD"
}
Never pass a decimal like 49.99. The API expects 4999 — the value in cents. Passing a float will result in a 400 Bad Request.

Display Conversion

Divide by 100 before rendering amounts to end users.
// API value → display string
const display = (amount) =>
  new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" })
    .format(amount / 100);

display(4999); // → "$49.99"
display(100);  // → "$1.00"

Coming Soon

Multi-currency support (EUR, GBP, and more) is currently in development. When released, a currency field on each request will let you specify the denomination. Existing USD integrations will not require any changes.