API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · cost_types

Cost Type Schema

ID du schéma
cost_type
Collection
cost_types
Autorisations
  • Lirecost_type_view
  • Créercost_type_create
  • Modifiercost_type_edit
  • Supprimercost_type_delete

Champs

Cost Type Schema

cost_types4 autorisations

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.

codestringobligatoire

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

1–50 caractèresMotiflecture seule
nameobjectobligatoire

Mehrsprachiger Anzeigename (DE Pflicht, EN Pflicht).

destringobligatoire
1–200 caractères
enstringobligatoire
1–200 caractères
kindstringobligatoire

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

PERSONALMATERIALFREMDLEISTUNGABSCHREIBUNGMIETE_LEASINGLIZENZREISEKOSTENMARKETINGSTEUERVERSICHERUNGZINSENERLOESSONSTIGES
skr04Accountstringfacultatif

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

Motifnullable
descriptionstringfacultatif

Optionale Beschreibung / Kontierungs-Hinweis.

max. 2000 caractèresnullable
isActivebooleanfacultatif

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

Par défaut : true
isRevenuebooleanfacultatif

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

Par défaut : false
sortOrderintegerfacultatif

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

nullable

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/cost_types — Liste, paginée et filtrable
  • GET /api/v1/cost_types/<id> — Une entité
  • POST /api/v1/cost_types — Créer
  • PATCH /api/v1/cost_types/<id> — Mise à jour partielle
  • DELETE /api/v1/cost_types/<id> — Suppression logique
  • GET /api/v1/cost_types/<id>/timeline — Audit et activités

Recherche