KontoCloud
TypeScript SDK / Operation reference

VAT

10 operations

Example values illustrate the structure. Replace them with your identifiers and data; business validation still applies to these examples.

GET

/api/t/{tid}/vat/book

#

get_t_tid_vat_book

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
fromstring · YYYY-MM-DDRequired
tostring · YYYY-MM-DDRequired
direction
stringnull
Optional

Request body

No request body.

Successful response

200 · application/json

Array<VatBookRow>

Call example

TypeScript SDK

const result = await client.json("get_t_tid_vat_book", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001"
},
query: {
  "from": "2026-01-01",
  "to": "2026-01-01"
}
});

Errors and constraints

bad_direction

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::book

GET

/api/t/{tid}/vat/registrations

#

get_t_tid_vat_registrations

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Call example

TypeScript SDK

const result = await client.json("get_t_tid_vat_registrations", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001"
}
});

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::registrations

POST

/api/t/{tid}/vat/registrations

#

post_t_tid_vat_registrations

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
valid_fromstring · YYYY-MM-DDRequired
statusVatStatusRequired
periodServer default: nullOptional
vat_number
stringnull
Server default: null
Optional
request.json
{
  "valid_from": "2026-01-01",
  "status": "registered"
}

Successful response

201 · application/json

Call example

TypeScript SDK

const result = await client.json("post_t_tid_vat_registrations", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001"
},
body: {
  "valid_from": "2026-01-01",
  "status": "registered"
}
});

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::register

GET

/api/t/{tid}/vat/returns

#

get_t_tid_vat_returns

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Array<VatReturn>

Call example

TypeScript SDK

const result = await client.json("get_t_tid_vat_returns", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001"
}
});

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::returns

POST

/api/t/{tid}/vat/returns

#

post_t_tid_vat_returns

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
period_startstring · YYYY-MM-DDRequired
reason
stringnull
Server default: null
Optional
request.json
{
  "period_start": "2026-01-01"
}

Successful response

201 · application/json

VatReturn

Call example

TypeScript SDK

const result = await client.json("post_t_tid_vat_returns", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001"
},
body: {
  "period_start": "2026-01-01"
}
});

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::file_return

GET

/api/t/{tid}/vat/returns/{id}

#

get_t_tid_vat_returns_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Query parameters

FieldTypeRequired
field
stringnull
Optional

Request body

No request body.

Successful response

200 · application/json

VatReturn

Call example

TypeScript SDK

const result = await client.json("get_t_tid_vat_returns_id", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001",
  "id": "1"
}
});

Errors and constraints

bad_vat_field

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::get_return

GET

/api/t/{tid}/vat/returns/{id}/form

#

get_t_tid_vat_returns_id_form

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Query parameters

FieldTypeRequired
nilbooleanServer default: falseOptional

Request body

No request body.

Successful response

200 · application/pdf

Call example

TypeScript SDK

const result = await client.request("get_t_tid_vat_returns_id_form", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001",
  "id": "1"
}
});

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::form

POST

/api/t/{tid}/vat/returns/{id}/form

#

post_t_tid_vat_returns_id_form

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
return_idinteger · i64Required
choicesRequired
settlementServer default: nullOptional
request.json
{
  "return_id": 1,
  "choices": []
}

Successful response

200 · application/pdf

Call example

TypeScript SDK

const result = await client.request("post_t_tid_vat_returns_id_form", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001",
  "id": "1"
},
body: {
  "return_id": 1,
  "choices": []
}
});

Errors and constraints

vat_classification

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::classified_form

GET

/api/t/{tid}/vat/returns/{id}/form/items

#

get_t_tid_vat_returns_id_form_items

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/json

Array<Ddv04Item>

Call example

TypeScript SDK

const result = await client.json("get_t_tid_vat_returns_id_form_items", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001",
  "id": "1"
}
});

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::form_items

GET

/api/t/{tid}/vat/summary

#

get_t_tid_vat_summary

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
fromstring · YYYY-MM-DDRequired
tostring · YYYY-MM-DDRequired
direction
stringnull
Optional

Request body

No request body.

Successful response

200 · application/json

VatSummary

Call example

TypeScript SDK

const result = await client.json("get_t_tid_vat_summary", {
params: {
  "tid": "00000000-0000-4000-8000-000000000001"
},
query: {
  "from": "2026-01-01",
  "to": "2026-01-01"
}
});

Errors and constraints

Listed codes are explicit handler checks. Validation, access, locked-period and external-service errors also apply. After a network failure, check the state before retrying a write.

Errors and constraints →

Contract source: crates/kc-api/src/vat.rs · vat::summary

Complete JSON types

The types below include every nested field for this area. Requiredness describes deserialization; business validation can require additional values.

Ddv04Basis

"foreign_customer""article32a""article32""outside_field10"

Ddv04Item

FieldTypeRequired
without_deductionbooleanServer default: falseOptional
sourceVatAmountSourceRequired
fieldstringRequired
rateinteger · i32Required
vatMoneyRequired

NewVatReturn

FieldTypeRequired
period_startstring · YYYY-MM-DDRequired
reason
stringnull
Server default: null
Optional

VatAmountSource

FieldTypeRequired
entry_idEntryIdRequired
line_nointeger · i32Required
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
counterpartystringRequired
amountMoneyRequired

VatBookRow

FieldTypeRequired
entry_idEntryIdRequired
entry_yearinteger · i32Required
entry_numberinteger · i32Required
posting_datestring · YYYY-MM-DDRequired
line_nointeger · i32Required
directionVatDirectionRequired
treatmentVatTreatmentRequired
advancebooleanServer default: falseOptional
doc_kindVatDocKindRequired
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
counterpartystringRequired
counterparty_vat
stringnull
Server default: null
Optional
baseMoneyRequired
rateinteger · i32Required
vatMoneyRequired
corrects_period
string · YYYY-MM-DDnull
Server default: null
Optional
period_startstring · YYYY-MM-DDRequired
period_endstring · YYYY-MM-DDRequired

VatDocKind

"invoice""calculation""customs""fiscal_receipt""other"

VatRegistration

FieldTypeRequired
idinteger · i64Required
valid_fromstring · YYYY-MM-DDRequired
statusVatStatusRequired
periodServer default: nullOptional
vat_number
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

VatReturn

FieldTypeRequired
idinteger · i64Required
period_startstring · YYYY-MM-DDRequired
period_endstring · YYYY-MM-DDRequired
versioninteger · i32Required
reason
stringnull
Optional
created_atstring · ISO 8601Required
created_bystringRequired
export_separatedbooleanServer default: falseOptional
empty_booksbooleanServer default: falseOptional
amountsVatAmountsRequired
sources
null
Server default: null
Optional

VatSummary

FieldTypeRequired
fromstring · YYYY-MM-DDRequired
tostring · YYYY-MM-DDRequired
export_separatedbooleanServer default: falseOptional
amountsVatAmountsRequired

VatTreatment

"taxable""exempt_deductible""exempt_nondeductible""not_taxable""reverse_charge""reverse_charge_nondeductible""deductible""nondeductible"

vat::RangeQ

FieldTypeRequired
fromstring · YYYY-MM-DDRequired
tostring · YYYY-MM-DDRequired
direction
stringnull
Optional