KontoCloud
Go SDK / Operation reference

Attachments and exports

36 operations

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

GET

/api/document-inbox

#

get_document_inbox

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.

Request body

No request body.

Successful response

200 · application/json

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_document_inbox", 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/inbox.rs · inbox::clients

GET

/api/intake

#

get_intake

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.

Query parameters

FieldTypeRequired
bureau
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Array<IntakeBox>

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_intake", 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/intake.rs · intake::boxes

GET

/api/intake/{box}/documents

#

get_intake_box_documents

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
boxstring · UUIDRequired

Query parameters

FieldTypeRequired
item
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Array<IntakeItem>

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{"box": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
}
var result json.RawMessage
err := client.JSON(context.Background(), "get_intake_box_documents", 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/intake.rs · intake::items

POST

/api/intake/{box}/documents

#

post_intake_box_documents

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
boxstring · UUIDRequired

Query parameters

FieldTypeRequired
camerabooleanServer default: falseOptional

Request body

Raw bytes; not JSON or multipart. Set Content-Type to match the file.

Successful response

200 · application/json

string · UUID

Call example

Go SDK

body, err := os.ReadFile("upload.bin")
if err != nil { panic(err) }
options := kc.Options{
    Params: map[string]string{"box": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    RawBody: body,
    Headers: map[string]string{"Content-Type": "application/pdf", "X-KC-Filename": "example.pdf"},
}
result, err := client.Request(context.Background(), "post_intake_box_documents", 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/intake.rs · intake::upload

GET

/api/intake/{box}/documents/{id}

#

get_intake_box_documents_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
boxstring · UUIDRequired
idstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/octet-stream

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{"box": "00000000-0000-4000-8000-000000000001", "id": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
}
result, err := client.Request(context.Background(), "get_intake_box_documents_id", 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/intake.rs · intake::original

POST

/api/intake/{box}/documents/{id}/assign

#

post_intake_box_documents_id_assign

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
boxstring · UUIDRequired
idstring · UUIDRequired

Request body

string · UUID
request.json
"00000000-0000-4000-8000-000000000001"

Successful response

200 · application/json

null

Call example

Go SDK

body := json.RawMessage("\"00000000-0000-4000-8000-000000000001\"")
options := kc.Options{
    Params: map[string]string{"box": "00000000-0000-4000-8000-000000000001", "id": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_intake_box_documents_id_assign", 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/intake.rs · intake::assign

POST

/api/intake/{box}/documents/{id}/confirm

#

post_intake_box_documents_id_confirm

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
boxstring · UUIDRequired
idstring · UUIDRequired

Request body

integer · i32
request.json
1

Successful response

200 · application/json

null

Call example

Go SDK

body := json.RawMessage("1")
options := kc.Options{
    Params: map[string]string{"box": "00000000-0000-4000-8000-000000000001", "id": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_intake_box_documents_id_confirm", 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/intake.rs · intake::confirm

POST

/api/intake/{box}/enable

#

post_intake_box_enable

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
boxstring · UUIDRequired

Request body

FieldTypeRequired
bureaubooleanRequired
request.json
{
  "bureau": true
}

Successful response

200 · application/json

null

Call example

Go SDK

body := json.RawMessage("{\n  \"bureau\": true\n}")
options := kc.Options{
    Params: map[string]string{"box": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_intake_box_enable", 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/intake.rs · intake::enable

POST

/api/intake/{box}/orders

#

post_intake_box_orders

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
boxstring · UUIDRequired

Request body

FieldTypeRequired
grossinteger · i64Required
request.json
{
  "gross": 1
}

Successful response

200 · application/json

integer · i64

Call example

Go SDK

body := json.RawMessage("{\n  \"gross\": 1\n}")
options := kc.Options{
    Params: map[string]string{"box": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_intake_box_orders", 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/intake.rs · intake::order

POST

/api/intake/{box}/webhook

#

post_intake_box_webhook

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
boxstring · UUIDRequired

Request body

FieldTypeRequired
urlstringRequired
enabledbooleanRequired
request.json
{
  "url": "example",
  "enabled": true
}

Successful response

200 · application/json

stringnull

Call example

Go SDK

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

Errors and constraints

forbiddenhook_urlrandomsecret_key

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/intake.rs · intake::hook

GET

/api/me/export

#

get_me_export

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.

Request body

No request body.

Successful response

200 · application/zip

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{},
    Query: map[string][]string{},
}
result, err := client.Request(context.Background(), "get_me_export", options)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

export_busyhash_mismatchmfa_required

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/full_export.rs · full_export::export

POST

/api/t/{tid}/ai-package/drafts

#

post_t_tid_ai_package_drafts

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
confirmed_credits
integer · i32null
Optional

Request body

Raw bytes; not JSON or multipart. Set Content-Type to match the file.

Successful response

200 · application/json

Draft

Call example

Go SDK

body, err := os.ReadFile("upload.bin")
if err != nil { panic(err) }
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    RawBody: body,
    Headers: map[string]string{"Content-Type": "application/pdf", "X-KC-Filename": "example.pdf"},
}
result, err := client.Request(context.Background(), "post_t_tid_ai_package_drafts", options)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

ai_not_configuredai_read_failedamountdateduplicate_invoiceexpense_accountincomplete_invoiceinvalid_invoicesuppliertoo_largeunsupported_document

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/addon.rs · addon::draft

POST

/api/t/{tid}/ai-package/orders

#

post_t_tid_ai_package_orders

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
packs
integer · i32null
Optional
expected_gross
integer · i64null
Optional

Request body

No request body.

Successful response

200 · application/json

integer · i64

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(), "post_t_tid_ai_package_orders", 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/addon.rs · addon::order

GET

/api/t/{tid}/archive

#

get_t_tid_archive

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/zip

Call example

Go SDK

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

Errors and constraints

archive_too_largehash_mismatchinternal

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/archive.rs · archive::archive

GET

/api/t/{tid}/attachments

#

get_t_tid_attachments

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_attachments", 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/lib.rs · list_attachments

POST

/api/t/{tid}/attachments

#

post_t_tid_attachments

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
convert
stringnull
Optional

Request body

Raw bytes; not JSON or multipart. Set Content-Type to match the file.

Successful response

200 / 201 · application/json

AttachmentMeta

Call example

Go SDK

body, err := os.ReadFile("upload.bin")
if err != nil { panic(err) }
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    RawBody: body,
    Headers: map[string]string{"Content-Type": "application/pdf", "X-KC-Filename": "example.pdf"},
}
result, err := client.Request(context.Background(), "post_t_tid_attachments", options)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

bad_requestconvert_failedconvert_unsupportedtoo_large

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/lib.rs · upload_attachment

GET

/api/t/{tid}/attachments/{aid}

#

get_t_tid_attachments_aid

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
aidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/octet-stream

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "aid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
}
result, err := client.Request(context.Background(), "get_t_tid_attachments_aid", 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/lib.rs · download_attachment

GET

/api/t/{tid}/document-inbox

#

get_t_tid_document_inbox

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
donebooleanServer default: falseOptional
key
stringnull
Optional

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_document_inbox", 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/inbox.rs · inbox::documents

POST

/api/t/{tid}/document-inbox

#

post_t_tid_document_inbox

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

Raw bytes; not JSON or multipart. Set Content-Type to match the file.

Successful response

200 / 201 · application/json

AttachmentMeta

Call example

Go SDK

body, err := os.ReadFile("upload.bin")
if err != nil { panic(err) }
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    RawBody: body,
    Headers: map[string]string{"Content-Type": "application/pdf", "X-KC-Filename": "example.pdf"},
}
result, err := client.Request(context.Background(), "post_t_tid_document_inbox", 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/inbox.rs · inbox::receive

POST

/api/t/{tid}/document-inbox/{key}

#

post_t_tid_document_inbox_key

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
keystringRequired

Request body

FieldTypeRequired
versioninteger · i64Required
statusInboxStatusRequired
notestringRequired
request.json
{
  "version": 1,
  "status": "pending",
  "note": "example"
}

Successful response

200 · application/json

integer · i64

Call example

Go SDK

body := json.RawMessage("{\n  \"version\": 1,\n  \"status\": \"pending\",\n  \"note\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "key": "theme"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_document_inbox_key", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

inbox_changedinbox_note

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/inbox.rs · inbox::update

GET

/api/t/{tid}/document-readings

#

get_t_tid_document_readings

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
summary_onlybooleanServer default: falseOptional

Request body

No request body.

Successful response

200 · application/json

DocumentReadings

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_document_readings", 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/readings.rs · readings::list

POST

/api/t/{tid}/document-readings

#

post_t_tid_document_readings

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
confirmed_credits
integer · i32null
Optional

Request body

Raw bytes; not JSON or multipart. Set Content-Type to match the file.

Successful response

201 · application/json

DocumentReading

Call example

Go SDK

body, err := os.ReadFile("upload.bin")
if err != nil { panic(err) }
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    RawBody: body,
    Headers: map[string]string{"Content-Type": "application/pdf", "X-KC-Filename": "example.pdf"},
}
result, err := client.Request(context.Background(), "post_t_tid_document_readings", options)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

ai_read_failedtoo_largeunsupported_document

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/readings.rs · readings::create

POST

/api/t/{tid}/document-readings/estimate

#

post_t_tid_document_readings_estimate

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

Raw bytes; not JSON or multipart. Set Content-Type to match the file.

Successful response

200 · application/json

AiDocumentEstimate

Call example

Go SDK

body, err := os.ReadFile("upload.bin")
if err != nil { panic(err) }
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
    RawBody: body,
    Headers: map[string]string{"Content-Type": "application/pdf", "X-KC-Filename": "example.pdf"},
}
result, err := client.Request(context.Background(), "post_t_tid_document_readings_estimate", options)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

unsupported_document

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/addon.rs · addon::estimate

GET

/api/t/{tid}/document-readings/{id}

#

get_t_tid_document_readings_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

Request body

No request body.

Successful response

200 · application/json

DocumentReading

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_document_readings_id", 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/readings.rs · readings::detail

POST

/api/t/{tid}/document-readings/{id}/draft

#

post_t_tid_document_readings_id_draft

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
posting_datestring · YYYY-MM-DDRequired
event_date
string · YYYY-MM-DDnull
Server default: null
Optional
documentDocumentRefRequired
descriptionstringRequired
lines
Array<NewLine>
Required
attachmentsServer default: []Optional
vatServer default: []Optional
request.json
{
  "posting_date": "2026-01-01",
  "document": {
    "number": "example",
    "date": "2026-01-01",
    "issuer": "example"
  },
  "description": "example",
  "lines": []
}

Successful response

201 · application/json

Draft

Call example

Go SDK

body := json.RawMessage("{\n  \"posting_date\": \"2026-01-01\",\n  \"document\": {\n    \"number\": \"example\",\n    \"date\": \"2026-01-01\",\n    \"issuer\": \"example\"\n  },\n  \"description\": \"example\",\n  \"lines\": []\n}")
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_document_readings_id_draft", 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/readings.rs · readings::draft

POST

/api/t/{tid}/document-readings/{id}/invoice

#

post_t_tid_document_readings_id_invoice

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
invoiceInvoiceDraftRequired
reasonstringRequired
request.json
{
  "invoice": {
    "seller_name": "example",
    "seller_edb": "example",
    "buyer_name": "example",
    "buyer_edb": "example",
    "doc_number": "example",
    "currency": "MKD"
  },
  "reason": "example"
}

Successful response

200 · application/json

DocumentReading

Call example

Go SDK

body := json.RawMessage("{\n  \"invoice\": {\n    \"seller_name\": \"example\",\n    \"seller_edb\": \"example\",\n    \"buyer_name\": \"example\",\n    \"buyer_edb\": \"example\",\n    \"doc_number\": \"example\",\n    \"currency\": \"MKD\"\n  },\n  \"reason\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_document_readings_id_invoice", 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/readings.rs · readings::save_invoice

POST

/api/t/{tid}/document-readings/{id}/send

#

post_t_tid_document_readings_id_send

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

201 · application/json

EinvoiceDetail

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(), "post_t_tid_document_readings_id_send", options, &result)
if err != nil { panic(err) }
fmt.Println(result)

Errors and constraints

document_reading_stateinvoice_incompleteinvoice_not_ours

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/readings.rs · readings::send

GET

/api/t/{tid}/logo.png

#

get_t_tid_logo_png

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 · image/png

Call example

Go SDK

options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001"},
    Query: map[string][]string{},
}
result, err := client.Request(context.Background(), "get_t_tid_logo_png", 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/logo.rs · logo::download

POST

/api/t/{tid}/logo/remove

#

post_t_tid_logo_remove

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

TenantLogo

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(), "post_t_tid_logo_remove", 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/logo.rs · logo::remove

GET

/api/t/{tid}/registry

#

get_t_tid_registry

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
year
integer · i32null
Optional

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_registry", 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/registry.rs · registry::list

POST

/api/t/{tid}/registry

#

post_t_tid_registry

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
reg_date
string · YYYY-MM-DDnull
Server default: null
Optional
parentServer default: nullOptional
directionRegistryDirectionRequired
correspondent
stringnull
Server default: null
Optional
subjectstringRequired
org_unit
stringnull
Server default: null
Optional
journal_entry
EntryIdnull
Server default: null
Optional
attachmentServer default: nullOptional
invoiceServer default: nullOptional
agreementServer default: nullOptional
request.json
{
  "direction": "in",
  "subject": "example"
}

Successful response

201 · application/json

RegistryEntry

Call example

Go SDK

body := json.RawMessage("{\n  \"direction\": \"in\",\n  \"subject\": \"example\"\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_registry", 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/registry.rs · registry::create

POST

/api/t/{tid}/registry/{id}

#

post_t_tid_registry_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

Request body

FieldTypeRequired
directionRegistryDirectionRequired
correspondent
stringnull
Server default: null
Optional
subjectstringRequired
org_unit
stringnull
Server default: null
Optional
journal_entry
EntryIdnull
Server default: null
Optional
attachmentServer default: nullOptional
invoiceServer default: nullOptional
agreementServer default: nullOptional
reasonstringRequired
request.json
{
  "direction": "in",
  "subject": "example",
  "reason": "example"
}

Successful response

201 · application/json

RegistryEntry

Call example

Go SDK

body := json.RawMessage("{\n  \"direction\": \"in\",\n  \"subject\": \"example\",\n  \"reason\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_registry_id", 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/registry.rs · registry::correct

POST

/api/t/{tid}/registry/{id}/cancel

#

post_t_tid_registry_id_cancel

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
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

201 · application/json

RegistryEntry

Call example

Go SDK

body := json.RawMessage("{\n  \"reason\": \"example\"\n}")
options := kc.Options{
    Params: map[string]string{"tid": "00000000-0000-4000-8000-000000000001", "id": "1"},
    Query: map[string][]string{},
    Body: body,
}
var result json.RawMessage
err := client.JSON(context.Background(), "post_t_tid_registry_id_cancel", 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/registry.rs · registry::cancel

GET

/api/t/{tid}/registry/{id}/versions

#

get_t_tid_registry_id_versions

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

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_registry_id_versions", 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/registry.rs · registry::versions

Complete JSON types

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

AiDocumentEstimate

FieldTypeRequired
pagesinteger · i32Required
creditsinteger · i32Required

AttachmentMeta

FieldTypeRequired
idAttachmentIdRequired
filenamestringRequired
content_typestringRequired
sizeinteger · i64Required
sha256stringRequired
created_atstring · ISO 8601Required
created_bystringRequired

DocumentReading

FieldTypeRequired
idinteger · i64Required
attachment_idAttachmentIdRequired
filenamestringRequired
created_atstring · ISO 8601Required
created_bystringRequired
status
stringnull
Optional
provider
stringnull
Server default: null
Optional
model
stringnull
Server default: null
Optional
error
stringnull
Server default: null
Optional
invoiceServer default: nullOptional
version
integer · i32null
Server default: null
Optional
direction
stringnull
Server default: null
Optional
missingServer default: []Optional
partner_idServer default: nullOptional
draft_id
integer · i64null
Server default: null
Optional
einvoice_id
integer · i64null
Server default: null
Optional

DocumentRef

FieldTypeRequired
numberstringRequired
datestring · YYYY-MM-DDRequired
issuerstringRequired

DraftCancellation

FieldTypeRequired
reasonstringRequired
created_atstring · ISO 8601Required
created_bystringRequired

DraftItem

FieldTypeRequired
descriptionstringRequired
unitstringServer default: ""Optional
quantitystringRequired
priceMoneyRequired
discountMoneyServer defaultOptional
rate
integer · i32null
Server default: null
Optional

DraftReview

FieldTypeRequired
idinteger · i64Required
versioninteger · i32Required
decisionReviewDecisionRequired
notestringRequired
created_atstring · ISO 8601Required
created_bystringRequired

DraftStatus

"draft""approved""rejected""posted""cancelled"

DraftSummary

FieldTypeRequired
idDraftIdRequired
versioninteger · i32Required
statusDraftStatusRequired
posting_datestring · YYYY-MM-DDRequired
doc_numberstringRequired
descriptionstringRequired
totalMoneyRequired
balancedbooleanRequired
entry_id
EntryIdnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired
updated_atstring · ISO 8601Required
updated_bystringRequired
offlineServer default: nullOptional
offline_note
stringnull
Server default: null
Optional

DraftVersion

FieldTypeRequired
versioninteger · i32Required
entryNewEntryRequired
totalMoneyRequired
balancedbooleanRequired
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

Einvoice

FieldTypeRequired
idEinvoiceIdRequired
directionEinvoiceDirectionRequired
kindEinvoiceKindRequired
ref_idOptional
environmentUjpEnvironmentRequired
doc_typestringRequired
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
seller_edbstringRequired
seller_namestringRequired
buyer_edbstringRequired
buyer_namestringRequired
currencystringRequired
netMoneyRequired
vatMoneyRequired
grossMoneyRequired
euid
stringnull
Optional
qr_link
stringnull
Optional
sent_at
string · ISO 8601null
Optional
send_state
stringnull
Optional
last_error
stringnull
Optional
status_code
stringnull
Optional
status_name
stringnull
Optional
decision
stringnull
Optional
storno_idOptional
created_atstring · ISO 8601Required
created_bystringRequired
retry_state
stringnull
Server default: null
Optional
retry_attempt
integer · i32null
Server default: null
Optional
retry_next_at
string · ISO 8601null
Server default: null
Optional
retry_note
stringnull
Server default: null
Optional
invoice_id
integer · i64null
Server default: null
Optional
vat_reportedbooleanServer default: falseOptional
doc_altbooleanServer default: falseOptional
offlinebooleanServer default: falseOptional
receipt_id
integer · i64null
Server default: null
Optional
receipt_number
stringnull
Server default: null
Optional

EinvoiceEvent

FieldTypeRequired
idinteger · i64Required
statusstringRequired
euid
stringnull
Optional
status_codestringRequired
status_namestringRequired
error_codestringRequired
messagestringRequired
created_atstring · ISO 8601Required
created_bystringRequired
automaticbooleanServer default: falseOptional
retryablebooleanServer default: falseOptional

Fx

FieldTypeRequired
currencystringRequired
amountMoneyRequired
rate_microinteger · i64Required

InboxClient

FieldTypeRequired
tenant_idTenantIdRequired
namestringRequired
edbstringRequired
can_workbooleanRequired
pendinginteger · i64Required
doneinteger · i64Required

InboxDocument

FieldTypeRequired
classification
stringnull
Optional
item_keystringRequired
reading_id
integer · i64null
Optional
draft_id
DraftIdnull
Optional
titlestringRequired
sourceInboxSourceRequired
attachment_idOptional
einvoice_idOptional
created_atstring · ISO 8601Required
finishedbooleanRequired
statusInboxStatusRequired
notestringRequired
assignee
stringnull
Optional
versioninteger · i64Required

IntakeBox

FieldTypeRequired
can_buybooleanServer default: falseOptional
idstring · UUIDRequired
namestringRequired
bureaubooleanRequired
managebooleanRequired
activebooleanRequired
address
stringnull
Optional
balanceinteger · i64Required
documentsinteger · i32Required
grossinteger · i64Required
pending
integer · i64null
Optional
invoice_readybooleanServer default: falseOptional
hook
stringnull
Optional

IntakeItem

FieldTypeRequired
buyer_edb
stringnull
Server default: null
Optional
assigned_tenantServer default: nullOptional
assigned_name
stringnull
Server default: null
Optional
pages
integer · i32null
Server default: null
Optional
credits
integer · i32null
Server default: null
Optional
confirmed_credits
integer · i32null
Server default: null
Optional
idstring · UUIDRequired
filenamestringRequired
originstringRequired
mimestringRequired
created_atstring · ISO 8601Required
kind
stringnull
Optional
summary
stringnull
Optional
attemptsinteger · i32Required

IntakeWebhook

FieldTypeRequired
urlstringRequired
enabledbooleanRequired

InvoiceDraft

FieldTypeRequired
seller_namestringRequired
seller_edbstringRequired
buyer_namestringRequired
buyer_edbstringRequired
doc_numberstringRequired
doc_date
string · YYYY-MM-DDnull
Server default: null
Optional
supply_date
string · YYYY-MM-DDnull
Server default: null
Optional
due_date
string · YYYY-MM-DDnull
Server default: null
Optional
currencystringRequired
payment_typestringServer default: ""Optional
notestringServer default: ""Optional
items
Array<DraftItem>
Server default: []
Optional
total
Moneynull
Server default: null
Optional

MissingField

FieldTypeRequired
codestringRequired
item
integer · u32null
Server default: null
Optional

NewEntry

FieldTypeRequired
posting_datestring · YYYY-MM-DDRequired
event_date
string · YYYY-MM-DDnull
Server default: null
Optional
documentDocumentRefRequired
descriptionstringRequired
lines
Array<NewLine>
Required
attachmentsServer default: []Optional
vatServer default: []Optional

NewLine

FieldTypeRequired
accountstringRequired
debitMoneyRequired
creditMoneyRequired
asset
AssetIdnull
Server default: null
Optional
partnerServer default: nullOptional
due_date
string · YYYY-MM-DDnull
Server default: null
Optional
fx
Fxnull
Server default: null
Optional
cost_centerServer default: nullOptional

NewRegistryEntry

FieldTypeRequired
reg_date
string · YYYY-MM-DDnull
Server default: null
Optional
parentServer default: nullOptional
directionRegistryDirectionRequired
correspondent
stringnull
Server default: null
Optional
subjectstringRequired
org_unit
stringnull
Server default: null
Optional
journal_entry
EntryIdnull
Server default: null
Optional
attachmentServer default: nullOptional
invoiceServer default: nullOptional
agreementServer default: nullOptional

NewVatRecord

FieldTypeRequired
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

QuotaItem

FieldTypeRequired
usedinteger · i64Required
limit
integer · i32null
Optional
per_user
integer · i32null
Optional
membersinteger · i32Required
custombooleanRequired

RegistryCorrection

FieldTypeRequired
directionRegistryDirectionRequired
correspondent
stringnull
Server default: null
Optional
subjectstringRequired
org_unit
stringnull
Server default: null
Optional
journal_entry
EntryIdnull
Server default: null
Optional
attachmentServer default: nullOptional
invoiceServer default: nullOptional
agreementServer default: nullOptional
reasonstringRequired

RegistryEntry

FieldTypeRequired
idRegistryEntryIdRequired
yearinteger · i32Required
numberinteger · i32Required
sub_numberinteger · i32Required
reg_datestring · YYYY-MM-DDRequired
parentServer default: nullOptional
versioninteger · i32Required
directionRegistryDirectionRequired
correspondent
stringnull
Server default: null
Optional
subjectstringRequired
org_unit
stringnull
Server default: null
Optional
journal_entry
EntryIdnull
Server default: null
Optional
attachmentServer default: nullOptional
invoiceServer default: nullOptional
agreementServer default: nullOptional
journal_label
stringnull
Server default: null
Optional
attachment_name
stringnull
Server default: null
Optional
invoice_label
stringnull
Server default: null
Optional
agreement_label
stringnull
Server default: null
Optional
cancel_reason
stringnull
Server default: null
Optional
cancelled_at
string · ISO 8601null
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired
changed_atstring · ISO 8601Required
changed_bystringRequired

RegistryVersion

FieldTypeRequired
versioninteger · i32Required
directionRegistryDirectionRequired
correspondent
stringnull
Server default: null
Optional
subjectstringRequired
org_unit
stringnull
Server default: null
Optional
journal_entry
EntryIdnull
Server default: null
Optional
attachmentServer default: nullOptional
invoiceServer default: nullOptional
agreementServer default: nullOptional
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

VatDocKind

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

VatTreatment

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

UploadQ

FieldTypeRequired
convert
stringnull
Optional

addon::OrderQuantity

FieldTypeRequired
packs
integer · i32null
Optional
expected_gross
integer · i64null
Optional

inbox::Filter

FieldTypeRequired
donebooleanServer default: falseOptional
key
stringnull
Optional

intake::Buy

FieldTypeRequired
grossinteger · i64Required

intake::Source

FieldTypeRequired
camerabooleanServer default: falseOptional