> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/more-settings/vertex-tax-verification.md).

# Vertex Tax Verification

Vertex Tax Verification compares the tax a supplier charged on an invoice with the tax that Vertex calculates for the same lines. DocBits asks Vertex for the calculation, shows both amounts to the user and stops the document when the vendor tax is too high.

## How it works

1. The document reaches the trigger point. You choose it in the module settings: **Before Export** (default) or **Before Approval**.
2. DocBits sends the invoice lines to Vertex and receives the calculated tax.
3. DocBits writes the result back to the document: the **Vertex Tax Amount** and **Vertex Tax Rate** per line, and the header totals **Vendor Tax** (the tax charged on the invoice), **Vertex Tax**, the sub total and the **Variance**.
4. DocBits compares the vendor tax with the Vertex tax:

| Situation                                                                            | Result                                                                |
| ------------------------------------------------------------------------------------ | --------------------------------------------------------------------- |
| The vendor tax is higher than the Vertex tax by **more than the variance threshold** | The document is rejected. Its status becomes **Vertex Tax Rejected**. |
| The vendor tax is higher, but **within the threshold**                               | The document is accepted.                                             |
| The vendor tax equals the Vertex tax                                                 | The document is accepted.                                             |
| The vendor tax is **lower** than the Vertex tax                                      | The document is accepted and the missing amount is accrued.           |

The result message names the amounts, for example: *Rejected: vendor tax $380.00 exceeds Vertex calculated tax $140.00 by $240.00 (171.4%), above configured threshold of $25.00.*

Users open the result from the vertex icon in the dashboard row of the document. The **Vertex Tax Verification** screen shows a banner (**Verification Failed** with the message, or **Verification Successful**), the fields of the layout you designed and the Vertex tables with the tax per line.

The screen also handles the two layout buttons that continue or return the document:

* An **Approve** button starts the normal release: the document goes to approval when approval is enabled for the document type, otherwise it is exported.
* A **Restart workflow** button sends the document back to validation. Open approval tasks for the document are rejected and the field validation screen opens, so a user can correct the invoice before it is checked again.

Which of the two buttons a user sees depends on the layout you designed for the document type.

{% hint style="info" %}
The verification only runs for document types that have an export configuration of type **Vertex**. Without one, the document continues without verification.
{% endhint %}

## Set up the integration

Open **Settings** → **Module** → **Order & Finance** and go to the **Vertex Tax Integration** card. The page also holds the PO matching and auto accounting settings.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-63b78a8bd2d65af2420e52e655357b4e838260f8%2Fvertex-module-settings.png?alt=media" alt="The Vertex Tax Integration card with connection settings and tolerance settings"><figcaption><p>The Vertex Tax Integration card. Tenant and client values are replaced by placeholders in this screenshot.</p></figcaption></figure>

1. Switch **Vertex Tax Integration** on. The feature needs the Vertex tax subscription.
2. Enter the **Base URL** of your Vertex token endpoint, your **Client ID** and your **Client Secret**.
3. Click **Test connection**, then **Save**.
4. Set the tolerance and the trigger:
   * **Variance Type:** **Fixed Amount** or **Percentage**.
   * **Variance Threshold:** The deviation that is still accepted. The default is a fixed amount of 25. In percentage mode enter the value as a decimal, for example 0.05 for 5 %.
   * **Verification trigger:** **Before Export** or **Before Approval**. With **Before Approval** the check runs while the document is processed, before it goes to approval. If the check itself fails, the document gets the status **Export Error**.

Then add an export configuration of type **Vertex** for the document type (**Settings** → **Export**). It uses a TOML mapping file.

## Design the verification form

The fields that users see on the verification screen are designed per document type.

1. Open **Settings** → **Document Types**, select the document type and click **More Settings**.
2. Open the **Vertex Tax Verification** card and click **Design Vertex Tax Verification**.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-fa66744b205efc1db5a1327f3cdc78d60507643b%2Fdbdc-805-vertex-tax-verification-en-20261101.png?alt=media" alt="The Vertex Tax Verification card in the document type settings"><figcaption><p>Current English Invoice More Settings card with Design Vertex Tax Verification.</p></figcaption></figure>

The Layout Builder opens with the layout type **Vertex Tax Verification**. Drag groups and fields into the form, for example **Invoice details** with invoice number, date and delivery date. The **Vertex Tables Panel** shows the tax comparison and the line items with the Vertex tax per line. It is part of the layout.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-08b8e0b8b31b21b4776fbeff25800a688ae926fa%2Fvertex-layout-builder.png?alt=media" alt="The Layout Builder for the Vertex Tax Verification layout with a group and the Vertex Tables Panel"><figcaption><p>A Vertex Tax Verification layout with the group Invoice Details and the Vertex Tables Panel.</p></figcaption></figure>

For how the Layout Builder works see the [Layout Manager](https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/layout-manager.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/more-settings/vertex-tax-verification.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
