---
title: "LeitwegId – API-Referenz · Quittio"
description: "Leitweg-ID of public buyers in Germany (BT-10 for XRechnung): coarse address (2–12 digits), optional fine address (up to 30 characters) and check digits according to ISO 7064 Mod 97-10."
canonical_url: "https://quittio.dev/docs/api/Quittio/Country/DE/Support/LeitwegId"
locale: de
meta:
  "og:description": "Leitweg-ID of public buyers in Germany (BT-10 for XRechnung): coarse address (2–12 digits), optional fine address (up to 30 characters) and check digits according to ISO 7064 Mod 97-10."
  "og:image": "https://quittio.dev/og/quittio-de.jpg"
  "og:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "LeitwegId – API-Referenz · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-de.jpg"
  "twitter:image:alt": "Quittio: E-Rechnungen für PHP und Laravel. Rechtssicher, validiert, archiviert, mit geprüfter Beispielrechnung."
---

> Index of every page on this site: [llms.txt](https://quittio.dev/llms.txt)

[API reference](https://quittio.dev/docs/api) / [Quittio](https://quittio.dev/docs/api/Quittio) \\ [Country](https://quittio.dev/docs/api/Quittio/Country) \\ [DE](https://quittio.dev/docs/api/Quittio/Country/DE) \\ [Support](https://quittio.dev/docs/api/Quittio/Country/DE/Support)

# LeitwegId

final class in quittio/country-de

`Quittio\Country\DE\Support\LeitwegId` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/country-de/src/Support/LeitwegId.php#L12)

Leitweg-ID of public buyers in Germany (BT-10 for XRechnung): coarse address (2–12 digits), optional fine address (up to 30 characters) and check digits according to ISO 7064 Mod 97-10.

## Methods \#

| Method | Description |
| --- | --- |
| `::checkDigits()` | The two check digits (ISO 7064 MOD 97-10) of a Leitweg-ID, computed over the coarse and the fine address concatenated without the dash, e.g. checkDigits('04011000'.'1234512345'). |
| `::isValid()` | Whether the value is a Leitweg-ID with correct check digits. |
| `::looksLike()` | Whether the value has the shape of a Leitweg-ID (coarse address, optional fine address, two check digits, separated by dashes), whatever its check digits. |

### `checkDigits()`#

```
public static function checkDigits(string $address): string
```

static

The two check digits (ISO 7064 MOD 97-10) of a Leitweg-ID, computed over the coarse and the fine address concatenated without the dash, e.g. checkDigits('04011000'.'1234512345').

| Parameter | Type | Description |
| --- | --- | --- |
| `$address` | `string` | |

<dl><dt>Returns</dt>
<dd><code>string</code></dd>
</dl>

### `isValid()`#

```
public static function isValid(?string $value): bool
```

static

Whether the value is a Leitweg-ID with correct check digits.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?string` | |

<dl><dt>Returns</dt>
<dd><code>bool</code></dd>
</dl>

### `looksLike()`#

```
public static function looksLike(?string $value): bool
```

static

Whether the value has the shape of a Leitweg-ID (coarse address, optional fine address, two check digits, separated by dashes), whatever its check digits.

| Parameter | Type | Description |
| --- | --- | --- |
| `$value` | `?string` | |

<dl><dt>Returns</dt>
<dd><code>bool</code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/#website","@type":"WebSite","description":"E-Rechnungen für PHP und Laravel: ZUGFeRD, XRechnung und Peppol erstellen, prüfen, lesen und archivieren.","inLanguage":"de-DE","name":"Quittio","url":"https://quittio.dev/","publisher":{"@id":"https://quittio.dev/#identity"},"workTranslation":{"@id":"https://quittio.dev/en#website"}},{"@id":"https://quittio.dev/docs/api/Quittio/Country/DE/Support/LeitwegId#webpage","@type":"WebPage","description":"Leitweg-ID of public buyers in Germany (BT-10 for XRechnung): coarse address (2–12 digits), optional fine address (up to 30 characters) and check digits according to ISO 7064 Mod 97-10.","name":"LeitwegId – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Country/DE/Support/LeitwegId","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Country/DE/Support/LeitwegId"]}],"primaryImageOfPage":{"@id":"https://quittio.dev/#logo"}},{"@id":"https://quittio.dev/#identity","@type":"Organization","description":"Open-Source-Bibliothek für E-Rechnungen in PHP und Laravel (ZUGFeRD, XRechnung, Peppol) und Quittio Managed.","email":"kontakt@niklasforst.de","legalName":"Niklas Forst – Softwareentwicklung","name":"Quittio","url":"https://quittio.dev","founder":{"@type":"Person","name":"Niklas Forst","url":"https://quittio.dev/ueber"},"logo":{"@id":"https://quittio.dev/#logo"},"sameAs":["https://github.com/Quittio/quittio","https://packagist.org/packages/quittio/quittio"]},{"@id":"https://quittio.dev/#logo","@type":"ImageObject","caption":"Quittio","contentUrl":"https://quittio.dev/logo.png","inLanguage":"de-DE","url":"https://quittio.dev/logo.png"}]}
```