---
title: "BaseRates – API reference · Quittio"
description: "Base rates (section 247 BGB) of the application in addition to the table shipped with Quittio, e.g. rates published after the release or fetched with BundesbankBaseRates. DefaultInterest uses table() unless it is given a table of its own. In Laravel the GermanyServiceProvider registers the configured and the fetched rates."
canonical_url: "https://quittio.dev/en/docs/api/Quittio/Country/DE/Dunning/BaseRates"
locale: en
meta:
  "og:description": "Base rates (section 247 BGB) of the application in addition to the table shipped with Quittio, e.g. rates published after the release or fetched with BundesbankBaseRates. DefaultInterest uses table() unless it is given a table of its own. In Laravel the GermanyServiceProvider registers the configured and the fetched rates."
  "og:image": "https://quittio.dev/og/quittio-en.jpg"
  "og:image:alt": "Quittio: Invoices, settled. E-invoicing for PHP and Laravel, with a validated sample invoice."
  "og:image:height": "630"
  "og:image:type": image/jpeg
  "og:image:width": "1200"
  "og:title": "BaseRates – API reference · Quittio"
  "twitter:image": "https://quittio.dev/og/quittio-en.jpg"
  "twitter:image:alt": "Quittio: Invoices, settled. E-invoicing for PHP and Laravel, with a validated sample invoice."
---

> 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) \\ [Dunning](https://quittio.dev/docs/api/Quittio/Country/DE/Dunning)

# BaseRates

final class in quittio/country-de

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

Base rates (section 247 BGB) of the application in addition to the table shipped with Quittio, e.g. rates published after the release or fetched with BundesbankBaseRates. DefaultInterest uses table() unless it is given a table of its own. In Laravel the GermanyServiceProvider registers the configured and the fetched rates.

## Methods \#

| Method | Description |
| --- | --- |
| `::normalise()` | Checks and normalises rates: the base rate changes on 1 January and 1 July only (section 247 (1) sentence 2 BGB), values are decimal percentages. |
| `::register()` | Adds or replaces rates. Later registrations win for the same date. |
| `::registered()` | |
| `::reset()` | Forgets the registered rates; the shipped table stays. Quittio::resetState() calls it. |
| `::table()` | The shipped table with the registered rates. |

### `normalise()`#

```
public static function normalise(array<array-key, mixed> $rates): array<string, string>
```

static

Checks and normalises rates: the base rate changes on 1 January and 1 July only (section 247 (1) sentence 2 BGB), values are decimal percentages.

| Parameter | Type | Description |
| --- | --- | --- |
| `$rates` | `array<array-key, mixed>` | |

<dl><dt>Returns</dt>
<dd><code>array&lt;string, string&gt;</code></dd>
</dl>

### `register()`#

```
public static function register(array<array-key, mixed> $rates): void
```

static

Adds or replaces rates. Later registrations win for the same date.

| Parameter | Type | Description |
| --- | --- | --- |
| `$rates` | `array<array-key, mixed>` | ISO date (1 January or 1 July) => rate in percent, e.g. \['2027-01-01' => '1.27'] |

### `registered()`#

```
public static function registered(): array<string, string>
```

static

<dl><dt>Returns</dt>
<dd><code>array&lt;string, string&gt;</code></dd>
</dl>

### `reset()`#

```
public static function reset(): void
```

static

Forgets the registered rates; the shipped table stays. Quittio::resetState() calls it.

### `table()`#

```
public static function table(): BaseRateTable
```

static

The shipped table with the registered rates.

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Country/DE/Dunning/BaseRateTable">BaseRateTable</a></code></dd>
</dl>

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://quittio.dev/en#website","@type":"WebSite","description":"E-invoicing for PHP and Laravel: create, validate, read and archive ZUGFeRD, XRechnung and Peppol invoices.","inLanguage":"en","name":"Quittio","url":"https://quittio.dev/en","publisher":{"@id":"https://quittio.dev/#identity"},"translationOfWork":{"@id":"https://quittio.dev/#website"}},{"@id":"https://quittio.dev/en/docs/api/Quittio/Country/DE/Dunning/BaseRates#webpage","@type":"WebPage","description":"Base rates (section 247 BGB) of the application in addition to the table shipped with Quittio, e.g. rates published after the release or fetched with BundesbankBaseRates. DefaultInterest uses table() unless it is given a table of its own. In Laravel the GermanyServiceProvider registers the configured and the fetched rates.","name":"BaseRates – API reference","url":"https://quittio.dev/en/docs/api/Quittio/Country/DE/Dunning/BaseRates","isPartOf":{"@id":"https://quittio.dev/en#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/en/docs/api/Quittio/Country/DE/Dunning/BaseRates"]}],"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":"en","url":"https://quittio.dev/logo.png"}]}
```