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

# Pipelines

> The recipe that ties everything together — where invoices arrive, who they're from, how deeply to match, when to process, and where results go.

A **pipeline** is the recipe that ties everything together: where invoices come from,
the [booking data](https://equatetravel.ai/docs/guides/booking-data.md) to match them against, and what happens to the
results. The builder walks these steps; each is summarised below.

## 1. Invoice source — where invoices come from&#x20;

> [card] Upload them yourself
>
> Drag-and-drop in the dashboard — instant, great for starting out.

> [card] REST API
>
> Built in — your systems push invoices to `POST /api/v1/invoices` with an
> [API key](https://equatetravel.ai/docs/guides/api-keys.md).

> [card] Existing source
>
> Reuse a stream you've already set up.

> [card] New connection
>
> Wire a [connector](https://equatetravel.ai/docs/guides/connectors.md) inline — for FTP, browse the server and
> pick the folder to watch.

## 2. Suppliers — how to handle them&#x20;

* **All suppliers** (recommended) — process invoices from every [supplier](https://equatetravel.ai/docs/guides/suppliers.md)
  you've switched on. New suppliers can be **added automatically** (recommended, on by
  default) so their next invoice is recognised; on inbound email, **Include new senders**
  (also recommended) takes invoices from people who aren't a saved supplier yet.
* **Specific suppliers only** — pick the suppliers this pipeline handles; only their
  invoices are processed.

## 3. Matching — how strict to be

* **Standard matching** (recommended) — our recommended checks, plus any
  [business rules](https://equatetravel.ai/docs/guides/business-rules.md) you've set: each supplier at its own depth, with
  your sector and supplier rules.
* **Customise for this pipeline** — choose which of your rules apply:
  * **Follow sector rules** — the tiers and tolerances set for each sector. Off, the
    pipeline matches on our recommended settings.
  * **Follow supplier rules** — each supplier's match depth, tiers and tolerances, which
    win over sector rules. Off, you pick one depth — `TIER_1` (core financials),
    `TIER_2` or `TIER_3` (everything) — for every invoice the pipeline matches.

> [!NOTE]
>
> What happens to **duplicates** and when a booking is invoiced again (**re-issues**) is
> one rule for the whole organisation, set under
> [Business rules → Changes & re-issues](https://equatetravel.ai/docs/guides/business-rules.md#organisation-rules), and
> whether unmatched invoices are tried again is under
> [Business rules → Bookings](https://equatetravel.ai/docs/guides/business-rules.md#unmatched-invoices). On
> Essentials every invoice is matched at Tier 1, so this step shows that instead.

## 4. Timing — when to process&#x20;

| Mode | Behaviour |
| - | - |
| **As they arrive** | Each document starts the moment it lands — uploads immediately, inboxes per email, watched folders within minutes. |
| **On a schedule** | Batch processing on a cron-style schedule (e.g. nightly). |
| **Manual only** | Nothing runs until you press the button. |

Whichever mode you pick, you can **also allow manual runs** for ad-hoc reprocessing.

## 5. Actions — what happens next

The step has a group for each outcome — **Auto-matched**, **Needs review**,
**Failed or flagged**. Add [actions](https://equatetravel.ai/docs/guides/actions.md) from your workspace's library under the
outcomes they should run on (the same action can sit under several), switch each on or
off and set their order. Each action says whether it runs **automatically**, can be run
**by hand** from an invoice, or both:

| Action | Delivers |
| - | - |
| **Export JSON**  | A JSON payload. |
| **Export XML** | An XML payload. |
| **Webhook** | An HTTP POST to your endpoint. |
| **Email** | One or more recipients. |
| **FTP upload** | A remote directory. |

So you can, say, webhook the clean matches to your back office, email the review items
to the team that owns the supplier, and keep a manual re-send for when someone needs it.

On Professional and above each action also says which bookings it **runs for**: every
booking, principal bookings only, or agent bookings only, read from your booking data's
[Principal or agent](https://equatetravel.ai/docs/guides/business-rules.md#principal-and-agent) field. Put two actions
under Auto-matched, one for each, to post principal and agent bookings to different places.

> [!NOTE]
>
> Actions belong to the workspace, not the pipeline. Editing one from the builder
> changes it in every pipeline that uses it — the editor lists them. See
> [actions](https://equatetravel.ai/docs/guides/actions.md) for what each type sends, recipes per outcome, and what
> happens when a delivery fails.

## 6. Test & go live&#x20;

* **Test mode** — process real documents end-to-end with all side-effecting deliveries
  skipped (no webhooks, emails or FTP uploads). Test jobs sit in their own **Test** tab
  in the queue.
* **Status** — a pipeline is `DRAFT` until you **activate** it; **pause** any time.
  Pausing stops everything the pipeline hasn't started: invoices that arrive, and invoices
  already queued, wait in the **Queued** queue marked **Pipeline paused**, and nothing is
  sent on. Start it again and they're processed in the order they arrived. An invoice
  already being processed when you pause finishes.
  Only active pipelines run.
* **Throttling** — optional per-minute, per-day and max-concurrent caps to control load
  and downstream costs.
* **Batches** — every batch the pipeline processed, with its document counts and outcome
  split, on the pipeline's page (and across pipelines under **Logs → Batches**). A batch
  is what one run picks up: an upload, an inbound email or a scheduled run. Open one to
  see its documents, export them or send a batch summary email.

**1. Build it**

Invoice source → suppliers → booking data → team → matching → timing → actions.

**2. Run it in test mode**

Validate against real invoices with deliveries safely off.

**3. Activate**

Flip it live; watch its batches and the outcome split.

> [!TIP]
>
> **Duplicate** an existing pipeline to spin up a near-identical one for another
> supplier set, then tweak — faster than rebuilding. A **forecast** view estimates
> upcoming volume so you can size throttles sensibly.


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