Zum Inhalt springen

Settle a month in one transaction: store every Abrechnung with its inputs and rule data, post the Buchungen on the day of the Lohnzahlung with the Lohnjournal as Eigenbeleg. One run per Betrieb and month; a mistake is answered by payroll_run.correct.

POST
/v1/commands/payroll_run.finalize
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/v1/commands/payroll_run.finalize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dry_run": false, "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "betrieb_id": null, "lohnzahlung": "2026-04-15", "month": "example" }, "rationale": "example" }'
Idempotency-Key
string

A repeated key returns the first result without running the Command again.

Decuma-Mandant
string format: uuid

The Mandant a session acts on; an API-Schlüssel is bound to its own.

Media typeapplication/json
object
dry_run

Dry run: the checks of executing, then the handler in a transaction that is always rolled back; nothing is logged, sent or kept. The answer is then a BefehlPruefung (as command.check) with the handler’s result as output, not the result below.

boolean
origin

Who or what a call comes from beyond its Actor, set by the caller (an automation, an integration): stored and hashed with the log entry, shown and filtered in the Verlauf.

object
display_name
required

The name a person reads in the Verlauf, 1 to 120 characters.

string
id
required

The caller’s own id of it, 1 to 200 characters.

string
kind
required

What kind of caller, 1 to 40 of a-z, 0-9 and _ (for example automation, integration).

string
payload
object
betrieb_id
string | null format: uuid
lohnzahlung
required

The day of the Lohnzahlung, inside the month it settles; never assumed.

string format: date
month
required

YYYY-MM

string
rationale

Why the Actor issues this; stored in the Command-Log.

string

Result

Media typeapplication/json
object
beleg_id
required
string format: uuid
buchungen
required
Array<string>
lohnlauf_id
required
string format: uuid
result
required
object
abrechnungen
required
Array<object>
object
arbeitgeberanteil
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
arbeitnehmeranteil
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
auszahlung
required

Auszahlungsbetrag (§ 1 Abs. 2 Nr. 7 EBV): the Nettoentgelt plus the employer’s Zuschuss to a berufsständische Versorgungseinrichtung (Nr. 5); owed to the person.

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
beitraege
required
object
beitragsgruppe
required
string
open_parts
required

Branches a value not final yet would change: no line, the refusal names the value.

Array<object>

A part of a run that a value not final yet would change: not computed, with the refusal that names the value.

object
message
required
string
message_de
string | null
next_step
string | null
next_step_de
string | null
part
required

What is not computed (Lohnsteuer, Pflegeversicherung, …).

string
person

The Personalnummer, in a month run.

integer | null format: uint32
rows
required
Array<object>
object
arbeitgeber
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
bemessungsgrundlage
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
employee
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
gekappt
required
boolean
satz
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zweig
required
string
Allowed values: Krankenversicherung Zusatzbeitrag Rentenversicherung Arbeitslosenversicherung Pflegeversicherung ZuschlagKinderlose UmlageU1 UmlageU2 Insolvenzgeldumlage
zuschuss
Any of:
object
hoechst_kv
required

The Höchstbeträge for a privately insured person.

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
hoechst_pv
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
krankenversicherung
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
mitglied

The member’s own contribution (voluntarily insured).

Any of:
object
krankenversicherung
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
pflegeversicherung_mit_zuschlag
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
total
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zusatzbeitrag
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
pflegeversicherung
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
total
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zusatzbeitrag
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
zuschuss_versorgung

Berufsständische Versorgung: the employer’s Zuschuss (§ 172a SGB VI: the share he would bear under pension insurance) and its tax-free part (§ 3 Nr. 62 Satz 3 EStG: at most half the contribution).

array | null
>= 2 items <= 2 items
bemessungsgrundlage_kirchensteuer
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
brutto
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
gesamtkosten
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
kirchensteuer
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
konfession
Any of:

The two denominations whose Kennzahlen the Lohnsteuer-Anmeldung has in every Land.

string
Allowed values: ev rk
lohnsteuer
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
minijob

Minijob: the flat-rate contributions and the Pauschsteuer (to the Minijob-Zentrale).

Any of:
object
an_die_minijob_zentrale
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
auszahlung
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
beitragsgruppe
required
string
gesamtkosten
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
insolvenzgeldumlage
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
krankenversicherung_pauschal
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
open_parts
required

Parts a value not final yet would change: 0.00, the totals too; the refusal names the value.

Array<object>

A part of a run that a value not final yet would change: not computed, with the refusal that names the value.

object
message
required
string
message_de
string | null
next_step
string | null
next_step_de
string | null
part
required

What is not computed (Lohnsteuer, Pflegeversicherung, …).

string
person

The Personalnummer, in a month run.

integer | null format: uint32
pauschsteuer
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
personengruppe
required
string
rentenversicherung_arbeitgeber
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
rentenversicherung_arbeitnehmer
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
rentenversicherung_gesamt
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
summe_arbeitgeber
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
umlage_u1
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
umlage_u2
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
nettolohn
required

Nettoentgelt (§ 1 Abs. 2 Nr. 4 EBV): Gesamtbrutto minus the gesetzliche Abzüge.

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
nr
required
integer format: uint32
pap
required

The outputs of PAP section 3.2 (cent), plus the intermediate values a person needs to follow the result.

object
BK
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
BKS
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
JBMG
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
LSTJAHR
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
LSTLZZ
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
SOLZLZZ
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
SOLZS
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
STS
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
VSP
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
ZRE4J
required

Rechenweg (euro): Jahresarbeitslohn, Vorsorgepauschale, zu versteuernder Jahresbetrag, Jahreslohnsteuer, Bemessungsgrundlage mit Freibeträgen für Kinder.

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
ZTABFB
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
ZVE
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
solidaritaetszuschlag
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
uebergangsbereich

Midijob: the pay lies in the Übergangsbereich; the contributions rest on the reduced beitragspflichtige Einnahmen (§ 20 Abs. 2a SGB IV). The Entgeltbescheinigung names it.

Any of:
object
einnahme_arbeitnehmeranteil
required

Beitragspflichtige Einnahme of the employee’s share (BE_AN).

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
einnahme_gesamtbeitrag
required

Beitragspflichtige Einnahme of the total contribution (BE).

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
umlagen
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
versorgungswerk

Firmenzahler: what the employer owes the berufsständische Versorgungseinrichtung (the whole contribution: the Zuschuss and the share withheld from the net pay).

Any of:
object
amount
required

The whole monthly contribution, owed to the Versorgungswerk.

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
name
required
string
zuschuss
required

The employer’s Zuschuss in it (§ 172a SGB VI).

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
beitragsnachweise
required

Beitragsnachweis per Einzugsstelle: field and amount in the order of the form.

object
key
additional properties
Array<array>
buchungen
required
Array<object>

One line of a Buchungssatz: Soll or Haben of one Funktion.

object
amount
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
funktion
required

The account of a Buchungssatz by its function; the Konto comes from the Kategorie of the Kontenrahmen.

string
Allowed values: gehaelter geschaeftsfuehrergehalt gesetzliche_soziale_aufwendungen verbindlichkeiten_lohnsteuer verbindlichkeiten_soziale_sicherheit verbindlichkeiten_lohn_gehalt loehne_geringfuegig pauschsteuer_geringfuegig soziale_abgaben_geringfuegig bank
nr
required
integer format: uint32
soll
required
boolean
text
required
string
lohnsteuer_anmeldung
required

Lohnsteuer-Anmeldung: Kennzahl and value.

Array<array>
open_parts
required

Parts a value not final yet would change, per person: not computed (0.00), and the month is neither posted nor announced while one is open; a Beitragsnachweis is stated only for an Einzugsstelle without one.

Array<object>

A part of a run that a value not final yet would change: not computed, with the refusal that names the value.

object
message
required
string
message_de
string | null
next_step
string | null
next_step_de
string | null
part
required

What is not computed (Lohnsteuer, Pflegeversicherung, …).

string
person

The Personalnummer, in a month run.

integer | null format: uint32
ueber_versicherungspflichtgrenze
required

Personalnummern whose regular yearly pay lies above the Versicherungspflichtgrenze while gesetzlich pflichtversichert (warning; the status is not changed).

Array<integer>

Example

{
"result": {
"abrechnungen": [
{
"beitraege": {
"rows": [
{
"zweig": "Krankenversicherung"
}
]
},
"konfession": "ev"
}
],
"buchungen": [
{
"funktion": "gehaelter"
}
]
}
}

Problem

Media typeapplication/problem+json
object
code
required
string
Allowed values: validation not_authenticated not_allowed needs_human second_factor_required unknown_command idempotency_conflict not_found conflict busy internal
detail

What is wrong.

string
next_command

The Command the next step names, whatever the language of next_step.

string | null
next_step

What to do next.

string
retry_payload

Fields that complete the refused call when the refusal carries a proposal: merged into its payload, the same call goes through.

object | null
status
required
integer
title
required
string
type
required
string

Example

{
"code": "validation"
}