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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
) -> kc_sdk::Result <Vec <InboxClient>> {
    client.inbox_clients().await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
) -> kc_sdk::Result <Vec <IntakeBox>> {
    client.intake_boxes().await
}

bureau_intake_boxes

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    bid: BureauId,
) -> kc_sdk::Result <Vec <IntakeBox>> {
    client.bureau_intake_boxes(bid).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
) -> kc_sdk::Result <Vec <IntakeItem>> {
    client.intake_items(id).await
}

intake_item

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
    doc: IntakeDocumentId,
) -> kc_sdk::Result <Option <IntakeItem>> {
    client.intake_item(id, doc).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
    name: &str,
    mime: &str,
    data: Vec <u8>,
    camera: bool,
) -> kc_sdk::Result <IntakeDocumentId> {
    client.intake_receive(id, name, mime, data, camera).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
    doc: IntakeDocumentId,
) -> kc_sdk::Result <Vec <u8>> {
    client.intake_original(id, doc).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
    doc: IntakeDocumentId,
    tenant: TenantId,
) -> kc_sdk::Result <()> {
    client.assign_intake(id, doc, tenant).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
    doc: IntakeDocumentId,
    credits: i32,
) -> kc_sdk::Result <()> {
    client.confirm_intake(id, doc, credits).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
    bureau: bool,
) -> kc_sdk::Result <()> {
    client.enable_intake(id, bureau).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
    gross: i64,
) -> kc_sdk::Result <i64> {
    client.intake_order(id, gross).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    id: IntakeBoxId,
    change: &IntakeWebhook,
) -> kc_sdk::Result <Option <String>> {
    client.intake_hook(id, change).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
) -> kc_sdk::Result <Vec <u8>> {
    client.full_export().await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    filename: &str,
    mime: &str,
    content: Vec <u8>,
) -> kc_sdk::Result <Draft> {
    client.ai_package_draft(tid, filename, mime, content).await
}

ai_package_draft_confirmed

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    filename: &str,
    mime: &str,
    content: Vec <u8>,
    confirmed_credits: Option <i32>,
) -> kc_sdk::Result <Draft> {
    client.ai_package_draft_confirmed(tid, filename, mime, content, confirmed_credits).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <i64> {
    client.order_ai_package(tid).await
}

order_ai_packages

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    packs: i32,
) -> kc_sdk::Result <i64> {
    client.order_ai_packages(tid, packs).await
}

order_ai_packages_at_price

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    packs: i32,
    expected_gross: i64,
) -> kc_sdk::Result <i64> {
    client.order_ai_packages_at_price(tid, packs, expected_gross).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <Vec <u8>> {
    client.archive(tid).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <Vec <AttachmentMeta>> {
    client.attachments(tid).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    filename: &str,
    content_type: &str,
    content: Vec <u8>,
) -> kc_sdk::Result <AttachmentMeta> {
    client.upload_attachment(tid, filename, content_type, content).await
}

upload_attachment_as_pdf

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    filename: &str,
    content_type: &str,
    content: Vec <u8>,
) -> kc_sdk::Result <AttachmentMeta> {
    client.upload_attachment_as_pdf(tid, filename, content_type, content).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: AttachmentId,
) -> kc_sdk::Result <Download> {
    client.download_attachment(tid, id).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    key: &str,
) -> kc_sdk::Result <Option <InboxDocument>> {
    client.inbox_document(tid, key).await
}

inbox_documents

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    done: bool,
) -> kc_sdk::Result <Vec <InboxDocument>> {
    client.inbox_documents(tid, done).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    filename: &str,
    content_type: &str,
    content: Vec <u8>,
) -> kc_sdk::Result <AttachmentMeta> {
    client.receive_document(tid, filename, content_type, content).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    key: &str,
    change: &InboxUpdate,
) -> kc_sdk::Result <i64> {
    client.update_inbox_document(tid, key, change).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <DocumentReadings> {
    client.document_readings(tid).await
}

document_reading_settings

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <DocumentReadings> {
    client.document_reading_settings(tid).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    filename: &str,
    content_type: &str,
    content: Vec <u8>,
) -> kc_sdk::Result <DocumentReading> {
    client.read_document(tid, filename, content_type, content).await
}

read_document_confirmed

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    filename: &str,
    content_type: &str,
    content: Vec <u8>,
    confirmed_credits: Option <i32>,
) -> kc_sdk::Result <DocumentReading> {
    client.read_document_confirmed(tid, filename, content_type, content, confirmed_credits).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    mime: &str,
    content: Vec <u8>,
) -> kc_sdk::Result <AiDocumentEstimate> {
    client.document_ai_estimate(tid, mime, content).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: i64,
) -> kc_sdk::Result <DocumentReading> {
    client.document_reading(tid, id).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: i64,
    e: &NewEntry,
) -> kc_sdk::Result <Draft> {
    client.document_reading_draft(tid, id, e).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: i64,
    b: &SaveInvoiceDraft,
) -> kc_sdk::Result <DocumentReading> {
    client.save_reading_invoice(tid, id, b).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: i64,
) -> kc_sdk::Result <EinvoiceDetail> {
    client.send_reading_invoice(tid, id).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <Vec <u8>> {
    client.tenant_logo_png(tid).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <TenantLogo> {
    client.remove_tenant_logo(tid).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    year: Option <i32>,
) -> kc_sdk::Result <Vec <RegistryEntry>> {
    client.registry(tid, year).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    e: &NewRegistryEntry,
) -> kc_sdk::Result <RegistryEntry> {
    client.register_document(tid, e).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: RegistryEntryId,
    c: &RegistryCorrection,
) -> kc_sdk::Result <RegistryEntry> {
    client.correct_registry_entry(tid, id, c).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: RegistryEntryId,
    c: &RegistryCancel,
) -> kc_sdk::Result <RegistryEntry> {
    client.cancel_registry_entry(tid, id, c).await
}

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

Rust SDK

use kc_sdk::{Client, Download, kc_types::*};
use chrono::NaiveDate;

async fn example(
    client: &Client,
    tid: TenantId,
    id: RegistryEntryId,
) -> kc_sdk::Result <Vec <RegistryVersion>> {
    client.registry_versions(tid, id).await
}

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