> 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/shopware6_en_us/getting-started/architecture-and-data-flow.md).

# Architecture & Data Flow

The Shopware 6 API Connector connects Business Central as the **leading ERP system** with Shopware 6 as the **online shop**. Communication takes place exclusively through the **Shopware Admin API** (REST) using a bearer token.

**Roles of the systems**

* **Business Central** is generally the **leading data source** for items, prices, inventory, and customers.
* **Shopware 6** is the **sales front end** and returns **orders**.

**Data flow**

```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
```

**What is transferred in which direction?**

| Object                                  | Direction     | Trigger                       |
| --------------------------------------- | ------------- | ----------------------------- |
| Items, pictures, attributes, categories | BC → Shopware | Upload (manual / scheduled)   |
| Prices & price lists                    | BC → Shopware | Upload (manual / scheduled)   |
| Inventory                               | BC → Shopware | Upload (manual / scheduled)   |
| Customers & B2B users                   | BC → Shopware | Upload (manual / scheduled)   |
| Orders                                  | Shopware → BC | Download (manual / scheduled) |
| Shipment/invoice status                 | BC → Shopware | when posting                  |
| PDF documents                           | BC → Shopware | Upload (Premium)              |

**Mappings as the connecting element**

So that BC values and Shopware values find each other, the connector maintains **mappings** – for example for taxes, payment methods, currencies, and sales channels. These are filled once through [Load Shopware Initial Data](/shopware/shopware6_en_us/configuration/load-shopware-initial-data.md) and maintained in the [Shopware Assignment & Mapping](/shopware/shopware6_en_us/configuration/shopware-assignment-and-mapping.md) section.

**Logging**

Every API call can be logged. Business events end up in the [Activity Log](/shopware/shopware6_en_us/monitoring-and-logs/activity-log.md), and technical details (with the *Developer Log*) in the [API Call Log](/shopware/shopware6_en_us/monitoring-and-logs/api-call-log.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 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/shopware6_en_us/getting-started/architecture-and-data-flow.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.
