# BR-07 Buyer name is required

An invoice shall contain the Buyer name (BT-44), the name under which the customer is registered or known.

## Problem Description

> **ERROR**: EN 16931 core business rule (CEN)

## Context and Significance

This is an EN 16931 core rule. The invoice must state clearly who is billed. In UBL the name belongs in cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName; a name only in cac:PartyName/cbc:Name does not satisfy BR-07. The error often appears when the customer master data holds a short name but no legal name. In CII, BT-44 is ram:BuyerTradeParty/ram:Name.

## Solution

Provide cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName with the buyer’s name.

- [Validate XML](/en/xrechnung-validator?source=resource&rule=BR-07)
- [Convert invoice](/en/pdf-to-xrechnung?source=resource&rule=BR-07)

## Valid Examples

- BT-44 = Beispiel Einkauf AG — buyer registration name populated

## Invalid Examples

- cac:PartyLegalEntity/cbc:RegistrationName is missing for the customer party

## Code Examples

### Valid XML
```
<cac:AccountingCustomerParty>
  <cac:Party>
    <cac:PartyLegalEntity>
      <cbc:RegistrationName>Beispiel Einkauf AG</cbc:RegistrationName>
    </cac:PartyLegalEntity>
  </cac:Party>
</cac:AccountingCustomerParty>
```

### Invalid XML
```
<cac:AccountingCustomerParty>
  <cac:Party>
    <cac:PartyLegalEntity>
      <cbc:CompanyID>DE987654321</cbc:CompanyID>
    </cac:PartyLegalEntity>
  </cac:Party>
</cac:AccountingCustomerParty>
```

## Affected Fields

- [BT-44 Buyer name](/resources/xrechnung/bt-44-buyer-name)

## Related Rules

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

## 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](/pdf-to-xrechnung): Find validation errors during conversion and review each correction.

## Related Resources

- [Official Specification](https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
- [All validation errors](/resources/kosit-validator-errors): Overview of the EN 16931, XRechnung and Peppol validation rules explained here.
