> For the complete documentation index, see [llms.txt](https://docs.solutioo.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.solutioo.de/otto-market-connector/einrichtung-und-ablaufe/bestand.md).

# Bestände und Puffer

Bestandsmenge und Bestandspuffer im OTTO Market Connector.

**Bestand senden** in der **OTTO Market Einrichtung** meldet Mengen an OTTO Market. Die Aktion braucht den Berechtigungssatz **OTTO Market Administrator** und den Scope `availability`.

### Welche Zeilen gemeldet werden

Es werden nur Artikelzuordnungen mit **Bestand synchronisieren** berücksichtigt, deren Artikelnr. existiert. Zuordnungen ohne Artikel und Artikel ohne Zuordnung werden übersprungen. Ist keine passende Zeile vorhanden, passiert nichts und die Meldung nennt 0 SKUs.

### So wird die Menge berechnet

1. Die App liest den Lagerbestand des Artikels.
2. Ist **Standard-Lagerortcode** gefüllt, zählt nur dieser Lagerort. Ist das Feld leer, bleibt der Lagerortfilter offen.
3. Die Menge wird auf die nächste ganze Zahl abgerundet.
4. Davon wird der **Bestandspuffer** abgezogen.
5. Ergebnisse unter 0 werden als 0 gemeldet.

Der Bestandspuffer ist eine ganze Zahl ab 0. Ein Puffer von 2 bei einem Bestand von 5 meldet 3. Ein Bestand von 1 bei demselben Puffer meldet 0.

**Letzte Menge** und **Letzte Synchronisation** werden in der Zuordnung gespeichert, bevor der Aufruf an OTTO Market geht. Schlägt der Aufruf fehl, kann die zuletzt berechnete Menge trotzdem schon in der Zuordnung stehen. Die Fehlermeldung beginnt mit *OTTO Market Bestandssync fehlgeschlagen* und enthält den HTTP-Status. **Letzte Bestandssynchronisation** in der Einrichtung wird nur nach einem erfolgreichen Aufruf gesetzt.

Die Kachel **OTTO Market** im Rollencenter zeigt diesen Zeitpunkt unter **Letzte Bestandssynchronisation**.

{% hint style="info" %}
Prüfen Sie Lagerort und Puffer in der Sandbox, bevor Sie dieselben Werte in der Produktion verwenden. Eine im Paket 1.1.14.4 erneut vollständig gegen OTTO Market geprüfte Bestandsübertragung ist nicht belegt.
{% endhint %}

### Automatik

**Bestand automatisch synchronisieren** steuert nur einen Aufgabenwarteschlangen-Eintrag mit dem Parameter `ALL`. Die Aktion **Job Queue anlegen** erzeugt diesen Eintrag nicht. Der von ihr angelegte Job `SYNC_STOCK` sendet den Bestand bei jedem Lauf, unabhängig vom Feld. Details stehen unter [Aufgabenwarteschlange](https://docs.solutioo.de/otto-market-connector/einrichtung-und-ablaufe/aufgabenwarteschlange.md).


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.solutioo.de/otto-market-connector/einrichtung-und-ablaufe/bestand.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
