# BR-DEX-08 Delivery location identifier scheme must use an ISO 6523 code

Any scheme identifier for a Deliver to location identifier (BT-71) must be coded using one of the ISO 6523 ICD code list entries.

## Problem Description

Any scheme identifier for a Deliver to location identifier (BT-71) must be coded using one of the ISO 6523 ICD code list entries.

> **ERROR**: XRechnung 3.0

## Context and Significance

This XRechnung Extension rule fires only in the Extension scenario, which relaxes the core severity to enable additional ISO 6523 scheme codes for the delivery location identifier.

## Solution

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

- validate
- convert

## Valid Examples

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

## Invalid Examples

- <cbc:ID schemeID="SITE">DOCK-7</cbc:ID> — SITE is not an ISO 6523 code

## Code Examples

### Valid XML
```
<cac:Delivery>
  <cac:DeliveryLocation>
    <cbc:ID schemeID="0088">4098765000002</cbc:ID>
  </cac:DeliveryLocation>
</cac:Delivery>
```

### Invalid XML
```
<cac:Delivery>
  <cac:DeliveryLocation>
    <cbc:ID schemeID="SITE">DOCK-7</cbc:ID>
  </cac:DeliveryLocation>
</cac:Delivery>
```

## Affected Fields

- [BT-71 Deliver to location identifier](/resources/xrechnung/bt-71-deliver-to-location-identifier)

## Related Rules

- [BR-DEX-04](/resources/kosit-validator-errors/br-dex-04-party-identifier-iso-6523-scheme)
- [BR-DE-21](/resources/kosit-validator-errors/br-de-21-specification-identifier-syntax)

## Validation Tools

- [Official KoSIT Validator](https://erechnungsvalidator.service-bw.de/): Validate your XRechnung files against all BR-DE rules.
- [Convert PDF to XRechnung](/pdf-to-xrechnung): Automatic validation error fixes when converting.

## Related Resources

- [Official Specification](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [Complete Error List](/resources/kosit-validator-errors): Overview of all German XRechnung validation rules.
