Zum Inhalt springen

Read the Mandant: master data, Personen and Betriebe.

POST
/v1/queries/mandant.get
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/v1/queries/mandant.get \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": {}, "rationale": "example" }'
Decuma-Mandant
string format: uuid

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

Media typeapplication/json
object
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
rationale

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

string

Example generated

{
"origin": {
"display_name": "example",
"id": "example",
"kind": "example"
},
"payload": {},
"rationale": "example"
}

Result

Media typeapplication/json
object
betriebe
required

The main Betrieb first (the one a call without betrieb_id acts on), then by creation.

Array<object>
object
buchfuehrungspflicht_mitteilung_am

The day the Finanzamt announced its notice of the duty to keep books (§ 141 Abs. 2 AO).

string | null format: date
has_bookings
required

The Betrieb keeps its books here (it has a Buchung): its profit comes from its Gewinnermittlung, never from a typed gewinn Angabe.

boolean
id
required
string format: uuid
name
required
string
person_id
string | null format: uuid
taetigkeit_beginn

Beginn der Tätigkeit; none: not stated (the Betrieb counts from the year of its first Buchung).

string | null format: date
taetigkeit_ende
string | null format: date
taetigkeitsart

Natürliche Person: Gewerbebetrieb or freiberuflich; none when not stated yet (asked for).

Any of:

Whether the Betrieb of a natürliche Person is a Gewerbebetrieb (§ 15 EStG) or a freiberufliche Tätigkeit (§ 18 EStG); the Einkunftsart of the Anlage EÜR.

string
Allowed values: gewerbebetrieb freiberuflich
tax_number

Steuernummer and Wirtschafts-Identifikationsnummer of the Betrieb (betrieb.set_tax_ids).

string | null
wirtschafts_idnr
string | null
betriebsnummer

Betriebsnummer of the Bundesagentur für Arbeit (§ 18i SGB IV).

string | null
bilanz
required

The Mandant keeps a balance sheet today: Bilanz and GuV exist.

boolean
bilanzbericht
required

The Bilanz report is offered for this Rechtsform (GmbH, UG; a natürliche Person that keeps one).

boolean
brands
required

The Mandant’s own brands (mandant.set_brands).

Array<string>
city
string | null
display_name
required
string
finanzamt
string | null
gemeldet
required

A Meldung was transmitted or recorded as filed: a change of the Rechtsform needs a Begründung.

boolean
haushalt

Natürliche Person: true for a household, false for a Selbstständige; null when not stated.

boolean | null
mandant_id
required
string format: uuid
mandantenart
required
string
Allowed values: juristische_person personengesellschaft natuerliche_person
persons
required
Array<object>
object
first_name
required
string
id
required
string format: uuid
idnr

The steuerliche Identifikationsnummer (§ 139b AO), person.set_idnr.

string | null
last_name
required
string
postal_code
string | null
rechtsform

None for a natürliche Person, or when not stated yet (asked for: legal_form.set).

Any of:

The Rechtsform of a Mandant that is not a natürliche Person, from one fixed list (domain model, Mandant). GmbH (§ 13 Abs. 1 GmbHG), UG (§ 5a GmbHG), AG (§ 1 Abs. 1 AktG), eG (§ 17 Abs. 1 GenG) and eingetragener Verein (§ 21 BGB) are juristische Personen; the others are Personengesellschaften (GmbH & Co. KG: a KG).

string
Allowed values: gmbh ug gbr partg partg_mbb ohg kg gmbh_co_kg ag eg ev
registergericht
string | null
registernummer
string | null
steuernummer
string | null
street
string | null
unternehmernummer

Unternehmernummer of the Unfallversicherung.

string | null
ust_idnr
string | null
wirtschafts_idnr

Wirtschafts-Identifikationsnummer (§ 139c AO), given by the Finanzverwaltung.

string | null
zugang
required

The day each number arrived, by field (steuernummer, ust_idnr, wirtschafts_idnr, unternehmernummer, betriebsnummer).

object
key
additional properties
string format: date

Example

{
"betriebe": [
{
"taetigkeitsart": "gewerbebetrieb"
}
],
"mandantenart": "juristische_person",
"rechtsform": "gmbh"
}

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