---
title: "EbInterfaceWriter – API-Referenz · Quittio"
description: "Writes a calculated invoice as ebInterface 6.1, the Austrian XML invoice format of AUSTRIAPRO that e-Rechnung.gv.at accepts besides UBL."
canonical_url: "https://quittio.dev/docs/api/Quittio/Country/AT/EbInterface/EbInterfaceWriter"
locale: de
meta:
  "og:description": "Writes a calculated invoice as ebInterface 6.1, the Austrian XML invoice format of AUSTRIAPRO that e-Rechnung.gv.at accepts besides UBL."
  "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": "EbInterfaceWriter – 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) \\ [AT](https://quittio.dev/docs/api/Quittio/Country/AT) \\ [EbInterface](https://quittio.dev/docs/api/Quittio/Country/AT/EbInterface)

# EbInterfaceWriter

final class in quittio/country-at

`Quittio\Country\AT\EbInterface\EbInterfaceWriter` · [Source](https://github.com/Quittio/quittio/blob/v0.7.1/packages/country-at/src/EbInterface/EbInterfaceWriter.php#L34)

Writes a calculated invoice as ebInterface 6.1, the Austrian XML invoice format of AUSTRIAPRO that e-Rechnung.gv.at accepts besides UBL.

The mapping follows the official mapping of AUSTRIAPRO between UBL and ebInterface: the purchase order reference (BT-13) is the order reference of the invoice recipient, a missing VAT identifier is written as "ATU00000000", credit notes are a "CreditMemo" with positive amounts. Fields without a place in ebInterface (e.g. the buyer reference BT-10, the payee BG-10) are not written.

## Constants \#

| Constant | Value | Description |
| --- | --- | --- |
| `GENERATING_SYSTEM` | `'Quittio'` | |
| `NAMESPACE` | `'http://www.ebinterface.at/schema/6p1/'` | |
| `UNDEFINED_VAT_ID` | `'ATU00000000'` | VAT identifier of a party without one, as the AUSTRIAPRO mapping writes it. |

## Methods \#

| Method | Description |
| --- | --- |
| `::documentType()` | The ebInterface document type of an invoice type code (UNTDID 1001). |
| `::orderId()` | The order reference of the invoice recipient: the purchase order reference (BT-13), else the buyer reference (BT-10), which carries the order reference (Auftragsreferenz) of the federal government in CIUS-AT-GOV. |
| `->write()` | |

### `documentType()`#

```
public static function documentType(InvoiceData $invoice): string
```

static

The ebInterface document type of an invoice type code (UNTDID 1001).

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

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

### `orderId()`#

```
public static function orderId(InvoiceData $invoice): ?string
```

static

The order reference of the invoice recipient: the purchase order reference (BT-13), else the buyer reference (BT-10), which carries the order reference (Auftragsreferenz) of the federal government in CIUS-AT-GOV.

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

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

### `write()`#

```
public function write(InvoiceData $invoice): string
```

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

<dl><dt>Returns</dt>
<dd><code>string</code></dd>
<dt>Throws</dt>
<dd><code><a href="https://quittio.dev/docs/api/Quittio/Core/Exceptions/InvalidArgumentException">InvalidArgumentException</a></code> – for an invoice that is not calculated</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/AT/EbInterface/EbInterfaceWriter#webpage","@type":"WebPage","description":"Writes a calculated invoice as ebInterface 6.1, the Austrian XML invoice format of AUSTRIAPRO that e-Rechnung.gv.at accepts besides UBL.","name":"EbInterfaceWriter – API-Referenz","url":"https://quittio.dev/docs/api/Quittio/Country/AT/EbInterface/EbInterfaceWriter","isPartOf":{"@id":"https://quittio.dev/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://quittio.dev/docs/api/Quittio/Country/AT/EbInterface/EbInterfaceWriter"]}],"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"}]}
```