API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console
Entity · cost_types

Cost Type Schema

Schema ID
cost_type
Collection
cost_types
Permissions
  • Readcost_type_view
  • Createcost_type_create
  • Editcost_type_edit
  • Deletecost_type_delete

Fields

Cost Type Schema

cost_types4 permissions

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.

codestringrequired

Eindeutiger Code innerhalb des Tenants (z.B. „PERS.GEHALT", „MAT.HARDWARE"). Großbuchstaben, Ziffern, Punkt, Bindestrich, Unterstrich.

1–50 charactersPatternread-only
nameobjectrequired

Mehrsprachiger Anzeigename (DE Pflicht, EN Pflicht).

destringrequired
1–200 characters
enstringrequired
1–200 characters
kindstringrequired

Kategorie für Aggregations-Reports (BWA-Block, Auswertung pro Kostenart-Gruppe). ERLOES = Ertrag, alle anderen = Aufwand.

PERSONALMATERIALFREMDLEISTUNGABSCHREIBUNGMIETE_LEASINGLIZENZREISEKOSTENMARKETINGSTEUERVERSICHERUNGZINSENERLOESSONSTIGES
skr04Accountstringoptional

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).

Patternnullable
descriptionstringoptional

Optionale Beschreibung / Kontierungs-Hinweis.

max 2000 charactersnullable
isActivebooleanoptional

Inaktive Kostenarten können nicht mehr neu zugeordnet werden, bleiben aber für historische Buchungen erhalten.

Default: true
isRevenuebooleanoptional

True bei Erlös-Kostenarten (kind=ERLOES). Wird beim Posting-Generator für Soll/Haben-Logik genutzt und in der BWA als Ertrag aggregiert.

Default: false
sortOrderintegeroptional

Optionale manuelle Sortierreihenfolge. Default = nach kind, dann nach code.

nullable

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 + filterable
  • GET /api/v1/cost_types/<id> — Single entity
  • POST /api/v1/cost_types — Create
  • PATCH /api/v1/cost_types/<id> — Partial update
  • DELETE /api/v1/cost_types/<id> — Soft delete
  • GET /api/v1/cost_types/<id>/timeline — Audit + activities

Search