---
title: "Dunning – API-Referenz · Quittio"
description: "Data of a payment reminder: open items, fees, interest and the new deadline."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Documents/Dunning"
locale: de
meta:
  "og:description": "Data of a payment reminder: open items, fees, interest and the new deadline."
  "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": "Dunning – 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) \\ [Core](https://quittio.dev/docs/api/Quittio/Core) \\ [Documents](https://quittio.dev/docs/api/Quittio/Core/Documents)

# Dunning

final readonly class in quittio/core

`Quittio\Core\Documents\Dunning` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Documents/Dunning.php#L22)

Data of a payment reminder: open items, fees, interest and the new deadline.

Level 0 is a friendly payment reminder (Zahlungserinnerung), level 1 the first formal reminder (1. Mahnung), level 2 the second and so on.

Fees and default interest are damages, not consideration for a supply: they carry no VAT, and `total()` adds them without VAT.

## Properties \#

| Property | Type | Description |
| --- | --- | --- |
| `$deadline` readonly | `? [Date](https://quittio.dev/docs/api/Quittio/Core/Support/Date)` | |
| `$fees` readonly | `list< [DunningFee](https://quittio.dev/docs/api/Quittio/Core/Documents/DunningFee)>` | |
| `$interest` readonly | `list< [InterestCharge](https://quittio.dev/docs/api/Quittio/Core/Documents/InterestCharge)>` | |
| `$level` readonly | `int` | |
| `$openItems` readonly | `list< [OpenItem](https://quittio.dev/docs/api/Quittio/Core/Documents/OpenItem)>` | |

## Methods \#

| Method | Description |
| --- | --- |
| `->__construct()` | |
| `->feeTotal()` | |
| `->interestTotal()` | |
| `->openInvoiceNumbers()` | Invoice numbers of the items that are still open, e.g. for the remittance information. |
| `->openTotal()` | |
| `->remittanceText()` | Remittance information for a payment of the reminder: the open invoice numbers, separated by commas, with as many complete numbers as fit into $maxLength (140 characters for SEPA and the EPC QR code). |
| `->total()` | Amount to pay: open items plus fees plus interest (no VAT on fees and interest). This is the amount for a payment QR code of the reminder. |

### `__construct()`#

```
public function __construct(
    int $level,
    list<OpenItem> $openItems,
    ?Date $deadline = null,
    list<DunningFee> $fees = [],
    list<InterestCharge> $interest = [],
)
```

| Parameter | Type | Description |
| --- | --- | --- |
| `$level` | `int` | |
| `$openItems` | `list< [OpenItem](https://quittio.dev/docs/api/Quittio/Core/Documents/OpenItem)>` | |
| `$deadline` | `? [Date](https://quittio.dev/docs/api/Quittio/Core/Support/Date)` = `null` | |
| `$fees` | `list< [DunningFee](https://quittio.dev/docs/api/Quittio/Core/Documents/DunningFee)>` = `[]` | |
| `$interest` | `list< [InterestCharge](https://quittio.dev/docs/api/Quittio/Core/Documents/InterestCharge)>` = `[]` | |

### `feeTotal()`#

```
public function feeTotal(string $currency): Money
```

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

<dl><dt>Returns</dt>
<dd><code>Brick\Money\Money</code></dd>
</dl>

### `interestTotal()`#

```
public function interestTotal(string $currency): Money
```

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

<dl><dt>Returns</dt>
<dd><code>Brick\Money\Money</code></dd>
</dl>

### `openInvoiceNumbers()`#

```
public function openInvoiceNumbers(): list<string>
```

Invoice numbers of the items that are still open, e.g. for the remittance information.

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

### `openTotal()`#

```
public function openTotal(string $currency): Money
```

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

<dl><dt>Returns</dt>
<dd><code>Brick\Money\Money</code></dd>
</dl>

### `remittanceText()`#

```
public function remittanceText(int $maxLength = 140): string
```

Remittance information for a payment of the reminder: the open invoice numbers, separated by commas, with as many complete numbers as fit into $maxLength (140 characters for SEPA and the EPC QR code).

| Parameter | Type | Description |
| --- | --- | --- |
| `$maxLength` | `int` = `140` | |

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

### `total()`#

```
public function total(string $currency): Money
```

Amount to pay: open items plus fees plus interest (no VAT on fees and interest). This is the amount for a payment QR code of the reminder.

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

<dl><dt>Returns</dt>
<dd><code>Brick\Money\Money</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/Core/Documents/Dunning#webpage","@type":"WebPage","description":"Data of a payment reminder: open items, fees, interest and the new deadline.","name":"Dunning – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Documents/Dunning","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Documents/Dunning"]}],"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"}]}
```