KontoCloud
Rust SDK / Operation reference

Personal account

41 operations

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

GET

/api/account/ai-package

#

get_account_ai_package

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
tenant
string · UUIDnull
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,
) -> kc_sdk::Result <Vec <AiPackageOrder>> {
    client.ai_package_orders().await
}

organization_ai_orders

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

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <Vec <AiPackageOrder>> {
    client.organization_ai_orders(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/addon.rs · addon::mine

GET

/api/account/ai-package/allowance

#

get_account_ai_package_allowance

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
tenant
string · UUIDnull
Optional

Request body

No request body.

Successful response

200 · application/json

AiDocumentAllowance

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <AiDocumentAllowance> {
    client.ai_document_allowance().await
}

organization_ai_allowance

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

async fn example(
    client: &Client,
    tid: TenantId,
) -> kc_sdk::Result <AiDocumentAllowance> {
    client.organization_ai_allowance(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/addon.rs · addon::allowance

GET

/api/account/ai-package/{id}/invoice

#

get_account_ai_package_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
idinteger · i64Required

Request body

No request body.

Successful response

200 · application/pdf

Call example

Rust SDK

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

async fn example(
    client: &Client,
    id: i64,
) -> kc_sdk::Result <Vec <u8>> {
    client.ai_package_invoice(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/addon.rs · addon::download

GET

/api/me

#

get_me

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

Me

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <Me> {
    client.me().await
}

activity_anchor

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

async fn example(
    client: &Client,
    tenant: Option <TenantId>,
) -> kc_sdk::Result <i64> {
    client.activity_anchor(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/lib.rs · me

GET

/api/me/activity

#

get_me_activity

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
before
integer · i64null
Optional
limit
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,
    before: Option <i64>,
) -> kc_sdk::Result <Vec <ActivityEntry>> {
    client.my_activity(before).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/security.rs · security::my_activity

GET

/api/me/api-keys

#

get_me_api_keys

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 <IntegrationKey>> {
    client.api_keys().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/api_keys.rs · api_keys::list

POST

/api/me/api-keys

#

post_me_api_keys

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

FieldTypeRequired
namestringRequired
request.json
{
  "name": "example"
}

Successful response

201 · application/json

IssuedIntegrationKey

Call example

Rust SDK

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

async fn example(
    client: &Client,
    name: String,
) -> kc_sdk::Result <IssuedIntegrationKey> {
    client.issue_api_key(name).await
}

Errors and constraints

invalid_key_name

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

POST

/api/me/api-keys/{id}/revoke

#

post_me_api_keys_id_revoke

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

Request body

No request body.

Successful response

200 · application/json

boolean

Call example

Rust SDK

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

async fn example(
    client: &Client,
    id: IntegrationKeyId,
) -> kc_sdk::Result <bool> {
    client.revoke_api_key(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/api_keys.rs · api_keys::revoke

GET

/api/me/avatar

#

get_me_avatar

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

Call example

Rust SDK

let url = format!("{}/api/desktop/get/{}", client.base_url(), target);

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

POST

/api/me/avatar

#

post_me_avatar

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

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

Successful response

200 · application/json

Me

Call example

Rust SDK

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

async fn example(
    client: &Client,
    content_type: &str,
    content: Vec <u8>,
) -> kc_sdk::Result <Me> {
    client.set_avatar(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/security.rs · security::set_avatar

POST

/api/me/avatar/delete

#

post_me_avatar_delete

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

Me

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <Me> {
    client.clear_avatar().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/security.rs · security::clear_avatar

GET

/api/me/browser-logins

#

get_me_browser_logins

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

BrowserLoginSummary

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <BrowserLoginSummary> {
    client.browser_logins().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/security.rs · security::browser_logins

POST

/api/me/browser-logins

#

post_me_browser_logins

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

FieldTypeRequired
fingerprintstringRequired
request.json
{
  "fingerprint": "example"
}

Successful response

204

The response has no body.

Call example

Rust SDK

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

async fn example(
    client: &Client,
    fingerprint: &str,
) -> kc_sdk::Result <()> {
    client.record_browser_login(fingerprint).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/security.rs · security::record_browser_login

GET

/api/me/configuration

#

get_me_configuration

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

ConfigSnapshot

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <ConfigSnapshot> {
    client.shared_configuration().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/configuration.rs · configuration::get

POST

/api/me/configuration

#

post_me_configuration

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

FieldTypeRequired
configAccountConfigRequired
reasonstringRequired
preview_id
stringnull
Optional
request.json
{
  "config": {
    "schema_version": 1
  },
  "reason": "example"
}

Successful response

200 · application/json

ConfigPreview

Call example

Rust SDK

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

async fn example(
    client: &Client,
    request: &ConfigImport,
) -> kc_sdk::Result <ConfigPreview> {
    client.apply_configuration(request).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/configuration.rs · configuration::apply

POST

/api/me/configuration/preview

#

post_me_configuration_preview

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

FieldTypeRequired
configAccountConfigRequired
reasonstringRequired
preview_id
stringnull
Optional
request.json
{
  "config": {
    "schema_version": 1
  },
  "reason": "example"
}

Successful response

200 · application/json

ConfigPreview

Call example

Rust SDK

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

async fn example(
    client: &Client,
    request: &ConfigImport,
) -> kc_sdk::Result <ConfigPreview> {
    client.preview_configuration(request).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/configuration.rs · configuration::preview

GET

/api/me/device-login/{code}

#

get_me_device_login_code

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
codestringRequired

Request body

No request body.

Successful response

200 · application/json

DeviceLoginInfo

Call example

Rust SDK

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

async fn example(
    client: &Client,
    user_code: &str,
) -> kc_sdk::Result <DeviceLoginInfo> {
    client.device_login_info(user_code).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/security.rs · security::device_info

POST

/api/me/device-login/{code}/decide

#

post_me_device_login_code_decide

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
codestringRequired

Request body

FieldTypeRequired
approvebooleanRequired
request.json
{
  "approve": true
}

Successful response

204

The response has no body.

Call example

Rust SDK

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

async fn example(
    client: &Client,
    user_code: &str,
    approve: bool,
) -> kc_sdk::Result <()> {
    client.device_login_decide(user_code, approve).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/security.rs · security::device_decide

GET

/api/me/devices

#

get_me_devices

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 <RegisteredDevice>> {
    client.devices().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/security.rs · security::devices

POST

/api/me/devices/{id}/revoke

#

post_me_devices_id_revoke

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

Request body

FieldTypeRequired
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

204

The response has no body.

Call example

Rust SDK

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

async fn example(
    client: &Client,
    id: TenantId,
    password: &str,
) -> kc_sdk::Result <()> {
    client.revoke_device(id, password).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/security.rs · security::revoke_device

POST

/api/me/efaktura/certificate

#

post_me_efaktura_certificate

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

FieldTypeRequired
p12_base64stringRequired
passwordstringRequired
request.json
{
  "p12_base64": "example",
  "password": "example"
}

Successful response

200 · application/json

EinvoiceSetup

Call example

Rust SDK

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

async fn example(
    client: &Client,
    p12: &[u8],
    password: &str,
) -> kc_sdk::Result <EinvoiceSetup> {
    client.upload_account_einvoice_cert(p12, password).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/efaktura.rs · efaktura::account_upload_cert

POST

/api/me/efaktura/certificate/local

#

post_me_efaktura_certificate_local

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

FieldTypeRequired
cert_base64stringRequired
request.json
{
  "cert_base64": "example"
}

Successful response

200 · application/json

EinvoiceSetup

Call example

Rust SDK

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

async fn example(
    client: &Client,
    cert: &[u8],
) -> kc_sdk::Result <EinvoiceSetup> {
    client.register_account_local_einvoice_cert(cert).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/efaktura.rs · efaktura::account_upload_local_cert

POST

/api/me/efaktura/certificate/lock

#

post_me_efaktura_certificate_lock

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

EinvoiceSetup

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <EinvoiceSetup> {
    client.lock_account_einvoice_cert().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/efaktura.rs · efaktura::account_lock_cert

POST

/api/me/efaktura/certificate/remove

#

post_me_efaktura_certificate_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.

Request body

No request body.

Successful response

200 · application/json

EinvoiceSetup

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <EinvoiceSetup> {
    client.remove_account_einvoice_cert().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/efaktura.rs · efaktura::account_remove_cert

POST

/api/me/efaktura/certificate/unlock

#

post_me_efaktura_certificate_unlock

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

FieldTypeRequired
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

200 · application/json

EinvoiceSetup

Call example

Rust SDK

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

async fn example(
    client: &Client,
    password: &str,
) -> kc_sdk::Result <EinvoiceSetup> {
    client.unlock_account_einvoice_cert(password).await
}

Errors and constraints

certificate_lockedcertificate_missing

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

GET

/api/me/efaktura/companies

#

get_me_efaktura_companies

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 <UjpCompanySettings>> {
    client.einvoice_settings_overview().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/efaktura.rs · efaktura::settings_overview

GET

/api/me/efaktura/settings

#

get_me_efaktura_settings

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

EinvoiceSetup

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <EinvoiceSetup> {
    client.account_einvoice_setup().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/efaktura.rs · efaktura::account_setup

POST

/api/me/efaktura/settings

#

post_me_efaktura_settings

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

FieldTypeRequired
environmentServer default: nullOptional
eujp_id
stringnull
Server default: null
Optional
request.json
{}

Successful response

200 · application/json

EinvoiceSetup

Call example

Rust SDK

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

async fn example(
    client: &Client,
    n: &SetEinvoiceSettings,
) -> kc_sdk::Result <EinvoiceSetup> {
    client.set_account_einvoice_settings(n).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/efaktura.rs · efaktura::account_set_settings

POST

/api/me/grids/{register}

#

post_me_grids_register

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
registerstringRequired

Request body

FieldTypeRequired
offsetinteger · usizeRequired
limitinteger · usizeRequired
searchstringRequired
lookupstringRequired
sort
Array<string, boolean>
null
Optional
filters
Map<string, GridFilter>
Required
include_inactivebooleanRequired
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional
account
stringnull
Optional
partnerOptional
record
integer · i64null
Optional
warehouseOptional
subject
string · UUIDnull
Optional
labels
Map<string, string>
Required
request.json
{
  "offset": 1,
  "limit": 1,
  "search": "example",
  "lookup": "example",
  "filters": {},
  "include_inactive": true,
  "labels": {}
}

Successful response

200 · application/json

GridPage

Call example

Rust SDK

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

async fn example(
    client: &Client,
    register: &str,
    query: &grid_page:: GridQuery,
) -> kc_sdk::Result <grid_page:: GridPage> {
    client.personal_grid(register, query).await
}

Errors and constraints

unknown_grid

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

POST

/api/me/name

#

post_me_name

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

FieldTypeRequired
namestringRequired
request.json
{
  "name": "example"
}

Successful response

200 · application/json

Me

Call example

Rust SDK

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

async fn example(
    client: &Client,
    name: &str,
) -> kc_sdk::Result <Me> {
    client.set_profile_name(name).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/security.rs · security::set_name

GET

/api/me/offline-permit

#

get_me_offline_permit

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

OfflinePermit

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <OfflinePermit> {
    client.offline_permit().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/security.rs · security::offline_permit

POST

/api/me/passkeys

#

post_me_passkeys

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

FieldTypeRequired
namestringRequired
client_data_jsonstringRequired
attestation_objectstringRequired
request.json
{
  "name": "example",
  "client_data_json": "example",
  "attestation_object": "example"
}

Successful response

200 · application/json

RecoveryCodes

Call example

Rust SDK

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

async fn example(
    client: &Client,
    r: &PasskeyRegistration,
) -> kc_sdk::Result <RecoveryCodes> {
    client.add_passkey(r).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/security.rs · security::passkey_add

POST

/api/me/passkeys/options

#

post_me_passkeys_options

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

PasskeyCreationOptions

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <PasskeyCreationOptions> {
    client.passkey_options().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/security.rs · security::passkey_options

POST

/api/me/passkeys/{id}/delete

#

post_me_passkeys_id_delete

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
idinteger · i64Required

Request body

FieldTypeRequired
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

204

The response has no body.

Call example

Rust SDK

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

async fn example(
    client: &Client,
    id: i64,
    password: &str,
) -> kc_sdk::Result <()> {
    client.remove_passkey(id, password).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/security.rs · security::passkey_remove

GET

/api/me/preferences

#

get_me_preferences

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

Map<string, string>

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <std:: collections:: BTreeMap <String, String>> {
    client.preferences().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 · preferences

POST

/api/me/preferences

#

post_me_preferences

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

FieldTypeRequired
keystringRequired
valuestringRequired
request.json
{
  "key": "theme",
  "value": "dark"
}

Successful response

204

The response has no body.

Call example

Rust SDK

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

async fn example(
    client: &Client,
    key: &str,
    value: &str,
) -> kc_sdk::Result <()> {
    client.set_preference(key, value).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 · set_preference

POST

/api/me/recovery-codes

#

post_me_recovery_codes

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

FieldTypeRequired
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

200 · application/json

RecoveryCodes

Call example

Rust SDK

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

async fn example(
    client: &Client,
    password: &str,
) -> kc_sdk::Result <RecoveryCodes> {
    client.regenerate_recovery_codes(password).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/security.rs · security::recovery_codes

GET

/api/me/security

#

get_me_security

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

Request body

No request body.

Successful response

200 · application/json

AccountSecurityInfo

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <AccountSecurityInfo> {
    client.account_security().await
}

security_summary

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <AccountSecurityInfo> {
    client.security_summary().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/security.rs · security::security_info

POST

/api/me/totp/begin

#

post_me_totp_begin

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

TotpSetup

Call example

Rust SDK

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

async fn example(
    client: &Client,
) -> kc_sdk::Result <TotpSetup> {
    client.totp_begin().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/security.rs · security::totp_begin

POST

/api/me/totp/disable

#

post_me_totp_disable

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

FieldTypeRequired
passwordstringRequired
request.json
{
  "password": "example"
}

Successful response

204

The response has no body.

Call example

Rust SDK

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

async fn example(
    client: &Client,
    password: &str,
) -> kc_sdk::Result <()> {
    client.totp_disable(password).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/security.rs · security::totp_disable

POST

/api/me/totp/enable

#

post_me_totp_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.

Request body

FieldTypeRequired
codestringRequired
request.json
{
  "code": "example"
}

Successful response

200 · application/json

RecoveryCodes

Call example

Rust SDK

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

async fn example(
    client: &Client,
    code: &str,
) -> kc_sdk::Result <RecoveryCodes> {
    client.totp_enable(code).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/security.rs · security::totp_enable

Complete JSON types

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

ActivityEntry

FieldTypeRequired
idinteger · i64Required
atstring · ISO 8601Required
email
stringnull
Optional
tenant_id
string · UUIDnull
Optional
methodstringRequired
routestringRequired
statusinteger · i16Required
ip
stringnull
Optional
user_agent
stringnull
Optional
duration_msinteger · i32Required

AiDocumentAllowance

FieldTypeRequired
can_buybooleanServer default: falseOptional
monthlyinteger · i32Required
remaininginteger · i32Required
max_pagesinteger · i32Required
renews_onstring · YYYY-MM-DDRequired
offerAiPackageOfferRequired

AiPackageOffer

FieldTypeRequired
grossMoneyRequired
documentsinteger · i32Required
promo_gross
Moneynull
Optional
promo_until
string · YYYY-MM-DDnull
Optional
promo_remaininginteger · i32Required

AiPackageOrder

FieldTypeRequired
idinteger · i64Required
payer_namestringRequired
payer_edbstringRequired
grossMoneyRequired
documentsinteger · i32Required
usedinteger · i64Required
invoice_number
stringnull
Optional
valid_from
string · YYYY-MM-DDnull
Optional
valid_until
string · YYYY-MM-DDnull
Optional

BoardCell

FieldTypeRequired
taskCloseTaskRequired
statusCloseStatusRequired
open_countinteger · i64Required
due_date
string · YYYY-MM-DDnull
Server default: null
Optional

BrowserLoginSummary

FieldTypeRequired
measuredinteger · i64Required
distinct_browsersinteger · i64Required

CloseStatus

"not_started""in_progress""done""overdue""not_applicable"

CloseTask

"bank""open_items""drafts""fx""payroll""vat""lock"

CompanyConfig

FieldTypeRequired
edbstringRequired
numbering
Map<string, PolicyInput>
Server default: {}
Optional
eujp_id
stringnull
Optional
inherit_certificate
booleannull
Optional

ConfigDefaults

FieldTypeRequired
numbering
Map<string, PolicyInput>
Server default: {}
Optional
eujp_id
stringnull
Optional
certificate_id
integer · i64null
Optional

ConfigPreferences

FieldTypeRequired
language
stringnull
Optional
theme
stringnull
Optional

Deadline

FieldTypeRequired
idDeadlineIdRequired
rule_codestringRequired
namestringRequired
sourcestringRequired
verifiedbooleanRequired
period_startstring · YYYY-MM-DDRequired
period_endstring · YYYY-MM-DDRequired
due_datestring · YYYY-MM-DDRequired
statusDeadlineStatusRequired
note
stringnull
Server default: null
Optional
marked_at
string · ISO 8601null
Server default: null
Optional
marked_by
stringnull
Server default: null
Optional
due_non_workingbooleanServer default: falseOptional

DeviceLoginInfo

FieldTypeRequired
user_codestringRequired
clientstringRequired
ip
stringnull
Optional
created_atstring · ISO 8601Required
expires_atstring · ISO 8601Required

DeviceSessionDetails

FieldTypeRequired
ip
stringnull
Optional
country
stringnull
Optional
user_agent
stringnull
Optional

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

EffectiveConfigRow

FieldTypeRequired
edbstringRequired
namestringRequired
doc_typeSeriesDocTypeRequired
warehouse
stringnull
Optional
templatestringRequired
sourcestringRequired
next
stringnull
Optional
eujp_id
stringnull
Optional
eujp_inheritedbooleanRequired
certificate
stringnull
Optional
certificate_inheritedbooleanRequired

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

EinvoiceCert

FieldTypeRequired
idinteger · i64Required
subjectstringRequired
serial_hexstringRequired
not_after
string · ISO 8601null
Optional
edb_hint
stringnull
Optional
sha256stringRequired
created_atstring · ISO 8601Required
created_bystringRequired
storageCertStorageServer defaultOptional

EinvoiceSettings

FieldTypeRequired
versioninteger · i32Required
environmentUjpEnvironmentRequired
eujp_id
stringnull
Optional
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

Fx

FieldTypeRequired
currencystringRequired
amountMoneyRequired
rate_microinteger · i64Required

GridFilter

FieldTypeRequired
textstringRequired
minstringRequired
maxstringRequired
set
Array<string>
null
Optional

GridPage

FieldTypeRequired
totalinteger · usizeRequired
matchedinteger · usizeRequired
rows
Array<GridRecord>
Required
sums
Map<string, integer · i128>
Required
facets
Map<string,
Map<string, integer · usize>
>
Required

GridQuery

FieldTypeRequired
offsetinteger · usizeRequired
limitinteger · usizeRequired
searchstringRequired
lookupstringRequired
sort
Array<string, boolean>
null
Optional
filters
Map<string, GridFilter>
Required
include_inactivebooleanRequired
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional
account
stringnull
Optional
partnerOptional
record
integer · i64null
Optional
warehouseOptional
subject
string · UUIDnull
Optional
labels
Map<string, string>
Required

GridRecord

FieldTypeRequired
steps
Array<BoardCell>
Server default: []
Optional
fx
Fxnull
Server default: null
Optional
period_end
string · YYYY-MM-DDnull
Server default: null
Optional
draftServer default: nullOptional
deadlineServer default: nullOptional
payment_batchServer default: nullOptional
payment_planServer default: nullOptional
bank_accountServer default: nullOptional
electronicServer default: nullOptional
bookedServer default: nullOptional
keystringRequired
cells
Array<string>
Required
stylestringRequired
company
Tenantnull
Server default: null
Optional
can_deletebooleanServer default: falseOptional
hintstringServer default: ""Optional

IntegrationKey

FieldTypeRequired
idIntegrationKeyIdRequired
namestringRequired
created_atstring · ISO 8601Required
revoked_at
string · ISO 8601null
Optional

LocalCert

FieldTypeRequired
cert_base64stringRequired

Me

FieldTypeRequired
idstring · UUIDRequired
emailstringRequired
namestringRequired
preferences
Map<string, string>
Server default
Optional
platform_adminbooleanServer default: falseOptional
email_verifiedbooleanServer default: falseOptional
has_avatarbooleanServer default: falseOptional
mfa_required_by
Array<string>
Server default: []
Optional

OfflinePermit

FieldTypeRequired
tenants
Array<string · UUID>
Server default: []
Optional
tenant_deadlines
Map<string, string · ISO 8601>
Server default: {}
Optional
user_idstring · UUIDRequired
device_idstring · UUIDRequired
issued_atstring · ISO 8601Required
expires_atstring · ISO 8601Required

PasskeyCreationOptions

FieldTypeRequired
challengestringRequired
rp_idstringRequired
rp_namestringRequired
user_idstringRequired
user_namestringRequired
user_display_namestringRequired
exclude_credentials
Array<string>
Required

PasskeyInfo

FieldTypeRequired
idinteger · i64Required
namestringRequired
created_atstring · ISO 8601Required
last_used_at
string · ISO 8601null
Optional

PasskeyRegistration

FieldTypeRequired
namestringRequired
client_data_jsonstringRequired
attestation_objectstringRequired

PaymentBatch

FieldTypeRequired
idPaymentBatchIdRequired
bank_account_idBankAccountIdRequired
payer_accountstringRequired
formatstringRequired
attachment_idAttachmentIdRequired
filenamestringRequired
sha256stringRequired
order_countinteger · i32Required
totalMoneyRequired
created_atstring · ISO 8601Required
created_bystringRequired

PaymentPlanRow

FieldTypeRequired
entry_idEntryIdRequired
line_nointeger · i32Required
partner_idPartnerIdRequired
partner_namestringRequired
account_codestringRequired
doc_numberstringRequired
due_datestring · YYYY-MM-DDRequired
openMoneyRequired
orderedMoneyRequired
remainingMoneyRequired
payee_account
stringnull
Optional

PolicyInput

FieldTypeRequired
mode
stringnull
Optional
template
stringnull
Optional
resetOptional
start_number
integer · i32null
Optional

RegisteredDevice

FieldTypeRequired
idstring · UUIDRequired
namestringRequired
approved_atstring · ISO 8601Required
last_used_atstring · ISO 8601Required
activebooleanRequired
currentbooleanRequired
sessionServer default: nullOptional

Role

"super_admin""admin""accountant""sales""operator""reviewer""viewer"

SecurityEvent

FieldTypeRequired
idinteger · i64Required
atstring · ISO 8601Required
eventstringRequired
ip
stringnull
Optional
detail
stringnull
Optional

SeriesDocType

"invoice""advance""credit_note""stock_receipt""stock_issue""stock_transfer""stock_return_supplier""stock_return_customer""stock_stocktake""stock_storno""stock_cost""stock_price_leveling""sales_quote""sales_order""sales_proforma"

SetPreference

FieldTypeRequired
keystringRequired
valuestringRequired

SignerStatus

FieldTypeRequired
connectedbooleanRequired
signer
stringnull
Optional
last_seen
string · ISO 8601null
Optional
pendinginteger · usizeRequired

Tenant

FieldTypeRequired
idTenantIdRequired
namestringRequired
edbstringRequired
created_atstring · ISO 8601Required
roleRoleRequired
archivedbooleanServer default: falseOptional
books_delegatedbooleanServer default: falseOptional

TotpCode

FieldTypeRequired
codestringRequired

TotpSetup

FieldTypeRequired
secretstringRequired
uristringRequired
qr_svgstringServer default: ""Optional

UjpSettingsSources

FieldTypeRequired
account_id
string · UUIDnull
Optional
eujp_inheritedbooleanRequired
certificate_inheritedbooleanRequired
use_account_certificatebooleanRequired

UploadCert

FieldTypeRequired
p12_base64stringRequired
passwordstringRequired

security::Page

FieldTypeRequired
before
integer · i64null
Optional
limit
integer · i32null
Optional