---
title: "CountryCH – API-Referenz · Quittio"
description: "Country pack for Switzerland."
canonical_url: "https://quittio.dev/docs/api/Quittio/Country/CH/CountryCH"
locale: de
meta:
  "og:description": "Country pack for Switzerland."
  "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": "CountryCH – 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) \\ [CH](https://quittio.dev/docs/api/Quittio/Country/CH)

# CountryCH

class in quittio/country-ch · extends [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack) · implements [`CompletesInvoices`](https://quittio.dev/docs/api/Quittio/Core/Countries/Capabilities/CompletesInvoices)

`Quittio\Country\CH\CountryCH` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/country-ch/src/CountryCH.php#L31)

Country pack for Switzerland.

Not reviewed by a tax adviser yet (see the README of the pack).

## Constants \#

| Constant | Value | Description |
| --- | --- | --- |
| `CODE` | `'CH'` | |
| `FLAG_CASH_ROUNDING` | `'ch.cash_rounding'` | Meta flag: round the amount due to 5 Rappen (CashRounding). |
| `TRANSLATION_NAMESPACE` | `'quittio-ch'` | |

## Methods \#

| Method | Description |
| --- | --- |
| `->addressFormatter()` | Default: international address format. |
| `->buyerCountryRules()` | Default: no rules. |
| `->code()` | |
| `->complete()` | Rounds the amount due to 5 Rappen (BT-114) for invoices in CHF with the flag FLAG\_CASH\_ROUNDING or the setting cash\_rounding = true (quittio.countries.ch). |
| `->correctionPolicy()` | Cancellation by credit note, correction by cancel and reissue. |
| `->defaults()` | |
| `->dunningLaw()` | Art. 104 OR: 5 % default interest for businesses and consumers alike, no flat rate. |
| `->exporters()` | Default: no exporters. |
| `->formatAliases()` | Default: no aliases. |
| `->formatRules()` | Default: no format rules; the generic automatic choice applies. |
| `->formats()` | Default: no own formats. |
| `->legalTexts()` | Default: an empty catalog. |
| `->letterLayouts()` | Default: the free layout only. |
| `::locales()` | Locales the pack ships translations for, e.g. \["de", "en", "fr", "it"]. |
| `->mandatoryOutput()` | The UID of a seller that charges VAT, with the note of its registration (Art. 26 (2) lit. a MWSTG). |
| `->numberingRules()` | Invoice numbers are not prescribed in Switzerland; unique numbers are good practice. |
| `->paymentQr()` | The Swiss QR bill: Swiss QR Code with payment part and receipt. |
| `->profiles()` | Default: no profiles. |
| `->readers()` | Default: no readers. |
| `::registerTranslations()` | Makes the pack's translations available to the active translator. Called lazily, so presets work even without a registered Quittio instance. |
| `->retention()` | Ten years (Art. 70 (2) MWSTG, Art. 958f OR). Invoices on immovable property have 20 years (Art. 70 (3) MWSTG), which the pack does not model. |
| `->rules()` | Elements of an invoice according to Art. 26 MWSTG (applies to every format). |
| `->serializers()` | Default: no serializers; CII and UBL are built in. |
| `::swissDunningLaw()` | |
| `->taxPresets()` | |
| `->translationPath()` | |

### `addressFormatter()`#

```
public function addressFormatter(): AddressFormatter
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: international address format.

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/View/AddressFormatter">AddressFormatter</a></code></dd>
</dl>

### `buyerCountryRules()`#

```
public function buyerCountryRules(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: no rules.

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

### `code()`#

```
public function code(): string
```

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

### `complete()`#

```
public function complete(InvoiceData $invoice, array $settings): InvoiceData
```

Rounds the amount due to 5 Rappen (BT-114) for invoices in CHF with the flag FLAG\_CASH\_ROUNDING or the setting cash\_rounding = true (quittio.countries.ch).

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |
| `$settings` | `array` | |

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData">InvoiceData</a></code></dd>
</dl>

### `correctionPolicy()`#

```
public function correctionPolicy(): CorrectionPolicy
```

Cancellation by credit note, correction by cancel and reissue.

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Countries/CorrectionPolicy">CorrectionPolicy</a></code></dd>
</dl>

### `defaults()`#

```
public function defaults(): CountryDefaults
```

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Countries/CountryDefaults">CountryDefaults</a></code></dd>
</dl>

### `dunningLaw()`#

```
public function dunningLaw(): DunningLaw
```

Art. 104 OR: 5 % default interest for businesses and consumers alike, no flat rate.

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Countries/DunningLaw">DunningLaw</a></code></dd>
</dl>

### `exporters()`#

```
public function exporters(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: no exporters.

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

### `formatAliases()`#

```
public function formatAliases(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: no aliases.

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

### `formatRules()`#

```
public function formatRules(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: no format rules; the generic automatic choice applies.

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

### `formats()`#

```
public function formats(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: no own formats.

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

### `legalTexts()`#

```
public function legalTexts(): LegalTextCatalog
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: an empty catalog.

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Countries/LegalTextCatalog">LegalTextCatalog</a></code></dd>
</dl>

### `letterLayouts()`#

```
public function letterLayouts(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: the free layout only.

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

### `locales()`#

```
public static function locales(): list<string>
```

static

Locales the pack ships translations for, e.g. \["de", "en", "fr", "it"].

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

### `mandatoryOutput()`#

```
public function mandatoryOutput(InvoiceData $invoice): MandatoryFieldList
```

The UID of a seller that charges VAT, with the note of its registration (Art. 26 (2) lit. a MWSTG).

| Parameter | Type | Description |
| --- | --- | --- |
| `$invoice` | `[InvoiceData](https://quittio.dev/docs/api/Quittio/Core/Data/InvoiceData)` | |

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Countries/MandatoryFieldList">MandatoryFieldList</a></code></dd>
</dl>

### `numberingRules()`#

```
public function numberingRules(): NumberingRules
```

Invoice numbers are not prescribed in Switzerland; unique numbers are good practice.

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Countries/NumberingRules">NumberingRules</a></code></dd>
</dl>

### `paymentQr()`#

```
public function paymentQr(): PaymentQrGenerator
```

The Swiss QR bill: Swiss QR Code with payment part and receipt.

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Pdf/Qr/PaymentQrGenerator">PaymentQrGenerator</a></code></dd>
</dl>

### `profiles()`#

```
public function profiles(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: no profiles.

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

### `readers()`#

```
public function readers(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: no readers.

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

### `registerTranslations()`#

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

static

Makes the pack's translations available to the active translator. Called lazily, so presets work even without a registered Quittio instance.

### `retention()`#

```
public function retention(): RetentionRule
```

Ten years (Art. 70 (2) MWSTG, Art. 958f OR). Invoices on immovable property have 20 years (Art. 70 (3) MWSTG), which the pack does not model.

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Countries/RetentionRule">RetentionRule</a></code></dd>
</dl>

### `rules()`#

```
public function rules(): array
```

Elements of an invoice according to Art. 26 MWSTG (applies to every format).

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

### `serializers()`#

```
public function serializers(): array
```

inherited from [`AbstractCountryPack`](https://quittio.dev/docs/api/Quittio/Core/Countries/AbstractCountryPack)

Default: no serializers; CII and UBL are built in.

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

### `swissDunningLaw()`#

```
public static function swissDunningLaw(): DunningLaw
```

static

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Countries/DunningLaw">DunningLaw</a></code></dd>
</dl>

### `taxPresets()`#

```
public function taxPresets(): TaxPresetCollection
```

<dl><dt>Returns</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Tax/TaxPresetCollection">TaxPresetCollection</a></code></dd>
</dl>

### `translationPath()`#

```
public function translationPath(): string
```

<dl><dt>Returns</dt>
<dd><code>string</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/CH/CountryCH#webpage","@type":"WebPage","description":"Country pack for Switzerland.","name":"CountryCH – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Country/CH/CountryCH","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Country/CH/CountryCH"]}],"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"}]}
```