---
title: "Get the validation policy"
description: "Settings API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get the validation policy

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="get">GET</span>
<code class="cvo-op-path-code">/v1/validation-policy</code>
</div>
</div>

Returns which rulebooks check this company's invoices, and how much each one counts, for each side: `received` for documents that arrive, `rulebooks` for invoices the company makes. Each pinned rulebook is set to one of:

- `REQUIRED`: it runs, and a failure rejects the invoice.
- `OPTIONAL`: it runs and its result is shown, but it cannot reject the invoice.
- `OFF`: it does not run.

The invoice's own Specification identifier (BT-24) is recorded but does not decide which rulebooks run. Two rulebooks apply only to an invoice whose Specification identifier names them: XRechnung Extension and XRechnung CVD. On any other file they do not run, and on a file that claims one of them core XRechnung does not run. The report lists such a rulebook in `notApplicable`, and a `REQUIRED` one rejects the invoice. A company that never set a policy gets its country's default, returned as version 1 with `createdBy: null`. Only `DE` has one, and a company anywhere else gets the German one. The German default grades invoices you make with EN16931 and XRechnung `REQUIRED`, and received documents with EN16931 `REQUIRED` and XRechnung `OPTIONAL`. A version 1 frozen before the received side existed grades both sides alike until a new version is saved. Any credential may read it, so a system sending invoices can check what will apply.

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | The current version. |
| `401` | No usable credential was sent (`invalid_credentials`). |
| `404` | Nothing is stored in this deployment, so there is no policy to read (`no_policy`). Checks here are graded under the German default. |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/settings/get-the-validation-policy/index.mdx
