> For the complete documentation index, see [llms.txt](https://helpcenter.etron.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.etron.info/verwaltungsoberflache/api-and-hooks/endpunkte/documentation-v2-rest-api-dokumentation.md).

# Documentation: v2 REST API Dokumentation

> *API & Hooks -> Endpunkte -> Documentation*

{% hint style="info" %}
*Direkter Link zur Dokumentation:* [*REST API Dokumentation*](https://apidocs.wawi.onretail.eu/rest/docs)
{% endhint %}

<figure><img src="/files/I3wgYvuSx1vDjAYFYEMd" alt=""><figcaption></figcaption></figure>

Über den Menüpunkt öffnet sich die API Dokumentation (Swagger) in einem neuen Browser-Tab.

<figure><img src="/files/QWj7qoQ34mqAgzSzQB86" alt=""><figcaption></figcaption></figure>

## Download API Postman Collection, Postman Environment

Unter dem Menüpunkt API & Hooks -> Endpunkte -> Dokumentation kann über den Link "Download Postman Collection & Environment" direkt die Postman Collection und das Postman Environment als zip-Datei heruntergeladen werden. In Postman kann der entpackte Ordner importiert werden, wodurch die API Dokumentation und die Daten für die Authentifizierung über oAuth2 direkt in Postman verfügbar sind.&#x20;

Alternativ kann die Postman Collection auch als json-Datei hier heruntergeladen werden:

{% file src="/files/o0w6ILLZmhOuS1Q4w4F3" %}

## Beschreibung der API Dokumentation (Swagger)

<figure><img src="/files/gBqMXrOgYWq7NiCfE7WS" alt=""><figcaption></figcaption></figure>

In der Dokumentation befindet sich eine Beschreibung der API, für verschiedene Datenmodelle sind Beispiele bzw. Schema im JSON-Format angegeben. Die verschiedenen Endpunkte können nach vorheriger [Autorisierung](#autorisierung) über oauth2 direkt [getestet](#testen-try-it-out) werden.&#x20;

<figure><img src="/files/nUKClielrn87149FWOKQ" alt=""><figcaption></figcaption></figure>

### Testen (Try it out)

Die API-Requests können nach vorheriger [Autorisierung](#autorisierung) getestet werden.

Dafür wird einer der Requests in der Doku durch Anklicken ausgeklappt, und rechts oben der Button ![](/files/hbnc1hWfUKlOo2EHeGig) ausgewählt. Nun können die gewünschten Parameter gesetzt und durch Auswählen des Buttons  ![Execute](/files/ekAjagWNFvGnBkTbMUUF) der Request getestet werden.

<figure><img src="/files/2ed60cIhUJmR4h58qhfw" alt=""><figcaption></figcaption></figure>

### Autorisierung&#x20;

Die Autorisierung wird recht oben über den Button <img src="/files/MxM4DwrupbLmqWotna1G" alt="Authorize" data-size="original"> geöffnet. Im Bereich  **OAuth2** wird die client\_id und das client\_secret der zu [testenden Verbindung ](/verwaltungsoberflache/api-and-hooks/authentication.md)eingegeben.

<figure><img src="/files/NqfChGTZlxy1Wc8EiQbh" alt=""><figcaption></figcaption></figure>

Über den Button <img src="/files/KZVKXxoCxksJuFleP6dp" alt="" data-size="line"> bestätigen.&#x20;

Nach erfolgreicher Autorisierung sollten die Daten im Fenster so aussehen.

<figure><img src="/files/41VgPO0cvUY52ndIKFSD" alt=""><figcaption></figcaption></figure>

### Schemas

<figure><img src="/files/DtbVAHXwNzBXis7JYQ7m" alt=""><figcaption></figcaption></figure>

Am Ende der API Dokumentation befinden sich die Schemas der verschiedenen Modelle mit der Beschreibung der Felder und Datentypen.

Beispiel: Schema einer Angebotszeile in einem [Angebot](/verwaltungsoberflache/auftragswesen/angebote-and-auftrage-auftragswesen.md#auftragszeilen).

<figure><img src="/files/gnCgqh3UNfWwYq0CHsUB" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://helpcenter.etron.info/verwaltungsoberflache/api-and-hooks/endpunkte/documentation-v2-rest-api-dokumentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
