🌐
B2B-Kundenportal (Customer Portal)
portal
portal_ecosystem
🛡️ RLS Protected
Multi-Mandanten-Self-Service für Kunden: Katalogbestellungen, Rechnungsabruf, Serviceberichte und Support.
Fachliche Bestimmung: Exklusives B2B-Kundenportal für Mandantenkunden. Bietet 14 integrierte Fachmodule (Produkte, Bestellungen mit Attribut-Fieldsets, Angebote, Aufträge, Serviceberichte, Rechnungen, Termine, Retouren, Anlagen und Support-Tickets). Gewährleistet strikte Zweistufen-Isolation (tenant_id + customer_id) und zweistufige Feature-Governance (globale PortalSettings vs. kundenindividuelle Feature-Toggles).
⚡ Workflows & Lebenszyklen (3)
🗄️ Datenmodelle & Felder (1)
🔌 Einstiegspunkte (UI & APIs) (42)
🛡️ Regulatorik & Compliance
⚡ Workflows & Lebenszyklen
Kundenportal-Bestellung & ERP-Kaskadierung
portal_order_cascade
Vom Warenkorb im Kundenportal bis zur automatischen Anlage von Angebot und Lieferauftrag.
sequenceDiagram
Kunde im Portal->>PortalAPI: POST /portal/{slug}/bestellung (Positionen & Fieldsets)
PortalAPI->>PortalAPI: validate_attribute_values()
PortalAPI->>DB: INSERT INTO quotes (source_type = 'SYSTEM')
PortalAPI->>DB: INSERT INTO work_orders (order_type = 'delivery', status = 'SCHEDULED')
PortalAPI-->>Kunde im Portal: Bestätigungsseite & Auftragsnummer
1. CATALOG
Produktauswahl
Kunde wählt Produkte und füllt dynamische Attribut-Fieldsets aus.
Aktionen: Pflichtfeldprüfung im Browser
2. SUBMIT
Bestellübermittlung
POST an /portal/{slug}/bestellung mit typvalidierten semantic_attributes.
Aktionen: order_submit ausführen
3. QUOTE_GEN
Angebotsanlage
System erzeugt Quote mit source_type='SYSTEM' und 'portal_order'.
Aktionen: semantic_attributes übernehmen
4. WORKORDER_GEN
Auftragsanlage
Automatisches Erzeugen des Ausführungsauftrags (WorkOrder) im LVS/ERP.
Aktionen: Lager oder Strecke anstoßen
Benutzerbefehl: customer crud subagent
plan:command_customer_crud_subagent
Geprüfter Durable-Plan (durable_plan), Start: manual_command.
1. customer_crud_subagent
customer_crud_subagent
{"key": "execute_command", "label": "Befehl prüfen, ausführen oder zur Freigabe vorlegen", "adapter": "agent.execute", "agent": "customer_crud_subagent", "condition_fact": null}
Aktionen: customer_crud_subagent
Kundenportal-Anfrage eingegangen
plan:portal_request_dispatch
Geprüfter Durable-Plan (durable_plan), Start: domain_event.
1. portal_request_dispatch_agent
portal_request_dispatch_agent
{"key": "step_0", "label": "Portal-Anfrage als Aufgabe disponieren", "adapter": "agent.execute", "agent": "portal_request_dispatch_agent", "condition_fact": null}
Aktionen: portal_request_dispatch_agent
🗄️ Datenmodelle & Felder
🔌 Einstiegspunkte (UI & APIs)
| Art | Methode | Endpunkt / Pfad | Titel & Zweck | Berechtigung |
|---|---|---|---|---|
| ⚡ REST API | DELETE | /api/v1/customers/{customer_id} |
delete_customer
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | DELETE | /api/v1/customers/{customer_id}/contacts/{contact_id} |
delete_contact
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | GET | /api/v1/customers |
list_customers
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/stats |
customer_stats
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id} |
get_customer
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/contacts |
list_contacts
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/invoice-recipient |
get_invoice_recipient
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/portal |
customer_portal_state
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/shop-rates |
list_partner_shop_rates
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /api/v1/customers/{customer_id}/tree |
get_customer_tree
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers |
customers_page
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers/new |
customer_create_page
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers/{customer_id} |
customer_detail_page
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers/{customer_id}/edit |
customer_detail_page
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /customers/{customer_id}/portal |
customer_portal_admin_page
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | GET | /portal/{slug}/profil |
profile_page
Semantic binding: not_evaluated; mutation=False
|
customers
|
| ⚡ REST API | PATCH | /api/v1/customers/{customer_id} |
update_customer
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | PATCH | /api/v1/customers/{customer_id}/contacts/{contact_id} |
update_contact
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers |
create_customer
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/contacts |
create_contact
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/accounts |
customer_portal_account_add
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/accounts/{account_id}/password |
customer_portal_account_password
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/accounts/{account_id}/status |
customer_portal_account_status
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/invites |
customer_portal_invite
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/invites/{invite_id}/revoke |
customer_portal_invite_revoke
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /api/v1/customers/{customer_id}/portal/toggle |
customer_portal_toggle
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal |
customer_portal_admin_save
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/accounts |
customer_portal_account_create
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/accounts/{account_id}/password |
customer_portal_account_password
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/accounts/{account_id}/status |
customer_portal_account_status
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/invites |
customer_portal_invite_create
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /customers/{customer_id}/portal/invites/{invite_id}/revoke |
customer_portal_invite_revoke
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil |
profile_submit
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil/kontakte |
profile_contact_save
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil/kontakte/{contact_id}/loeschen |
profile_contact_delete
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil/standorte |
profile_location_save
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | POST | /portal/{slug}/profil/standorte/{location_id}/deaktivieren |
profile_location_deactivate
Semantic binding: not_evaluated; mutation=True
|
customers
|
| ⚡ REST API | PUT | /api/v1/customers/{customer_id}/shop-rates |
upsert_partner_shop_rate
Semantic binding: not_evaluated; mutation=True
|
customers
|
| 🖥️ WEB-UI | GET | /portal/{slug}/ |
Portal Startseite
Kunden-Dashboard mit Schnellzugriffen und Statuskacheln
|
Standard |
| 🖥️ WEB-UI | GET | /portal/{slug}/bestellung |
Portal Bestellseite
Katalogbestellung mit dynamischen Fieldsets
|
Standard |
| 🖥️ WEB-UI | GET | /portal/{slug}/rechnungen |
Portal Rechnungen
Rechnungsarchiv und PDF-Download
|
Standard |
| ⚡ REST API | POST | /portal/{slug}/bestellung |
Bestellung einreichen
Validiert Fieldsets und erzeugt Quote/WorkOrder
|
Standard |
🛡️ Regulatorik & Compliance
Dieses Modul unterliegt folgenden gesetzlichen, regulatorischen und Revisionsstandards:
- DSGVO Art. 15 (Recht auf Auskunft & Datenzugriff)
- B2B Datensicherheit & RLS-Isolation
Verknüpfte Module: