# BR-DEX-14 Third party payment amount currency must match the invoice currency

The currency of the Third party payment amount (BT-DEX-002) must match the Invoice currency code (BT-5).

## Problem Description

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

> **Where BR-DEX-14 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-14: XRechnung extension rule, reported in the stage “National rules (CIUS)”.

## Solution

Set the @currencyID on cbc:PaidAmount to the same value as cbc:DocumentCurrencyCode (BT-5). If you do not model third party payments, the standard XRechnung CIUS profile avoids this rule.

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

## Context and Significance

This XRechnung Extension rule enforces single-currency consistency for the Extension-only third party payment amount, aligning it with the invoice currency BT-5.

## Valid Examples

- BT-5 = EUR and <cbc:PaidAmount currencyID="EUR">20.00</cbc:PaidAmount>

## Invalid Examples

- BT-5 = EUR but <cbc:PaidAmount currencyID="USD">20.00</cbc:PaidAmount>

## Code Examples

### Valid XML
```
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cac:PrepaidPayment>
  <cbc:PaidAmount currencyID="EUR">20.00</cbc:PaidAmount>
</cac:PrepaidPayment>
```

### Invalid XML
```
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cac:PrepaidPayment>
  <cbc:PaidAmount currencyID="USD">20.00</cbc:PaidAmount>
</cac:PrepaidPayment>
```

## Affected Fields

- [BT-DEX-002 Third party payment amount](/en/resources/xrechnung)
- [BT-5 Invoice currency code](/en/resources/xrechnung/bt-5-invoice-currency-code)

## Related Rules

- [BR-DEX-11](/en/resources/kosit-validator-errors/br-dex-11-third-party-payment-amount-required)
- [BR-DEX-13](/en/resources/kosit-validator-errors/br-dex-13-third-party-payment-amount-two-decimals)

## 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.
