> 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/erste-schritte/architektur-and-datenfluss.md).

# Architektur & Datenfluss

Der Shopware 6 API Connector verbindet Business Central als **führendes ERP-System** mit Shopware 6 als **Onlineshop**. Die Kommunikation erfolgt ausschließlich über die **Shopware-Admin-API** (REST) mit einem Bearer-Token.

**Rollen der Systeme**

* **Business Central** ist in der Regel die **führende Datenquelle** für Artikel, Preise, Bestände und Kunden.
* **Shopware 6** ist das **Verkaufsfrontend** und liefert **Bestellungen** zurück.

**Datenfluss**

```mermaid
flowchart LR
    subgraph BC[Business Central]
        Items[Artikel/Preise/Bestand]
        Cust[Kunden/Kontakte]
        Orders[Verkaufsaufträge]
        Log[Aktivitätsprotokoll]
    end
    subgraph SW[Shopware 6]
        Prod[Produkte]
        Prices[Preise/Regeln]
        SWO[Bestellungen]
    end
    Items -->|Upload| Prod
    Items -->|Upload| Prices
    Cust -->|Upload| SW
    SWO -->|Download| Orders
    Orders -->|Status/Lieferung/Rechnung| SWO
    Prod -.->|Matching/Import| Items
    BC <-->|Admin-API + Bearer-Token| SW
    SW --> Log
```

**Was wird in welche Richtung übertragen?**

| Objekt                                 | Richtung      | Auslöser                     |
| -------------------------------------- | ------------- | ---------------------------- |
| Artikel, Bilder, Attribute, Kategorien | BC → Shopware | Upload (manuell / geplant)   |
| Preise & Preislisten                   | BC → Shopware | Upload (manuell / geplant)   |
| Bestände                               | BC → Shopware | Upload (manuell / geplant)   |
| Kunden & B2B-Benutzer                  | BC → Shopware | Upload (manuell / geplant)   |
| Bestellungen                           | Shopware → BC | Download (manuell / geplant) |
| Liefer-/Rechnungsstatus                | BC → Shopware | beim Buchen                  |
| PDF-Dokumente                          | BC → Shopware | Upload (Premium)             |

**Zuordnungen als Bindeglied**

Damit BC-Werte und Shopware-Werte zueinanderfinden, pflegt der Connector **Zuordnungen (Mappings)** – z. B. für Steuern, Zahlungsarten, Währungen und Verkaufskanäle. Diese werden einmalig über **Shopware Erstdaten laden** befüllt und in der Shopware Zuordnung gepflegt.

**Protokollierung**

Jeder API-Aufruf kann protokolliert werden. Fachliche Ereignisse landen im Aktivitätsprotokoll, technische Details (mit *Developer Log*) im API Call Log.


---

# 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/erste-schritte/architektur-and-datenfluss.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.
