> 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/entwicklerdokumentationen-business-central-dhl-connector/dhl-connector-entwicklerdokumentation/architektur-und-prozessflusse/systemarchitektur.md).

# Systemarchitektur

## Ziel der App

Der DHL Connector bildet DHL-Versandprozesse innerhalb von Business Central ab. Er trennt fachliche Versanddaten, Paketbildung, API-Kommunikation, Druck, Tarife und Buchungsnachverfolgung in eigenständige AL-Objekte.

## Schichten

### Benutzeroberfläche

Pages und Page Extensions stellen Einrichtung, Boxen, Pakete, Zoll, Tarife und Labelaktionen bereit. Die UI ruft keine DHL-Endpunkte direkt auf, sondern delegiert an Management-Codeunits.

### Fachliche Orchestrierung

* `72242980 SOUDHL Packing Mgt`: Paketbildung und Einheiten
* `72242965 SOUDHL Package Recipient Mgt`: Empfänger-Snapshots
* `72242967 SOUDHL Customs Mgt`: Zollpflicht und CN23-Daten
* `72242984 SOUDHL Box Inventory Mgt`: Kartonverbrauch
* `72242986 SOUDHL Sales Shipment Mgt`: Zuordnung zu gebuchten Lieferungen

### Transport und DHL-APIs

`72242952 SOUDHL API Management` ist der einzige zentrale Transport-Orchestrator. Er dispatcht abhängig von `SOUDHL Configuration."API Service"` an Parcel DE oder Express. Authentifizierung, Request-Aufbau, Response-Parsing und Persistenz bleiben in dieser Schicht.

### Persistenz

* `SOUDHL Configuration`, `Box`, `Billing Number` und `Billing Map`: Setup und Stammdaten
* `SOUDHL Package Header` und `Package Line`: Paket und Inhalt
* `SOUDHL Customs Data` und `Customs Line`: Zollerklärung
* Tarif-Tabellen: versionierte lokale Preisberechnung

### Druck und Ausgabe

* Report `72242951 SOUDHL Generate Label`: Processing-Report zur automatischen Paketerzeugung und Labelanforderung
* Report `72242960 SOUDHL Labels Report`: RDLC-Ausgabe gespeicherter Labelbilder

## Abhängigkeitsrichtung

```mermaid
flowchart TD
  UI[Pages / Page Extensions / Reports] --> ORCH[Fachliche Management-Codeunits]
  UI --> API[SOUDHL API Management]
  ORCH --> DATA[(DHL Tabellen)]
  API --> ORCH
  API --> DATA
  API --> DHL[DHL Parcel DE / MyDHL Express]
  API --> IMG[PDF-zu-JPG-Dienst]
  RATE[SOUDHL Rate Provider] --> TARIFF[(Tarif-Tabellen)]
```

## Öffentlicher Vertrag

Eine externe App soll nur die dokumentierten High-Level-Codeunits, Integration Events und Datenobjekte verwenden. Dass weitere Objekte wegen des AL-Standardzugriffs technisch sichtbar sind, macht sie nicht automatisch zu einem stabilen Vertrag.

## Firmen- und Mandantenkontext

Setup, Secrets und Versanddaten werden je Company verarbeitet. Die meisten Codeunits verwenden `FindFirst()` auf der Konfiguration und erwarten fachlich genau einen Setup-Datensatz je Company.

## Verantwortungsgrenzen

* Der Connector verwaltet DHL-Authentifizierung und Request-Struktur.
* Die Consumer-App liefert fachliche Auswahl, etwa Carrier, Box, Produkt oder Sichtbarkeit.
* Credentials gehören nie in die Consumer-App.
* Direkte Tabellenwrites dürfen Invarianten nicht umgehen; bevorzugt werden Management-Codeunits und Events.


---

# 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/entwicklerdokumentationen-business-central-dhl-connector/dhl-connector-entwicklerdokumentation/architektur-und-prozessflusse/systemarchitektur.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.
