Zum Inhalt springen

Set master data of the Mandant: name, Anschrift, Steuernummer, USt-IdNr., Finanzamt, register data. Fields left out stay. After the first Meldung a change of name, Steuernummer or USt-IdNr. needs a Begründung.

POST
/v1/commands/master_data.set
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/v1/commands/master_data.set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dry_run": false, "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "betriebsnummer": null, "city": null, "display_name": null, "finanzamt": null, "postal_code": null, "registergericht": null, "registernummer": null, "sitzverlegung": null, "steuernummer": null, "street": null, "unternehmernummer": null, "ust_idnr": null, "wirtschafts_idnr": null, "zugegangen_am": null }, "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

Master data that are simply changed (the change is in the Command-Log). Steuernummer and USt- IdNr. are stored as entered; a Steuernummer of 13 digits (ELSTER format) must pass the formal checks. The Mandantenart is not among them; it is fixed at creation.

object
betriebsnummer

Betriebsnummer of the Bundesagentur für Arbeit.

string | null
city
string | null
display_name
string | null
finanzamt
string | null
postal_code
string | null
registergericht
string | null
registernummer
string | null
sitzverlegung

A move of seat or management (§ 137 AO): the day of each event raises its one-month Frist, and the Änderung der Adresse drafts the notice with the new Anschrift. Days left out keep those given before; the former Anschrift, seat, Finanzamt and Steuernummer are kept from the first call.

Any of:

The days of a move as given in master_data.set.

object
beschlossen_am

The day the Gesellschafter resolved to move the seat. It starts no Frist: the change of the Gesellschaftsvertrag takes effect only with its entry (§ 54 Abs. 3 GmbHG).

string | null format: date
geschaeftsleitung_verlegt_am

The day the management actually works at the new Anschrift (§ 10 AO).

string | null format: date
neuer_sitz

The new seat (town) as in the Gesellschaftsvertrag.

string | null
neues_finanzamt

The Finanzamt at the new place of management, when known.

string | null
sitz_eingetragen_am

The day the new seat was entered in the Handelsregister.

string | null format: date
steuernummer
string | null
street

The Anschrift of the Mandant (§ 14 Abs. 4 Satz 1 Nr. 1 UStG).

string | null
unternehmernummer

Unternehmernummer of the Unfallversicherung.

string | null
ust_idnr
string | null
wirtschafts_idnr

Wirtschafts-Identifikationsnummer; it begins with “DE” (§ 139c Abs. 1 AO).

string | null
zugegangen_am

The day the numbers given in this call arrived (the letter of the Finanzamt, the BZSt, the Berufsgenossenschaft or the Bundesagentur); kept per number.

string | null format: date
rationale

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

string

Result

Media typeapplication/json

Master data that are simply changed (the change is in the Command-Log). Steuernummer and USt- IdNr. are stored as entered; a Steuernummer of 13 digits (ELSTER format) must pass the formal checks. The Mandantenart is not among them; it is fixed at creation.

object
betriebsnummer

Betriebsnummer of the Bundesagentur für Arbeit.

string | null
city
string | null
display_name
string | null
finanzamt
string | null
postal_code
string | null
registergericht
string | null
registernummer
string | null
sitzverlegung

A move of seat or management (§ 137 AO): the day of each event raises its one-month Frist, and the Änderung der Adresse drafts the notice with the new Anschrift. Days left out keep those given before; the former Anschrift, seat, Finanzamt and Steuernummer are kept from the first call.

Any of:

The days of a move as given in master_data.set.

object
beschlossen_am

The day the Gesellschafter resolved to move the seat. It starts no Frist: the change of the Gesellschaftsvertrag takes effect only with its entry (§ 54 Abs. 3 GmbHG).

string | null format: date
geschaeftsleitung_verlegt_am

The day the management actually works at the new Anschrift (§ 10 AO).

string | null format: date
neuer_sitz

The new seat (town) as in the Gesellschaftsvertrag.

string | null
neues_finanzamt

The Finanzamt at the new place of management, when known.

string | null
sitz_eingetragen_am

The day the new seat was entered in the Handelsregister.

string | null format: date
steuernummer
string | null
street

The Anschrift of the Mandant (§ 14 Abs. 4 Satz 1 Nr. 1 UStG).

string | null
unternehmernummer

Unternehmernummer of the Unfallversicherung.

string | null
ust_idnr
string | null
vorher
required

The identity of the Mandant before a change: name, Steuernummer, USt-IdNr. (I-26). The Command-Log keeps it with the new values.

object
display_name
required
string
steuernummer
string | null
ust_idnr
string | null
wirtschafts_idnr

Wirtschafts-Identifikationsnummer; it begins with “DE” (§ 139c Abs. 1 AO).

string | null
wirtschafts_idnr_proposal

A USt-IdNr. received by 30.11.2024 is also the Wirtschafts-Identifikationsnummer with -00001 (§ 1 Abs. 2 WIdV): proposed while none is recorded; confirm it with wirtschafts_idnr.

string | null
zugegangen_am

The day the numbers given in this call arrived (the letter of the Finanzamt, the BZSt, the Berufsgenossenschaft or the Bundesagentur); kept per number.

string | null format: date

Example

{
"betriebsnummer": null,
"city": null,
"display_name": null,
"finanzamt": null,
"postal_code": null,
"registergericht": null,
"registernummer": null,
"sitzverlegung": null,
"steuernummer": null,
"street": null,
"unternehmernummer": null,
"ust_idnr": null,
"wirtschafts_idnr": null,
"zugegangen_am": null
}

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"
}