# Set up a Tax Guard monitor and report

## Overview

This guide explains how to configure, activate, and analyze results from a **Tax Guard monitor** in CDQ. The Tax Guard
monitor asynchronously qualifies the business partners stored in a data mirror against official tax and business
registers, checking whether the VAT identifier, name, and address of each partner are consistent with the reference
data. This lets you continuously verify VAT compliance across your data instead of running manual, one-off checks.

**In this guide, you will:**

- activate the tax data sources used for qualification
- create a Tax Guard qualification configuration
- create and activate a Tax Guard monitor
- generate a qualification report


## Before you start

To go through the tutorial, you have to log in to the [CDQ Cloud Apps](https://apps.cdq.com/).

| 
| ![](/assets/image01login.4e448e048eed3968a0dd2ddf2c89ae53dbf7c83fb043c6d594d6b908d92eeb54.c941f44b.png) |


Click on Sign In and enter your username and password.

| 
| ![](/assets/image02login.317613ec01be15708944edd41eadff3017d2bc0433579ddb7efb8ffc608feee3.c941f44b.png) |


Warning
If you have no access to the CDQ Cloud App, ask your internal point of contact to create a CDQ dedicated account. Account details will be sent by email.

Qualification relies on official registers that must be activated for your organization before the monitor can use them. `VIES` is used by default for European Union business partners, while some sources, for example `AT.FON`, require additional credentials. You activate and configure these sources in [step 1](#1-activate-the-tax-data-sources).

What Tax Guard qualifies
Tax Guard qualifies the identifier, name, and address of a business partner. In the CDQ data model, the city is called `locality` and the street is called `thoroughfare`. Each address component (postcode, locality, and thoroughfare) provides its own decision. However, all components are combined into a single address decision.

## Steps

### 1. Activate the tax data sources

CDQ is integrated with a range of official tax and business registers that act as reference data for qualification. Before these sources can be used by a Tax Guard monitor, they must be explicitly activated. Activation is a one-time process for the entire organization, and once completed the activated data sources can be used across all workspaces.

1. Navigate to **Global Settings**.
2. Locate the data source you want to activate. You can filter the list by country of origin, name, and activation status.
3. Open the **Settings** for the required data source and modify it:
  * provide the necessary credentials (if the source requires them),
  * activate the source using the activation toggle,
  * click **Save credentials**.


![Figure 2. Activating a tax data source in Global Settings](/assets/tgm-img002.81b3ded128d795225257911534ffd7f9c20fa1f130ccfb173c9f5ceec5a71704.b883204c.png)

Credentials and quotas
Some data sources require your own credentials and are subject to quotas. `AT.FON`, for example, must be activated with valid credentials and allows a limited number of checks per business partner per day. Activate only the sources you need for qualification or specify them in the Tax Guard Configuration (only those will be used but still need to be active).

CDQ currently provides qualification against 18 official registers. `VIES` covers (by default) the European Union, while additional registers extend coverage to countries outside the EU. The European Union registers differ in their abilities to qualify EU business partners. The full list is in [Qualification data sources](/documentation/_public/product-manuals/tax-guard/reference/qualification-data-sources).

### 2. Create a tax qualification configuration

The Tax Guard monitor is driven by a qualification configuration that selects a **qualification profile**. The profile determines which registers are queried and how the identifier, name, and address are checked.

1. Select the **Tax Guard Qualification Configurator** cloud app.
2. Click **Create**, provide a name for the configuration, and click **Create** again.
3. In the configuration table, confirm that the new configuration has a unique number assigned, then select it for editing.
4. In the details section, choose a **Qualification Profile**:
  * `EU TAX QUALIFICATION`, qualifies European Union business partners, using `VIES` by default (and `AT.FON` when required for German partners),
  * `WORLDWIDE TAX QUALIFICATION`, extends qualification to registers outside the European Union.
5. If you want to change the usage of the selected profile you can select data sources that you want to employ (in this case only selected data sources will be used).
6. Choose proper features on or off (if needed).
7. Click **Save Configuration**.


![Figure 3. Creating a Tax Guard configuration in the Tax Guard Qualification Configurator](/assets/tgm-img003.b855152cca83b1a75affa6b405e2ca27c262d26e0452a3a060dca747d1cf0cc4.b883204c.png)

Choosing data sources within a profile
Within a profile you can narrow down which registers are used through the `dataSources` option, for example `"dataSources": ["VIES", "BZST"]`. Results are always separated per data source, so each source produces its own qualification decisions.

The profiles and the features you can turn on or off are described in [Qualification profiles and features](/documentation/_public/product-manuals/tax-guard/reference/qualification-profiles-and-features).

### 3. Create the Tax Guard monitor

The Tax Guard monitor processes the business partners in a data mirror asynchronously and applies the qualification configuration created in the previous step.

1. Go to the **Data Clinic** cloud app.
2. Click **Add New Data Monitor**.
3. Configure the new monitor:
  * select the **Data Sources** for which the monitor should be turned on,
  * choose `Qualification` for the **Monitor Type**,
  * choose the Tax Guard qualification configuration created in [step 2](#2-create-a-tax-qualification-configuration),
  * select a **Validity span** (optional).
4. Click **Create New Data Monitor** to save.
5. Wait until the job for the new monitor is finished.


![Figure 4. Creating a Tax Guard Monitor in Data Clinic](/assets/tgm-img004.eca3d1dad3134745b0c1d48d7e766f1c32f61be8907b9194d0f971ecc87b6c0f.b883204c.png)

Validity span
With a validity span configured, a business partner is refreshed if no reevaluation trigger occurs within the selected period, keeping the qualification results current.

### 4. Generate a qualification report

Once the monitor has finished, generate a report to review the qualification decisions.

1. In the **Data Clinic** app, open the **Reports** tab.
2. Click **Generate New Report** and configure it:
  * provide a **Report Title**,
  * choose a report type, `Tax Guard Qualification Report` for a report,
  * select the same **Data Sources** used for the monitor,
  * limit the report to specific countries if needed,
  * choose a file format (optional).
3. Click **Generate** to start the report job.
4. Wait until the job is finished, then **Download** the report.


![Figure 5. Generating a qualification report in Data Clinic](/assets/tgm-img005.dc7d4857088af4332d7a7bce5b5f261c7610a1d35e9fbf10688bb250568665b4.b883204c.png)

Report ready
After a few minutes, depending on the size of the monitor results, the report becomes available for download.

## Check the result

Each qualified element (identifier, name, city, street, postcode) is evaluated by a distinct business rule that returns
one decision. The report presents these decisions per business partner and per data source, together with an overall
decision for each business partner. What each decision means, and how the overall decision is derived, is described in
[Qualification results and decisions](/documentation/_public/product-manuals/tax-guard/reference/qualification-results-and-decisions).

Data source limitations
Some registers can only confirm validity rather than return full reference data. For example, `VIES` for Spanish business partners reports only whether a value is valid, `VIES` for German business partners validates the identifier only, and `AT.FON` allows a limited number of checks per business partner per day, exceeding it yields `EXECUTION_ERROR`. All limitations are listed in the [Tax Guard overview](/documentation/_public/product-manuals/tax-guard/overview#limitations).

## Next steps

- [Qualification results and decisions](/documentation/_public/product-manuals/tax-guard/reference/qualification-results-and-decisions) to read the report.
- [Data Clinic](/documentation/_public/product-manuals/cloud-apps/data-clinic) for the other monitors and reports in the same app.
- [Report Configuration Matrix](/documentation/_public/product-manuals/cdq-platform/understanding-report-configuration-matrix) for the report options.


## Your opinion matters!

We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!