# BT-47 Buyer legal registration identifier

Legal registration identifier of the buyer, such as a commercial register number.

## Quick answer

> **Buyer details**: Who receives the invoice and which buyer records or routing data must match.

- [Validate XML](/en/xrechnung-validator?source=resource&bt=BT-47)
- [Convert invoice](/en/pdf-to-xrechnung?source=resource&bt=BT-47)

## In plain language

This field is useful where the invoice needs to identify the buyer as a specific legal entity instead of only a department or brand.

## What you usually enter here

Registry identifier

Typical valid values include: HRB 67890

Optional according to EN 16931-1.

## Where the field sits

BT-47 belongs to the Buyer part of the invoice. UBL 2.1 Syntax: Invoice › cac:AccountingCustomerParty › cac:Party › cac:PartyLegalEntity › cbc:CompanyID. CII (UN/CEFACT) Syntax: rsm:CrossIndustryInvoice › rsm:SupplyChainTradeTransaction › ram:ApplicableHeaderTradeAgreement › ram:BuyerTradeParty › ram:SpecifiedLegalOrganization › ram:ID.

## Valid Examples

- HRB 67890

## Related Fields

- [BT-46 Buyer identifier](/resources/xrechnung/bt-46-buyer-identifier)
- [BT-48 Buyer VAT Identifier](/resources/xrechnung/bt-48-buyer-vat-identifier)

## XML mapping and field facts

Open the technical reference if you need XML paths, validator rule codes, legal wording, or schema-specific mapping details.

### Field ID:
BT-47

### Data Type:
identifier

### Cardinality:
0..1

### Requirement:
Optional

### Max Length:
50 characters

## XML Implementation

### UBL 2.1 Syntax
```
/Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID
```

### CII (UN/CEFACT) Syntax
```
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:BuyerTradeParty/ram:SpecifiedLegalOrganization/ram:ID
```

## Create an XRechnung from your PDF

The converter reads the invoice and shows the fields it found before download, so you can check and correct the values. No PDF? Fill in the XRechnung directly in the form.

- [Convert invoice](/en/pdf-to-xrechnung)
- [Fill in XRechnung in the form](/en/create-xrechnung)

Trying it and buying a single conversion work without an account. Subscriptions from €10/month with annual billing (excl. taxes), or €5 per conversion (excl. taxes) without a subscription.

## Official sources and tools

- [KoSIT Validator](https://erechnungsvalidator.service-bw.de/)
- [XRechnung Standard](https://xeinkauf.de/xrechnung/)
- [Test Suite](https://github.com/itplr-kosit/xrechnung-testsuite)
