# BR-17 Payee name is required when a payee is present

The Payee name (BT-59) shall be provided when the Payee (BG-10) differs from the Seller (BG-4).

## Problem Description

The Payee name (BT-59) shall be provided when the Payee (BG-10) differs from the Seller (BG-4).

> **ERROR**: XRechnung 3.0

## Context and Significance

This is a core EN16931 conditional rule; a payee different from the seller must be named so the payment can be attributed correctly.

## Solution

When a cac:PayeeParty group is present, add cac:PayeeParty/cac:PartyName/cbc:Name with the payee’s name.

- validate
- convert

## Valid Examples

- cac:PayeeParty present with BT-59 = Factoring Partner GmbH

## Invalid Examples

- cac:PayeeParty is present but has no cac:PartyName/cbc:Name

## Code Examples

### Valid XML
```
<cac:PayeeParty>
  <cac:PartyName>
    <cbc:Name>Factoring Partner GmbH</cbc:Name>
  </cac:PartyName>
</cac:PayeeParty>
```

### Invalid XML
```
<cac:PayeeParty>
  <cac:PartyIdentification>
    <cbc:ID>PAYEE-1</cbc:ID>
  </cac:PartyIdentification>
</cac:PayeeParty>
```

## Affected Fields

- [BT-59 Payee name](/resources/xrechnung/bt-59-payee-name)
- [BG-10 Payee](/resources/xrechnung)

## Related Rules

- [BR-06](/resources/kosit-validator-errors/br-06-seller-name-required)

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