> ## Documentation Index
> Fetch the complete documentation index at: https://equatetravel.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Booking data

> The bookings every pipeline matches invoices against — read live from your database or booking API, fed from FTP, or uploaded by hand.

**Booking data** is your side of the match: the bookings or purchase records that
supplier invoices are compared against. Connect it once and every
[pipeline](https://equatetravel.ai/docs/guides/pipelines.md) matches against it.

## Where the data can live

> [card] [Live database](https://equatetravel.ai/docs/connectors/database-lookup.md)
>
> equate looks bookings up by reference in real time — always current. Best for
> production.

> [card] [Booking API (REST)](https://equatetravel.ai/docs/connectors/booking-api.md)
>
> equate calls your REST API by reference at match time.

> [card] [File feed (FTP / SFTP)](https://equatetravel.ai/docs/connectors/ftp-sftp.md)
>
> equate picks up booking exports from a folder on your server.

> [card] Upload a file
>
> A CSV or Excel export — quickest way to trial equate or handle a one-off batch.

> [!NOTE]
>
> The live database and booking API are on **Professional and above**. On
> Essentials, upload a file or use an FTP / SFTP file feed. If you move down to
> Essentials, live sources you already have keep running, but can't be changed.

You only need the fields you want to match against: a booking reference, the
supplier and the money (total, currency and commission) is enough to start.

## Adding booking data

Under **Booking Data → Add booking data**, the wizard adapts to where the data lives:

**1. Where**

Pick one of the four locations above.

**2. Template**

Uploads and file feeds only, and optional. Say what you sell and which
details you hold for each booking, and download a CSV template with exactly
those columns and an example row. A file built from it maps itself on the
**Map** step. Already have an export? Choose **I already have a file**.

**3. Connection**

Live sources only — reuse an existing [connector](https://equatetravel.ai/docs/guides/connectors.md) or create one
inline, then **test** it before moving on.

**4. Map**

Tell equate where the booking fields live:

* **Upload** — preview the file and map its columns.
* **Database** — pick the table and the reference / supplier / total columns.
* **Booking API** — run a real lookup and map the response with JSON paths.
* **File feed** — browse the server and pick the folder to watch.

**5. Name**

Label the source so you can recognise it later.

> [!TIP]
>
> The **Map** step is a live test: for database and API sources equate runs a real
> lookup before you save, so a wrong column or path fails here — not silently at match
> time.

## Uploading updated booking data

You can upload to the same booking source as often as you like — a weekly export
works well. Each upload **updates bookings by reference**; nothing is duplicated:

* bookings equate hasn't seen before are added;
* bookings whose details changed are updated in place;
* bookings that are already up to date are left alone;
* bookings that aren't in the file are kept as they are, so a file of just this
  week's bookings is fine.

Invoices still waiting on a match (no match yet, or a suggested match) that share a
reference with a **new or changed** booking are re-checked automatically. That's one rule
for the whole organisation, under
[Business rules → Bookings](https://equatetravel.ai/docs/guides/business-rules.md#unmatched-invoices). After each upload equate tells you
what changed — for example *"20 new, 40 changed, 1,180 unchanged · 6 open
invoices re-checked"* — and records it on the source's **Logs** tab.

> [!TIP]
>
> Rather than uploading by hand, let your booking system **email the report** on a
> schedule: each uploaded booking source can have its own address, and every report sent
> there is merged in the same way. See [booking data by email](https://equatetravel.ai/docs/connectors/booking-data-email.md).

## What fields equate expects

Booking data uses the **same field names equate reads from each invoice**, so both
sides of the match line up. `reference` is the only field an import can't do without
(it's the key used to find the booking); `supplier`, `totalCost`, `invoiceCurrency`
and `commission` are expected for confident matching, and the more trip detail you add,
the stronger the match.

Booking data can also carry fields only your booking system knows — `bookingId`,
`invoiceId`, `invoiceGross`, `invoiceCommission` and `invoiceVat` — which equate shows
on the match without matching on them. `isPrincipal` says whether you sold the booking as
principal or as agent, so a pipeline can
[send each to its own actions](https://equatetravel.ai/docs/guides/business-rules.md#principal-and-agent), and
`isCancelled` says whether the booking has been cancelled and `exchangeRate` carries
the rate it was priced at. All three are optional: if your business uses them, send them.

> [card] [Booking data fields](https://equatetravel.ai/docs/guides/booking-data-fields.md)
>
> Every field, which tier it belongs to, whether it's required, and example CSV and JSON.

### Dates & numbers

If a feed writes dates or numbers unusually, switch the source from **Auto** to an
**explicit format** (e.g. `DD/MM/YYYY`, or `1.234,56`) so ambiguous values are parsed
the way the supplier of the data intended.

## Who can manage booking data

Booking-data sources are **integration** work: members with the **Admin**, **Manager**
or **Technical** role can manage them. See [members & roles](https://equatetravel.ai/docs/guides/members-and-roles.md).

> [card] [Next: build a pipeline](https://equatetravel.ai/docs/guides/pipelines.md)
>
> Tie it together — where invoices arrive, what to match them against, and where
> results go.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.