---
title: "BuildsNotesAndAttachments – API-Referenz · Quittio"
description: "Invoice notes (BG-1) and supporting documents (BG-24)."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsNotesAndAttachments"
locale: de
meta:
  "og:description": "Invoice notes (BG-1) and supporting documents (BG-24)."
  "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": "BuildsNotesAndAttachments – 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) \\ [Builder](https://quittio.dev/docs/api/Quittio/Core/Builder) \\ [Concerns](https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns)

# BuildsNotesAndAttachments

trait in quittio/core

`Quittio\Core\Builder\Concerns\BuildsNotesAndAttachments` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/core/src/Builder/Concerns/BuildsNotesAndAttachments.php#L19)

Invoice notes (BG-1) and supporting documents (BG-24).

Part of `InvoiceBuilder`, which holds the state; use the builder, not the trait.

## Methods \#

| Method | Description |
| --- | --- |
| `->attachment()` | Supporting document (BG-24), either embedded ($content) or as external link. |
| `->note()` | Adds an invoice note (BG-1): the text (BT-22) and an optional subject code (BT-21, UNTDID 4451, e.g. "REG" for regulatory information). Unknown codes are kept as RawCode. |

### `attachment()`#

```
public function attachment(
    string $id,
    ?string $content = null,
    MimeType|string|null $mimeType = null,
    ?string $filename = null,
    ?string $description = null,
    ?string $externalUri = null,
): static
```

Supporting document (BG-24), either embedded ($content) or as external link.

| Parameter | Type | Description |
| --- | --- | --- |
| `$id` | `string` | |
| `$content` | `?string` = `null` | |
| `$mimeType` | `[MimeType](https://quittio.dev/docs/api/Quittio/Core/Enums/MimeType)\|string\|null` = `null` | |
| `$filename` | `?string` = `null` | |
| `$description` | `?string` = `null` | |
| `$externalUri` | `?string` = `null` | |

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

### `note()`#

```
public function note(
    string $content,
    NoteSubjectCode|RawCode|string|null $subject = null,
): static
```

Adds an invoice note (BG-1): the text (BT-22) and an optional subject code (BT-21, UNTDID 4451, e.g. "REG" for regulatory information). Unknown codes are kept as RawCode.

| Parameter | Type | Description |
| --- | --- | --- |
| `$content` | `string` | |
| `$subject` | `[NoteSubjectCode](https://quittio.dev/docs/api/Quittio/Core/Enums/NoteSubjectCode)\| [RawCode](https://quittio.dev/docs/api/Quittio/Core/Codes/RawCode)\|string\|null` = `null` | |

<dl><dt>Returns</dt>
<dd><code>static</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/Builder/Concerns/BuildsNotesAndAttachments#webpage","@type":"WebPage","description":"Invoice notes (BG-1) and supporting documents (BG-24).","name":"BuildsNotesAndAttachments – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsNotesAndAttachments","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsNotesAndAttachments"]}],"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"}]}
```