# 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

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

> **ERROR**: XRechnung 3.0

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

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

- validate
- convert

## 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](/resources/xrechnung)
- [BT-5 Invoice currency code](/resources/xrechnung/bt-5-invoice-currency-code)

## Related Rules

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

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