Cost Type Schema
Fields
Cost Type Schema
Kostenart — klassifiziert „was für ein Aufwand/Ertrag" eine Buchung repräsentiert. Gemappt auf SKR04-Konto für DATEV-Export. Tenants starten mit ~25 MSP-Branchen-Defaults. Siehe ADR 0116a + Spec controlling-module.md.
code
Eindeutiger Code innerhalb des Tenants (z.B. „PERS.GEHALT", „MAT.HARDWARE"). Großbuchstaben, Ziffern, Punkt, Bindestrich, Unterstrich.
kind
Kategorie für Aggregations-Reports (BWA-Block, Auswertung pro Kostenart-Gruppe). ERLOES = Ertrag, alle anderen = Aufwand.
PERSONALMATERIALFREMDLEISTUNGABSCHREIBUNGMIETE_LEASINGLIZENZREISEKOSTENMARKETINGSTEUERVERSICHERUNGZINSENERLOESSONSTIGESskr04Account
SKR04-Kontonummer für DATEV-Export. 4-8-stellig (4 = Hauptkonto, 8 = Personenkonto). Optional nur, weil Tenants individuelle Kostenarten ohne direkten Buchungsmapping pflegen können (z.B. interne Verrechnungs-Kostenart).
description
Optionale Beschreibung / Kontierungs-Hinweis.
isActive
Inaktive Kostenarten können nicht mehr neu zugeordnet werden, bleiben aber für historische Buchungen erhalten.
isRevenue
True bei Erlös-Kostenarten (kind=ERLOES). Wird beim Posting-Generator für Soll/Haben-Logik genutzt und in der BWA als Ertrag aggregiert.
sortOrder
Optionale manuelle Sortierreihenfolge. Default = nach kind, dann nach code.
No fields match the filter.
Standard endpoints
This resource follows the platform's generic CRUD contract. Read the conventions for pagination, idempotency, optimistic locking and audit. The most important endpoints:
GET /api/v1/cost_types— List, paginated + filterableGET /api/v1/cost_types/<id>— Single entityPOST /api/v1/cost_types— CreatePATCH /api/v1/cost_types/<id>— Partial updateDELETE /api/v1/cost_types/<id>— Soft deleteGET /api/v1/cost_types/<id>/timeline— Audit + activities