> 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/shopware/bestellabwicklung/auto-increment-and-inkrementeller-download.md).

# Auto-Increment & inkrementeller Download

Shopware vergibt für Bestellungen eine fortlaufende Nummer (**Auto-Increment**). Der Connector nutzt diese, um beim Download **nur neue Bestellungen** zu holen.

**Funktionsweise**

* Der Download filtert auf `autoIncrement >= <letzter Wert + 1>`.
* So werden bereits geladene Bestellungen nicht erneut verarbeitet.
* Über **Seite** und **Limit** steuern Sie die Menge pro Lauf.

**Startwert festlegen**

Beim allerersten Download legen Sie mit **Shopware Start-AutoIncrement** fest, ab welcher Bestellung geladen werden soll. So können Sie ältere Alt-Bestellungen bewusst überspringen.

{% stepper %}
{% step %}
**Startwert setzen**

Hinterlegen Sie in der Konfiguration den gewünschten Start-AutoIncrement.
{% endstep %}

{% step %}
**Erstdownload**

Starten Sie den Report *Bestellungen herunterladen*. Der Startwert wird vorgeschlagen.
{% endstep %}

{% step %}
**Laufender Betrieb**

Danach lädt jeder Lauf automatisch ab der zuletzt geladenen Bestellung + 1.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Der Auto-Increment muss beim Download mindestens dem konfigurierten Startwert entsprechen. So verhindern Sie versehentliche Doppelimporte von Alt-Bestellungen.
{% endhint %}

### Häufige Fragen

#### Mit welchem API-Filter lädt der Connector nur neue Bestellungen?

Der Bestell-Download ruft `search/order` (POST) mit einem Bereichsfilter auf dem Feld `autoIncrement` auf (`type=range`, `gte={letzter Wert + 1}`). So werden ausschließlich Bestellungen mit einer höheren Auto-Increment-Nummer geladen; bereits importierte Bestellungen bleiben außen vor. Über „Page“ und „Limit“ (Default 500) wird die Menge pro Lauf gesteuert.

#### Was bewirkt der Startwert „Shopware Opening AutoIncrement“?

Der Startwert legt fest, ab welcher Auto-Increment-Nummer der allererste Download beginnt – so lassen sich Alt-Bestellungen gezielt überspringen. Der Connector stellt sicher, dass der verwendete Auto-Increment mindestens diesem Startwert entspricht, und verhindert damit versehentliche Doppelimporte.

#### Kann der inkrementelle Download automatisch per Job laufen?

Ja. Die Codeunit „SOUSHW Order Mgnt.“ ist Job-Queue-fähig und lädt bei jedem Lauf ab „letzter Auto-Increment + 1“. So holt ein Aufgabenwarteschlangenposten (z. B. alle 15–30 Minuten) automatisch nur die neuen Bestellungen.


---

# 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://docs.solutioo.de/shopware/bestellabwicklung/auto-increment-and-inkrementeller-download.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.
