---
title: "Validation rules catalogue | Docs | e-Factura Gateway by R&D Copilot"
description: "Every rule the gateway checks before it sends an invoice: its id, its place in the document, its severity and what it requires."
canonical: "https://efactura.rdcopilot.com/docs/statuses-and-errors/validation-rules/"
language: en
updated: 2026-11-22
---

# Validation rules catalogue

Every rule the gateway checks before it sends an invoice: its id, its place in the document, its severity and what it requires.

These are the rules of the Checks list of the open invoice and of `getChecks`. A rule that starts with `BR` is a business rule of the invoice standard. A rule that starts with `GW` is a rule of the gateway. The place is the element of the UBL document that holds the value; the code in brackets is the standard’s name for it.

| Rule | Place in the document | Severity | What it requires |
| --- | --- | --- | --- |
| `BR-CO-10` | `cac:LegalMonetaryTotal/cbc:LineExtensionAmount (BT-106)` | `blocking` | Line net amounts add up to the net total. |
| `BR-S-09` | `cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount (BT-117)` | `blocking` | The VAT of each rate is its base times the rate. |
| `BR-CO-14` | `cac:TaxTotal/cbc:TaxAmount (BT-110)` | `blocking` | The VAT total is the sum of the VAT of each rate. |
| `BR-CO-15` | `cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount (BT-112)` | `blocking` | The total with VAT is the net total plus VAT. |
| `BR-CO-09` | `cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID (BT-48)` | `blocking` | The buyer’s VAT identifier starts with a country prefix. |
| `GW-01` | `cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent (BT-152)` | `blocking` | Every line carries a VAT rate in force. |
| `GW-02` | `cbc:BuyerReference (BT-10)` | `warning` | The invoice carries a buyer reference. |

## Severity

-   `blocking`: while the rule fails the invoice cannot be sent. The send is refused with `blocked_by_checks`.
-   `warning`: the invoice can be sent. The rule tells you what a buyer will miss.

## The VAT rates a line may carry

The rule GW-01 passes for a line whose rate is one of the rates in force: 21% and 11%. See [The invoice object](https://efactura.rdcopilot.com/docs/send/the-invoice-object/#amounts) for where the rates come from.

## Read the catalogue

curl

```bash
curl "$RDC_BASE_URL/efactura/v1/validation-rules?limit=20" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/efactura/v1/validation-rules?limit=20`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/efactura/v1/validation-rules?limit=20',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/efactura/v1/validation-rules?limit=20');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer ' . getenv('RDC_TOKEN'),
    ],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl);
```

C#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/efactura/v1/validation-rules?limit=20");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

Response 200

```json
{
  "items": [
    {
      "rule": "BR-CO-10",
      "place": "cac:LegalMonetaryTotal/cbc:LineExtensionAmount (BT-106)",
      "severity": "blocking",
      "description": "Line net amounts add up to the net total."
    },
    {
      "rule": "BR-S-09",
      "place": "cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount (BT-117)",
      "severity": "blocking",
      "description": "The VAT of each rate is its base times the rate."
    },
    {
      "rule": "BR-CO-14",
      "place": "cac:TaxTotal/cbc:TaxAmount (BT-110)",
      "severity": "blocking",
      "description": "The VAT total is the sum of the VAT of each rate."
    },
    {
      "rule": "BR-CO-15",
      "place": "cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount (BT-112)",
      "severity": "blocking",
      "description": "The total with VAT is the net total plus VAT."
    },
    {
      "rule": "BR-CO-09",
      "place": "cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID (BT-48)",
      "severity": "blocking",
      "description": "The buyer’s VAT identifier starts with a country prefix."
    },
    {
      "rule": "GW-01",
      "place": "cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent (BT-152)",
      "severity": "blocking",
      "description": "Every line carries a VAT rate in force."
    },
    {
      "rule": "GW-02",
      "place": "cbc:BuyerReference (BT-10)",
      "severity": "warning",
      "description": "The invoice carries a buyer reference."
    }
  ],
  "nextCursor": null
}
```

The authority runs its own checks on the file after the upload. Passing every rule here does not promise `accepted`. See [The authority’s answers](https://efactura.rdcopilot.com/docs/statuses-and-errors/authority-answers/).
