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

# Document handling

> Handle the documents your pipelines receive besides invoices: read them, match them to a booking, check them and send them on.

Suppliers send more than invoices. Confirmations, tickets, certificates and statements
arrive through the same inboxes and folders. **Document handling** (beta, Professional
and above) lets you choose which of those document types equate should handle, and what
happens to each one.

You'll find it under **Configure → Document handling**.

## Pipelines stay about invoices

Every pipeline still handles invoices exactly as before. A document type you set up here
is handled from every pipeline, or only the pipelines you pick. Each document is read,
matched to its booking field for field against that pipeline's booking data, checked,
then sent to its own actions.

A document type you haven't set up is set aside in **Logs → Files**, labelled with what
it is, as it always was.

[Agents](https://equatetravel.ai/docs/guides/agents.md#documents-that-arent-invoices) use the same document types. A
document type handled from **every pipeline** is also handled by your agents, matched
against the agent's own booking data. One limited to chosen pipelines is not. For a
document an agent takes, the agent's own actions run, not the document type's.

## Set up a document type

Choose **Set up a document type** and work through the steps.

1. **Document.** Pick the kind of document from the list, and whether it's handled
   from every pipeline or only the ones you pick. equate keeps the list and knows which
   details each type carries.
2. **Checks.** Decide what each field means for this document (below).
3. **Actions.** Choose what happens to a document that matched, one that needs review
   and one that failed a check. These are the same [actions](https://equatetravel.ai/docs/guides/actions.md) your
   pipelines use, set per outcome.
4. **Test & rollout.** Start in test mode, or go live straight away.
5. **Review.** Check your choices and turn it on.

## Checks&#x20;

Documents are matched field for field. There are no match tiers. For each field, choose
one of three.

| Choice | What it does |
| - | - |
| **Must match** | A disagreement fails the check. The document goes to Need Review tagged **Check failed** and the **Check failed** actions run. |
| **Should match** | A disagreement sends the document to Need Review for a person to decide. This is the default. |
| **Ignore** | The field is left out of the comparison. |

A detail the document doesn't carry is never held against it.

## Where they show up

Handled documents land in the same queues as invoices, **Need Review** and
**Processed**, tagged with their type. You can filter either queue by document type.
See [Reviewing invoices](https://equatetravel.ai/docs/guides/reviewing-exceptions.md) for how to clear them.

## Test mode

New handlers start in test mode. Documents are processed and matched, and every action
is logged without being sent. Test-mode results are under **Queued**, on the **Test**
tab. Switch test mode off when the results look right.

## Billing

Billing is per booking, so a handled document never adds a charge for a booking that has
already been billed.


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