Skip to content

The analysis of an Umstieg, without posting: files, period, Buchungen, Konten, mapping questions, lines to correct, the balance check against the old program's list, the Voranmeldungszeiträume before the cut and the checklist; analyse_hash for migration.apply.

POST
/v1/queries/migration.analysis
Code sample: Shell / cURL
curl --request POST \
--url https://example.com/v1/queries/migration.analysis \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "origin": { "display_name": "example", "id": "example", "kind": "example" }, "payload": { "umstieg_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }, "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
umstieg_id
required
string format: uuid
rationale

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

string

Example generated

{
"origin": {
"display_name": "example",
"id": "example",
"kind": "example"
},
"payload": {
"umstieg_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
},
"rationale": "example"
}

Result

Media typeapplication/json
object
analyse_hash
required

Over the state of the analysis; migration.apply carries it.

string
belege
required

The documents; belege_linked hang at an imported Buchung, belege_to_inbox go to the Eingang with a Rückfrage.

Array<object>

A document of the previous program added to an Umstieg.

object
belegfeld1
required
string
buchungen

Imported Buchungen it belongs to (filled by the analysis); none: the file goes to the Eingang with a Rückfrage when applying.

integer format: uint
0
delivery_id
required
string format: uuid
guid

A document of a Belegpaket: its GUID, matched with the Beleglink of the Buchungen.

string | null
hash
required
string
media_type
required
string
name
required
string
belege_linked
required
integer format: uint
belege_to_inbox
required
integer format: uint
buchungen
required
integer format: uint
checklist
required
Array<object>
object
link
required
string
punkt
required
string
state
required

Offen, erledigt or spaeter.

string
text
required
string
contacts
required

The contacts files; applying creates contacts_new partners.

Array<object>

A contacts file of an Umstieg: what business_partner.import reads, kept until applying.

object
assignment
object | null
bank_details

Bank accounts of the file per partner number: set by applying, through business_partner.set_bank_details as the person who applies, on new partners only. Part of the analysis and so of the hash the person applies.

Array<object>
default:
object
bic
required
string
iban
required
string
name

The partner’s name as in the file.

string
""
number
required
string
customer_kind
string | null
existing
required

Rows that match a partner (by USt-IdNr., number or name) already there or earlier in the file: the partner stays unchanged, nothing is merged.

integer format: uint
hash
required
string
name
required
string
new
required

Rows that become a new Geschäftspartner.

integer format: uint
numbers

Partner number to name: an imported Personenkonto of that number takes the name.

object
key
additional properties
string
questions

Questions of a DATEV-Format file (a payment term it does not settle): the partner is created without it.

Array<object>
default:

A question of the contacts import: rolle or zahlungsziel of one Konto.

object
de
required
string
en
required
string
konto
required
string
question
required
string
role
required
string
source_hash

SHA-256 of the file as added (a DATEV file: the original, not the CSV made from it).

string
""
uploaded_by

The Actor who added the file.

contacts_existing
required
integer format: uint
contacts_new
required
integer format: uint
eroeffnung

The opening entries of the files (against a Vortragskonto).

Any of:

The opening entries of a batch: the lines against a Vortragskonto, their balances (Soll minus Haben) and whether they cancel out.

object
buchungen
required
integer format: uint
complete
required
boolean
salden
required
object
key
additional properties
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
total
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
files
required
Array<object>
object
bis
required
string format: date
festschreibung_laut_datei
required
boolean
hash
required
string
kennzeichen
required
string
name
required
string
rows
required
integer format: uint
sachkontenrahmen
string | null
von
required
string format: date
kind
required
string
kontenrahmen
required
string
meldungen
required
Array<object>
object
answer

Extern_abgegeben, nicht_abgegeben, bereits_erfasst (recorded or transmitted before) or none (unanswered).

string | null
bis
required
string format: date
meldung
required
string
umsatzsteuer
required

Recomputed from the imported Buchungen.

string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
von
required
string format: date
vorsteuer
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
neue_konten
required

Own Konten created when applying.

Array<string>
offene_differenzen
required
integer format: uint
open_items
required

Invoices on Personenkonten not settled by an imported payment of the same Belegfeld 1: they become Offene Posten when applying.

integer format: uint
problems
required
Array<object>
object
file
required
string
next_step
required
string
text
required
string
zeile
integer | null format: uint
questions
required
Array<object>
object
file
string | null
kind
required

Bu (a BU-Schlüssel without own Steuerschlüssel), konto_steuer (an account with a tax meaning, used without a key: automatic function in the old program?), konto (an account the Kontenrahmen does not know), zeile (a line: net account or tax).

string
rows
required

Lines it concerns.

integer format: uint
schluessel
required
string
text
required
string
zeile
integer | null format: uint
ready
required

Nothing is open: the Umstieg can be applied.

boolean
salden
required
Array<object>
object
alt

The balance of the old program (Summen- und Saldenliste).

string | number | null
/^-?\d+(\.\d+)?([eE]\d+)?$/
difference
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
konto
required
string
name
string | null
neu
required

The balance after the import.

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

Gleich, akzeptiert or offen.

string
start
required
string format: date
state
required

Offen, angewendet or zurueckgenommen.

string
stichtag
required
string format: date
summe_haben
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
summe_soll
required
string | number
/^-?\d+(\.\d+)?([eE]\d+)?$/
umstieg_id
required
string format: uuid
zur_bestaetigung
required

Remembered answers that differ from the table of the year: they stay in force and are listed for confirmation.

Array<object>
object
gemerkt
required
string
schluessel
required

The BU-Schlüssel or the account.

string
table
required
string

Example

{
"belege": [
{
"buchungen": 0,
"guid": null
}
],
"contacts": [
{
"assignment": null,
"bank_details": [],
"customer_kind": null,
"numbers": {},
"questions": [],
"source_hash": "",
"uploaded_by": 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"
}