---
title: "BuildsParties – API-Referenz · Quittio"
description: "Seller, buyer, payee and tax representative (BG-4, BG-7, BG-10, BG-11)."
canonical_url: "https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsParties"
locale: de
meta:
  "og:description": "Seller, buyer, payee and tax representative (BG-4, BG-7, BG-10, BG-11)."
  "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": "BuildsParties – 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)

# BuildsParties

trait in quittio/core

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

Seller, buyer, payee and tax representative (BG-4, BG-7, BG-10, BG-11).

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

## Methods \#

| Method | Description |
| --- | --- |
| `->buyer()` | The buyer (BG-7): a BuyerParty, a PartyBuilder (Party::make()) or an application model (ProvidesParty), e.g. ->buyer($customer), replace the buyer set before; a callable receives the builder of the buyer set before and changes it. |
| `->payee()` | Payee (BG-10), if different from the seller (e.g. a factoring company): the name with the identifier (BT-60) and the legal registration identifier (BT-61) and their schemes, a PartyBuilder (Party::make('Factoring AG')->identifier(…)), a PayeeParty, or a callable that receives a PartyBuilder and, like seller() and buyer(), continues an earlier payee. |
| `->seller()` | The seller (BG-4). |
| `->taxRepresentative()` | The seller's tax representative (BG-11): name (BT-62), VAT identifier (BT-63) and postal address (BG-12). |

### `buyer()`#

```
public function buyer(BuyerParty|PartyBuilder|ProvidesParty|callable $buyer): static
```

The buyer (BG-7): a BuyerParty, a PartyBuilder (Party::make()) or an application model (ProvidesParty), e.g. ->buyer($customer), replace the buyer set before; a callable receives the builder of the buyer set before and changes it.

| Parameter | Type | Description |
| --- | --- | --- |
| `$buyer` | `[BuyerParty](https://quittio.dev/docs/api/Quittio/Core/Data/Party/BuyerParty)\| [PartyBuilder](https://quittio.dev/docs/api/Quittio/Core/Builder/PartyBuilder)\| [ProvidesParty](https://quittio.dev/docs/api/Quittio/Core/Contracts/ProvidesParty)\|callable` | |

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

### `payee()`#

```
public function payee(
    PayeeParty|PartyBuilder|string|callable $payee,
    ?string $identifier = null,
    ?string $legalRegistration = null,
    IdentifierScheme|RawCode|string|null $identifierScheme = null,
    IdentifierScheme|RawCode|string|null $legalRegistrationScheme = null,
): static
```

Payee (BG-10), if different from the seller (e.g. a factoring company): the name with the identifier (BT-60) and the legal registration identifier (BT-61) and their schemes, a PartyBuilder (Party::make('Factoring AG')->identifier(…)), a PayeeParty, or a callable that receives a PartyBuilder and, like seller() and buyer(), continues an earlier payee.

| Parameter | Type | Description |
| --- | --- | --- |
| `$payee` | `[PayeeParty](https://quittio.dev/docs/api/Quittio/Core/Data/Party/PayeeParty)\| [PartyBuilder](https://quittio.dev/docs/api/Quittio/Core/Builder/PartyBuilder)\|string\|callable` | |
| `$identifier` | `?string` = `null` | |
| `$legalRegistration` | `?string` = `null` | |
| `$identifierScheme` | `[IdentifierScheme](https://quittio.dev/docs/api/Quittio/Core/Enums/IdentifierScheme)\| [RawCode](https://quittio.dev/docs/api/Quittio/Core/Codes/RawCode)\|string\|null` = `null` | |
| `$legalRegistrationScheme` | `[IdentifierScheme](https://quittio.dev/docs/api/Quittio/Core/Enums/IdentifierScheme)\| [RawCode](https://quittio.dev/docs/api/Quittio/Core/Codes/RawCode)\|string\|null` = `null` | |

<dl><dt>Returns</dt>
<dd><code>static</code></dd>
<dt>Throws</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Exceptions/InvalidArgumentException">InvalidArgumentException</a></code> – for identifiers or schemes next to a PayeeParty or a callable</dd></dl>

### `seller()`#

```
public function seller(SellerParty|PartyBuilder|ProvidesParty|callable $seller): static
```

The seller (BG-4).

A SellerParty, a PartyBuilder (Party::make()) or an application model (ProvidesParty) replaces the seller set before. If the builder was started with the defaults of a seller (applyDefaults(), e.g. Quittio::invoice() with the seller of config/quittio.php or the current Managed issuer), another seller gets nothing of them: everything they set is removed again, i.e. the bank account and the small business flag, for a Managed issuer also payment terms, presentation, locale, time zone and currency. Values the caller set on the builder stay, also when they were set before seller().

A callable receives the builder of the seller set before and changes it, e.g. ->seller(fn ($s) => $s->contact('Max Muster')); the seller stays the same, and so do its defaults.

| Parameter | Type | Description |
| --- | --- | --- |
| `$seller` | `[SellerParty](https://quittio.dev/docs/api/Quittio/Core/Data/Party/SellerParty)\| [PartyBuilder](https://quittio.dev/docs/api/Quittio/Core/Builder/PartyBuilder)\| [ProvidesParty](https://quittio.dev/docs/api/Quittio/Core/Contracts/ProvidesParty)\|callable` | |

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

### `taxRepresentative()`#

```
public function taxRepresentative(string $name, string $vatId, Address $address): static
```

The seller's tax representative (BG-11): name (BT-62), VAT identifier (BT-63) and postal address (BG-12).

| Parameter | Type | Description |
| --- | --- | --- |
| `$name` | `string` | |
| `$vatId` | `string` | |
| `$address` | `[Address](https://quittio.dev/docs/api/Quittio/Core/Data/Party/Address)` | |

<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/BuildsParties#webpage","@type":"WebPage","description":"Seller, buyer, payee and tax representative (BG-4, BG-7, BG-10, BG-11).","name":"BuildsParties – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsParties","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Core/Builder/Concerns/BuildsParties"]}],"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"}]}
```