KontoCloud
Go 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

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{"from": {"2026-01-01"}, "to": {"2026-01-01"}},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_vat_book", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_vat_registrations", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

body := json.RawMessage("{\n  \"valid_from\": \"2026-01-01\",\n  \"status\": \"registered\"\n}")
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_vat_registrations", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_vat_returns", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

body := json.RawMessage("{\n  \"period_start\": \"2026-01-01\"\n}")
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_vat_returns", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_vat_returns_id", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
    Query: map[string][]string{},
}
result, err := client.Request(context.Background(), "get_t_tid_vat_returns_id_form", options)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

body := json.RawMessage("{\n  \"return_id\": 1,\n  \"choices\": []\n}")
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
    Query: map[string][]string{},
    Body: body,
}
result, err := client.Request(context.Background(), "post_t_tid_vat_returns_id_form", options)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_vat_returns_id_form_items", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{"from": {"2026-01-01"}, "to": {"2026-01-01"}},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_t_tid_vat_summary", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

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