> ## 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 fields

> What your booking data should contain: the fields every booking has, then the fields for each sector you sell, with examples.

Your booking data is the other side of the match, so it uses the **same field names
equate reads from each invoice** (see [invoice fields](https://equatetravel.ai/docs/guides/invoice-fields.md)). On
top of those, booking data can carry a few fields that only your booking system
knows — your own booking ID, your own invoice ID and the invoice figures you hold.

The same fields apply however the data reaches us: a database view or table, a booking
API, a file feed or an uploaded CSV / Excel file. Your columns don't have to use these
exact names — you map them when you [add booking data](https://equatetravel.ai/docs/guides/booking-data.md#adding-booking-data),
and names are matched without regard to case.

> [!NOTE]
>
> Field names are camelCase, as they appear in our JSON: `totalCost`, `bookingId`, and
> lists as plural nouns (`flights`, `passengers`). When you send us data, case and
> punctuation don't matter: `TotalCost` or `total_cost` work too.

## How the fields are organised

The fields are grouped the same way as the **Map fields** step when you
[add booking data](https://equatetravel.ai/docs/guides/booking-data.md#adding-booking-data):

1. **[Every booking](#every-booking)**: the fields every booking has, whatever you sell.
2. **[One section per sector](#by-sector)** you sell (cruise, hotel, flights and so on),
   each with its own fields.

In each section the **key fields** come first; the rest sit under **More fields**. The
more you provide, the stronger the match and the more reviewers see. Money fields are
plain numbers with no currency symbol (`8598.00`). Dates are best as ISO 8601
(`2027-01-28`); if yours are ambiguous, set the source's date format (see
[dates and numbers](#dates-and-numbers)).

## Every booking

| Field | Status | What it is |
| - | - | - |
| `reference` | **Key** | The booking reference the supplier quotes. The one field an import can't do without: it's how each invoice's booking is found. |
| `bookingId` | **Key** | Your booking system's own ID for the booking (its primary key), not the `reference` again, so it must be its own column. Bookings are billed by it, so setup asks for it. Never matched. |
| `supplier` | **Key** | The operator or supplier. |
| `invoiceCurrency` | **Key** | ISO 4217 currency code, e.g. `GBP`. |
| `totalCost` | **Key** | The booking total. |
| `commission` | **Key** | The agent commission. |
| `invoiceId` | More | Your own ID for the invoice this booking was billed on, from your accounting or finance system. Shown on the match. Never matched. |
| `isPrincipal` | More | Whether you sold the booking as principal or agent: a bit (`1` / `0`), a flag (`Y` / `N`), a code (`P` / `A`) or a word (*Principal*, *Agent*). Never matched; it lets an action run for [principal or agent bookings only](https://equatetravel.ai/docs/guides/business-rules.md#principal-and-agent). |
| `isCancelled` | More | Whether the booking has been cancelled: `1` / `0`, `Y` / `N` or `true` / `false`. Never matched, so a cancellation charge still finds its booking. Send cancelled bookings with this set rather than leaving them out. |
| `exchangeRate` | More | The exchange rate the booking was priced at, as a plain number (e.g. `1.1725`), when it was paid in a different currency from your own. Never matched; can be sent back with the result. |
| `invoiceDate` | More | The date the booking was invoiced. Shown beside the invoice's own date; never counts towards a match. |
| `vat` | More | VAT or tax on the booking. |
| `resortTax` | More | Resort, city or tourist tax. |
| `invoiceGross` | More | The gross of the invoice this booking was last billed on, as your booking system holds it. |
| `invoiceCommission` | More | The commission on that invoice. |
| `invoiceVat` | More | The VAT on that invoice. |

`invoiceId`, `isPrincipal`, `isCancelled`, `exchangeRate` and the three `Invoice…`
amounts have no counterpart on a supplier invoice, so they're optional: **if your
business uses them, send them.** The `Invoice…` amounts let equate tell a re-issued
invoice whose money changed from one where only other details did (see the
[re-issues rule](https://equatetravel.ai/docs/guides/business-rules.md#re-issues)), and spot an invoice that's
already in your system.

## By sector

When you add booking data you pick the sectors you sell, and each one adds its own
section. A field can appear in several sectors. These are the defaults: your
organisation's [business rules](https://equatetravel.ai/docs/guides/business-rules.md) can move a field between key
and more.

### Cruise

| | Fields |
| - | - |
| Key fields | `leadName`, `numberOfPassengers`, `shipName`, `cruiseEmbarkation`, `cruiseDisembarkation`, `cruiseDuration`, `flights` |
| More fields | `tourName`, `passengers`, `onboardSpendingPerPerson`, `drinksPackageCostPerPerson`, `cabinName`, `cabinCategory`, `cabinNumber`, `bedType`, `includesCarHire`, `includesCarParking`, `includesTransfer`, `diningRequest` |

### Ski

| | Fields |
| - | - |
| Key fields | `leadName`, `numberOfPassengers`, `resort`, `accommodation`, `flights`, `transfers`, `holidayStartDate`, `holidayEndDate`, `holidayDuration`, `skiArea`, `skiExtras`, `skiCarriages` |
| More fields | `passengers`, `includesTransfer`, `boardBasis` |

### Transfer

| | Fields |
| - | - |
| Key fields | `leadName`, `numberOfPassengers`, `resort`, `transfers` |
| More fields | `passengers` |

### Flights

| | Fields |
| - | - |
| Key fields | `leadName`, `numberOfPassengers`, `flights` |
| More fields | `passengers` |

### Trains

| | Fields |
| - | - |
| Key fields | `leadName`, `numberOfPassengers`, `trains` |
| More fields | `passengers` |

### Hotel

| | Fields |
| - | - |
| Key fields | `leadName`, `numberOfPassengers`, `resort`, `accommodation`, `holidayStartDate`, `holidayEndDate`, `holidayDuration` |
| More fields | `passengers`, `bedType`, `boardBasis` |

### Packages

| | Fields |
| - | - |
| Key fields | `leadName`, `numberOfPassengers`, `resort`, `accommodation`, `flights`, `trains`, `transfers`, `holidayStartDate`, `holidayEndDate`, `holidayDuration`, `eventPackages` |
| More fields | `passengers`, `includesCarHire`, `includesTransfer`, `boardBasis` |

### Tours

| | Fields |
| - | - |
| Key fields | `leadName`, `numberOfPassengers`, `tourName`, `resort`, `trains`, `holidayStartDate`, `holidayEndDate`, `holidayDuration`, `eventPackages` |
| More fields | `passengers`, `includesCarHire`, `includesTransfer` |

### What each sector field holds

| Field | What it is |
| - | - |
| `leadName` | The lead passenger. |
| `numberOfPassengers` | How many passengers are on the booking. |
| `passengers` | Every passenger, as a JSON array (see [list fields](#list-fields)). |
| `shipName` | The ship, for a cruise. |
| `tourName` | The cruise, tour or itinerary name. |
| `cruiseEmbarkation` | The embarkation (start) date. |
| `cruiseDisembarkation` | The disembarkation (end) date. |
| `cruiseDuration` | Cruise length in nights. |
| `resort` | The resort or destination. |
| `accommodation` | The accommodation or room description. |
| `holidayStartDate` | The holiday or package start date. |
| `holidayEndDate` | The holiday or package end date. |
| `holidayDuration` | Holiday length in nights. |
| `flights` | The flights, as a JSON array. |
| `trains` | The train legs, as a JSON array. |
| `transfers` | The transfers, as a JSON array. |
| `eventPackages` | Event and attraction packages, as a JSON array (formerly `DisneyHolidayTickets`, which is still read). |
| `skiArea` | The ski area, e.g. Les 3 Vallées. |
| `skiExtras` | Ski extras, as a JSON array. |
| `skiCarriages` | How many ski carriages (the flight supplement for ski equipment) were booked. |
| `cabinName` | Cabin name or description. |
| `cabinNumber` | Cabin number. |
| `cabinCategory` | Cabin category or grade code. |
| `bedType` | Bed configuration. |
| `boardBasis` | Board basis, e.g. Bed & Breakfast or All Inclusive. |
| `diningRequest` | Dining time or seating request. |
| `onboardSpendingPerPerson` | Onboard spending money or credit per person. |
| `drinksPackageCostPerPerson` | Drinks package cost per person. |
| `includesCarHire` | Whether car hire is included (`true` / `false`). |
| `includesCarParking` | Whether car parking is included (`true` / `false`). |
| `includesTransfer` | Whether transfers are included (`true` / `false`). |

## List fields

The `…JSON` fields hold a JSON array, one object per flight, leg, transfer, package,
extra or passenger. In a CSV, put the array in a single quoted
cell.

| Field | Each entry has |
| - | - |
| `flights` | `flightNumber`, `outboundAirport`, `outboundDepartureDateTime`, `inboundAirport`, `inboundArrivalDateTime` |
| `trains` | `departureStation`, `departureTime`, `arrivalStation`, `arrivalTime`, `ticketType` |
| `transfers` | `transferFrom`, `transferTo`, `transferType`, `vehicleType`, `numberOfPassengers` |
| `passengers` | `title`, `firstName`, `middleName`, `lastName`, `fullName` |
| `skiExtras` | `item`, `quantity`, `price`, `name` |
| `eventPackages` | `hotelName`, `roomType`, `mealDetail`, `arrivalDate`, `departureDate`, `nights`, `noOfGuestsAdults`, `noOfGuestsChildren`, `ticketDescription`, `durationDays`, `validFor`, `carParkingIncluded`, `pricing`, `currency` |

## Examples

A CSV with the Every booking key fields, a few of its more fields and the cruise key
fields:

```csv booking-data.csv theme={null}
reference,bookingId,supplier,invoiceCurrency,totalCost,commission,vat,isPrincipal,isCancelled,exchangeRate,leadName,numberOfPassengers,shipName,cruiseEmbarkation,cruiseDisembarkation,cruiseDuration
EX-44821,BK-100482,Example Cruises,GBP,4250.00,425.00,0.00,1,0,1.0000,Alan Jones,2,Example Explorer,2027-01-28,2027-02-17,20
EX-50317,BK-100517,Example Cruises,EUR,6120.00,612.00,0.00,0,0,1.1725,Morgan Smith,2,Example Voyager,2027-03-04,2027-03-11,7
```

One cruise booking as JSON, with a list field filled in:

```json booking.json theme={null}
{
  "reference": "EX-44821",
  "bookingId": "BK-100482",
  "supplier": "Example Cruises",
  "invoiceCurrency": "GBP",
  "totalCost": "4250.00",
  "commission": "425.00",
  "vat": "0.00",
  "invoiceId": "INV-2026-004821",
  "isPrincipal": "1",
  "isCancelled": "0",
  "exchangeRate": "1.0000",
  "leadName": "Alan Jones",
  "numberOfPassengers": "2",
  "shipName": "Example Explorer",
  "cruiseEmbarkation": "2027-01-28",
  "cruiseDisembarkation": "2027-02-17",
  "cruiseDuration": "20",
  "passengers": [
    { "title": "MR", "firstName": "Alan", "lastName": "Jones" },
    { "title": "MRS", "firstName": "Susan", "lastName": "Jones" }
  ]
}
```

Connecting a database? Expose these as columns on a view or table — see
[expose a clean view](https://equatetravel.ai/docs/connectors/database-lookup.md#expose-a-clean-view).

## Empty and unknown values

equate treats every value your booking data holds as true, so a wrong value does more
harm than a missing one.

* **Unknown or doesn't apply: leave it empty.** An empty cell, a missing column, `null`,
  `""` and `[]` all mean the same thing: the field isn't compared, and it never holds a
  match.
* **Never fill a gap with a placeholder** such as `N/A`, `TBC`, `Unknown`, `-` or a
  default date like `1900-01-01`. A placeholder reads as a real value that disagrees
  with the invoice, and sends good invoices to review. The one exception is a flight
  not confirmed yet: a flight number of `TBC` is recognised and that flight isn't compared.
* **Always fill** `reference`, `bookingId`, `supplier`, `totalCost` and
  `invoiceCurrency`. A booking without a reference can't be found.
* **Zero amounts:** `0` for `vat`, `resortTax` or `commission` is fine when it really is zero.
* **List fields:** include only the legs or items that exist, rather than empty entries.

## Dates and 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 read
the way the data was written.

## Columns we don't have a field for

To compare a column of your own with something on the invoice — a purchase order
number, say — add a [custom field](https://equatetravel.ai/docs/guides/invoice-fields.md#adding-your-own-fields) and
point it at that column. If you think equate should handle a field natively,
[let us know](https://equatetravel.ai/docs/resources/request-a-feature.md).


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