# BR-DEX-04 Party identifier scheme must use an ISO 6523 code

Any scheme identifier on a party identifier (Seller BT-29, Buyer BT-46, Payee BT-60) must be coded using one of the ISO 6523 ICD code list entries.

## Problem Description

> **ERROR**: XRechnung extension rule (KoSIT, BR-DEX) · XRechnung 3.0

> **Where BR-DEX-04 is checked**
>
> A validator checks an e-invoice in stages. First the file must be well-formed XML that matches the UBL or CII schema (XSD). Then the EN 16931 business rules run: BR core rules, BR-CO calculations, BR-CL code lists, BR-DEC decimals and VAT-category rules such as BR-S. Next come the national or network rules that BT-24 selects: BR-DE for XRechnung, PEPPOL-EN16931 for Peppol BIS Billing. The report lists every failed rule: one error means reject, warnings alone still mean accept. BR-DEX-04: XRechnung extension rule, reported in the stage “National rules (CIUS)”.

## Solution

Set the @schemeID on cac:PartyIdentification/cbc:ID to a valid ISO 6523 ICD value (for example 0088 for GLN). If you do not need Extension identifiers, the standard XRechnung CIUS profile avoids this rule.

- [Check XML for free](/en/xrechnung-validator)

## Context and Significance

This XRechnung Extension rule fires only in the Extension scenario, which relaxes the core severity to permit additional ISO 6523 scheme codes (such as DIGA identifiers) for party identifiers.

## Valid Examples

- <cbc:ID schemeID="0088">4012345000009</cbc:ID>

## Invalid Examples

- <cbc:ID schemeID="XYZ">4012345000009</cbc:ID> — XYZ is not an ISO 6523 code

## Code Examples

### Valid XML
```
<cac:PartyIdentification>
  <cbc:ID schemeID="0088">4012345000009</cbc:ID>
</cac:PartyIdentification>
```

### Invalid XML
```
<cac:PartyIdentification>
  <cbc:ID schemeID="XYZ">4012345000009</cbc:ID>
</cac:PartyIdentification>
```

## Affected Fields

- [BT-29 Seller identifier](/en/resources/xrechnung/bt-29-seller-identifier)
- [BT-46 Buyer identifier](/en/resources/xrechnung/bt-46-buyer-identifier)
- [BT-60 Payee identifier](/en/resources/xrechnung/bt-60-payee-identifier)

## Related Rules

- [BR-DEX-05](/en/resources/kosit-validator-errors/br-dex-05-legal-registration-iso-6523-scheme)
- [BR-DE-21](/en/resources/kosit-validator-errors/br-de-21-specification-identifier-syntax)

## Validation Tools

- [Official KoSIT Validator](https://github.com/itplr-kosit/validator): Run the official KoSIT validator with the XRechnung configuration to check EN 16931 and XRechnung rules.
- [Convert PDF to XRechnung](/en/pdf-to-xrechnung): Find validation errors during conversion and review each correction.

## Related Resources

- [Official Specification](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [All validation errors](/en/resources/kosit-validator-errors): Overview of the EN 16931, XRechnung and Peppol validation rules explained here.
