KontoCloud
HTTP API / Operation reference

E-invoicing and УЈП

38 operations

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

GET

/api/t/{tid}/efaktura

#

get_t_tid_efaktura

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
directionOptional
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Array<Einvoice>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura' \
  --header "Authorization: Bearer $KC_TOKEN"

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::list

POST

/api/t/{tid}/efaktura

#

post_t_tid_efaktura

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
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
due_date
string · YYYY-MM-DDnull
Server default: null
Optional
buyer_edbstringServer default: ""Optional
payment_typestringServer default: ""Optional
notestringServer default: ""Optional
itemsServer default: []Optional
document
Arbitrary JSONnull
Server default: null
Optional
request.json
{
  "doc_number": "example",
  "doc_date": "2026-01-01"
}

Successful response

201 · application/json

EinvoiceDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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::create

POST

/api/t/{tid}/efaktura/certificate

#

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

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

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

Successful response

200 · application/json

EinvoiceSetup

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/certificate' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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::upload_cert

POST

/api/t/{tid}/efaktura/certificate/deactivate

#

post_t_tid_efaktura_certificate_deactivate

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
reasonstringServer default: ""Optional
request.json
{}

Successful response

200 · application/json

EinvoiceSetup

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/certificate/deactivate' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

certificate_missingglobal_certificate

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::deactivate_cert

POST

/api/t/{tid}/efaktura/certificate/local

#

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

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

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

Successful response

200 · application/json

EinvoiceSetup

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/certificate/local' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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::upload_local_cert

POST

/api/t/{tid}/efaktura/certificate/lock

#

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

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

EinvoiceSetup

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/certificate/lock' \
  --header "Authorization: Bearer $KC_TOKEN"

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::lock_cert

POST

/api/t/{tid}/efaktura/certificate/unlock

#

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

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

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

Successful response

200 · application/json

EinvoiceSetup

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/certificate/unlock' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

certificate_localcertificate_missingsecret_key_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::unlock_cert

GET

/api/t/{tid}/efaktura/codebooks

#

get_t_tid_efaktura_codebooks

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

EinvoiceCodebooks

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/codebooks' \
  --header "Authorization: Bearer $KC_TOKEN"

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::codebooks

POST

/api/t/{tid}/efaktura/inbox

#

post_t_tid_efaktura_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
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

InboxFetch

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/inbox' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

bad_periodujp_error

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::fetch_inbox

GET

/api/t/{tid}/efaktura/inheritance

#

get_t_tid_efaktura_inheritance

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

UjpSettingsSources

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/inheritance' \
  --header "Authorization: Bearer $KC_TOKEN"

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_sources

POST

/api/t/{tid}/efaktura/inheritance

#

post_t_tid_efaktura_inheritance

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
inheritbooleanRequired
request.json
{
  "inherit": true
}

Successful response

200 · application/json

EinvoiceSetup

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/inheritance' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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::set_inheritance

POST

/api/t/{tid}/efaktura/offline

#

post_t_tid_efaktura_offline

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
keystring · UUIDRequired
created_atstring · ISO 8601Required
devicestringServer default: ""Optional
invoiceNewEinvoiceRequired
request.json
{
  "key": "00000000-0000-4000-8000-000000000001",
  "created_at": "2026-01-01T00:00:00Z",
  "invoice": {
    "doc_number": "example",
    "doc_date": "2026-01-01"
  }
}

Successful response

201 · application/json

OfflineSynced

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/offline' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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::offline_sync

POST

/api/t/{tid}/efaktura/preview

#

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

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
due_date
string · YYYY-MM-DDnull
Server default: null
Optional
buyer_edbstringServer default: ""Optional
payment_typestringServer default: ""Optional
notestringServer default: ""Optional
itemsServer default: []Optional
document
Arbitrary JSONnull
Server default: null
Optional
request.json
{
  "doc_number": "example",
  "doc_date": "2026-01-01"
}

Successful response

200 · application/json

EinvoicePreview

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/preview' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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::preview

GET

/api/t/{tid}/efaktura/send-batches

#

get_t_tid_efaktura_send_batches

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

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/send-batches' \
  --header "Authorization: Bearer $KC_TOKEN"

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

POST

/api/t/{tid}/efaktura/send-batches

#

post_t_tid_efaktura_send_batches

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
invoice_ids
Array<InvoiceId>
Server default: []
Optional
all_readybooleanServer default: falseOptional
request.json
{}

Successful response

201 · application/json

EinvoiceSendBatchDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/send-batches' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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

GET

/api/t/{tid}/efaktura/send-batches/{id}

#

get_t_tid_efaktura_send_batches_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

EinvoiceSendBatchDetail

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/send-batches/1' \
  --header "Authorization: Bearer $KC_TOKEN"

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

POST

/api/t/{tid}/efaktura/send-batches/{id}/retry

#

post_t_tid_efaktura_send_batches_id_retry

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

EinvoiceSendBatchDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/send-batches/1/retry' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

einvoice_batch_not_retryable

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

POST

/api/t/{tid}/efaktura/settings

#

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

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

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

Successful response

200 · application/json

EinvoiceSetup

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/settings' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

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::set_settings

GET

/api/t/{tid}/efaktura/setup

#

get_t_tid_efaktura_setup

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

EinvoiceSetup

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/setup' \
  --header "Authorization: Bearer $KC_TOKEN"

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::setup

GET

/api/t/{tid}/efaktura/{id}

#

get_t_tid_efaktura_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

EinvoiceDetail

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1' \
  --header "Authorization: Bearer $KC_TOKEN"

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::get_one

GET

/api/t/{tid}/efaktura/{id}/asic

#

get_t_tid_efaktura_id_asic

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/vnd.etsi.asic-e+zip

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/asic' \
  --header "Authorization: Bearer $KC_TOKEN"

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::asic

POST

/api/t/{tid}/efaktura/{id}/correction

#

post_t_tid_efaktura_id_correction

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
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
reason_codestringRequired
commentstringServer default: ""Optional
itemsRequired
request.json
{
  "doc_number": "example",
  "doc_date": "2026-01-01",
  "reason_code": "example",
  "items": []
}

Successful response

201 · application/json

EinvoiceDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/correction' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

bad_einvoice

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::correction

POST

/api/t/{tid}/efaktura/{id}/decision

#

post_t_tid_efaktura_id_decision

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
acceptbooleanRequired
reason_codestringServer default: ""Optional
commentstringServer default: ""Optional
request.json
{
  "accept": true
}

Successful response

200 · application/json

EinvoiceDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/decision' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

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

GET

/api/t/{tid}/efaktura/{id}/history

#

get_t_tid_efaktura_id_history

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

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/history' \
  --header "Authorization: Bearer $KC_TOKEN"

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::history

GET

/api/t/{tid}/efaktura/{id}/pdf

#

get_t_tid_efaktura_id_pdf

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

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/pdf' \
  --header "Authorization: Bearer $KC_TOKEN"

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::pdf

GET

/api/t/{tid}/efaktura/{id}/receipt-import

#

get_t_tid_efaktura_id_receipt_import

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
idEinvoiceIdRequired

Request body

No request body.

Successful response

200 · application/json

EinvoiceReceiptPreview

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/receipt-import' \
  --header "Authorization: Bearer $KC_TOKEN"

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

POST

/api/t/{tid}/efaktura/{id}/receipt-import

#

post_t_tid_efaktura_id_receipt_import

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
idEinvoiceIdRequired

Request body

FieldTypeRequired
warehouseWarehouseIdRequired
date
string · YYYY-MM-DDnull
Server default: null
Optional
descriptionstringServer default: ""Optional
linesServer default: []Optional
request.json
{
  "warehouse": "00000000-0000-4000-8000-000000000001"
}

Successful response

201 · application/json

StockDoc

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/receipt-import' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

einvoice_receipt_mismatcheinvoice_receipt_partner

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

POST

/api/t/{tid}/efaktura/{id}/send

#

post_t_tid_efaktura_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

200 · application/json

EinvoiceDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/send' \
  --header "Authorization: Bearer $KC_TOKEN"

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::resend

POST

/api/t/{tid}/efaktura/{id}/status

#

post_t_tid_efaktura_id_status

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

EinvoiceDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/status' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

einvoice_state

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::refresh_status

POST

/api/t/{tid}/efaktura/{id}/storno

#

post_t_tid_efaktura_id_storno

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
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
reason_codestringRequired
commentstringServer default: ""Optional
request.json
{
  "doc_number": "example",
  "doc_date": "2026-01-01",
  "reason_code": "example"
}

Successful response

201 · application/json

EinvoiceDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/storno' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

bad_einvoice

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::storno

GET

/api/t/{tid}/efaktura/{id}/ujp-pdf

#

get_t_tid_efaktura_id_ujp_pdf

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

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/ujp-pdf' \
  --header "Authorization: Bearer $KC_TOKEN"

Errors and constraints

einvoice_state

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::ujp_pdf

POST

/api/t/{tid}/efaktura/{id}/vat-totals

#

post_t_tid_efaktura_id_vat_totals

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
rowsRequired
request.json
{
  "rows": []
}

Successful response

200 · application/json

EinvoiceDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/efaktura/1/vat-totals' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

bad_vat_totalseinvoice_doneeinvoice_state

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::vat_totals

GET

/api/t/{tid}/signatures

#

get_t_tid_signatures

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

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/signatures' \
  --header "Authorization: Bearer $KC_TOKEN"

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

GET

/api/t/{tid}/signer

#

get_t_tid_signer

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

SignerStatus

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/signer' \
  --header "Authorization: Bearer $KC_TOKEN"

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

POST

/api/t/{tid}/signer/companion

#

post_t_tid_signer_companion

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

SignerCompanion

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/signer/companion' \
  --header "Authorization: Bearer $KC_TOKEN"

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

GET

/api/t/{tid}/signer/next

#

get_t_tid_signer_next

Access

Session with signing permission or a companion signer token bound to the legal entity.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
wait
integer · u64null
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/signer/next' \
  --header "Authorization: Bearer $KC_TOKEN"

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

POST

/api/t/{tid}/signer/{id}

#

post_t_tid_signer_id

Access

Session with signing permission or a companion signer token bound to the legal entity.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idstring · UUIDRequired

Request body

FieldTypeRequired
signature_base64
stringnull
Server default: null
Optional
declined
stringnull
Server default: null
Optional
request.json
{}

Successful response

200 · application/json

SignerStatus

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/signer/00000000-0000-4000-8000-000000000001' \
  --header "Authorization: Bearer $KC_TOKEN" \
  --header 'Content-Type: application/json' \
  --data-binary '@request.json'

Errors and constraints

bad_signature

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

GET

/api/t/{tid}/ujp/status

#

get_t_tid_ujp_status

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

UjpStatus

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/ujp/status' \
  --header "Authorization: Bearer $KC_TOKEN"

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::ujp_status

Complete JSON types

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

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

EinvoiceCorrection

FieldTypeRequired
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
reason_codestringRequired
commentstringServer default: ""Optional
itemsRequired

EinvoiceDecision

FieldTypeRequired
acceptbooleanRequired
reason_codestringServer default: ""Optional
commentstringServer default: ""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

EinvoiceReceiptLine

FieldTypeRequired
line_nointeger · i32Required
supplier_keystringRequired
descriptionstringRequired
unitstringRequired
quantitystringRequired
netMoneyRequired
vat_ratestringRequired
map_idServer default: nullOptional
item_id
ItemIdnull
Server default: null
Optional
item_code
stringnull
Server default: null
Optional
factor
stringnull
Server default: null
Optional

EinvoiceReceiptLineMap

FieldTypeRequired
line_nointeger · i32Required
item
ItemIdnull
Server default: null
Optional
factor
stringnull
Server default: null
Optional
skipbooleanServer default: falseOptional
savebooleanServer default: falseOptional

EinvoiceReceiptPreview

FieldTypeRequired
einvoice_idEinvoiceIdRequired
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
seller_edbstringRequired
seller_namestringRequired
partner_idServer default: nullOptional
partner
stringnull
Server default: null
Optional
receipt_idServer default: nullOptional
receipt_number
stringnull
Server default: null
Optional
blocked
stringnull
Server default: null
Optional
linesRequired

EinvoiceSendBatch

FieldTypeRequired
idEinvoiceSendBatchIdRequired
item_countinteger · i32Required
attemptsinteger · i32Required
queuedinteger · i32Required
sentinteger · i32Required
failedinteger · i32Required
skippedinteger · i32Required
created_atstring · ISO 8601Required
created_bystringRequired

EinvoiceSendBatchItem

FieldTypeRequired
positioninteger · i32Required
invoice_idInvoiceIdRequired
invoice_numberstringRequired
issue_datestring · YYYY-MM-DDRequired
partnerstringRequired
totalMoneyRequired
statusEinvoiceBatchItemStatusRequired
attemptinteger · i32Required
einvoice_idServer default: nullOptional
error_code
stringnull
Server default: null
Optional
messagestringServer default: ""Optional

EinvoiceSettings

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

EinvoiceStatusChange

FieldTypeRequired
old_codestringRequired
old_namestringRequired
new_codestringRequired
new_namestringRequired
timestampstringRequired
commentstringRequired

EinvoiceStorno

FieldTypeRequired
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
reason_codestringRequired
commentstringServer default: ""Optional

InboxFetch

FieldTypeRequired
foundinteger · usizeRequired
addedinteger · usizeRequired

LocalCert

FieldTypeRequired
cert_base64stringRequired

LocalSignature

FieldTypeRequired
idinteger · i64Required
certificate_idinteger · i64Required
purposestringRequired
input_sha256stringRequired
requested_bystringRequired
created_atstring · ISO 8601Required
created_bystringRequired

NewEinvoice

FieldTypeRequired
doc_numberstringRequired
doc_datestring · YYYY-MM-DDRequired
due_date
string · YYYY-MM-DDnull
Server default: null
Optional
buyer_edbstringServer default: ""Optional
payment_typestringServer default: ""Optional
notestringServer default: ""Optional
itemsServer default: []Optional
document
Arbitrary JSONnull
Server default: null
Optional

NewEinvoiceItem

FieldTypeRequired
descriptionstringRequired
unitstringServer default: ""Optional
quantitystringRequired
priceMoneyRequired
discountMoneyServer defaultOptional
vat_groupstringRequired
tax_indicatorstringServer default: ""Optional

OfflineEinvoice

FieldTypeRequired
keystring · UUIDRequired
created_atstring · ISO 8601Required
devicestringServer default: ""Optional
invoiceNewEinvoiceRequired

PurchaseVatRow

FieldTypeRequired
tax_indicatorstringRequired
vat_groupstringServer default: ""Optional
vat_percentinteger · i32Required
taxableMoneyRequired
vatMoneyRequired

Qty

integer · i64

SignerCompanion

FieldTypeRequired
tokenstringRequired
expires_atstring · ISO 8601Required

SignerStatus

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

SigningReply

FieldTypeRequired
signature_base64
stringnull
Server default: null
Optional
declined
stringnull
Server default: null
Optional

SigningRequest

FieldTypeRequired
idstring · UUIDRequired
certificate_idinteger · i64Required
certificate_sha256stringRequired
algstringRequired
kindSignKindRequired
purposestringRequired
signing_inputstringRequired
requested_bystringRequired
created_atstring · ISO 8601Required

StockDoc

FieldTypeRequired
idStockDocIdRequired
kindStockDocKindRequired
stateStockDocStateRequired
warehouse_idWarehouseIdRequired
warehousestringRequired
to_warehouse_idServer default: nullOptional
to_warehouse
stringnull
Server default: null
Optional
doc_datestring · YYYY-MM-DDRequired
partner_id
string · UUIDnull
Server default: null
Optional
partner
stringnull
Server default: null
Optional
counter_account
stringnull
Server default: null
Optional
costs_account
stringnull
Server default: null
Optional
referencestringRequired
descriptionstringRequired
storno_ofServer default: nullOptional
storno_byServer default: nullOptional
stocktake_idServer default: nullOptional
number
stringnull
Server default: null
Optional
entry_id
integer · i64null
Server default: null
Optional
draft_id
integer · i64null
Server default: null
Optional
einvoice_id
integer · i64null
Server default: null
Optional
einvoice_number
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired
linesRequired
moves
Array<StockMove>
Required
plan_error
stringnull
Server default: null
Optional
entry_linesRequired
cancel_reason
stringnull
Server default: null
Optional

StockDocKind

"receipt""issue""transfer""return_supplier""return_customer""stocktake""storno""cost""price_leveling"

StockDocLine

FieldTypeRequired
line_nointeger · i32Required
item_idItemIdRequired
item_codestringRequired
item_namestringRequired
unitstringRequired
vat_ratestringRequired
quantityQtyRequired
value
Moneynull
Server default: null
Optional
costsMoneyRequired
sale_price
Moneynull
Server default: null
Optional

StockEntryLine

FieldTypeRequired
accountstringRequired
partner_id
string · UUIDnull
Server default: null
Optional
amountMoneyRequired

StockMove

FieldTypeRequired
line_nointeger · i32Required
warehousestringRequired
item_idItemIdRequired
quantityQtyRequired
valueMoneyRequired
sale_valueMoneyRequired
vat_valueMoneyRequired

UjpCode

FieldTypeRequired
codestringRequired
namestringRequired
percent
integer · i32null
Optional
group
stringnull
Optional

UjpSettingsSources

FieldTypeRequired
account_id
string · UUIDnull
Optional
eujp_inheritedbooleanRequired
certificate_inheritedbooleanRequired
use_account_certificatebooleanRequired

UjpStatus

FieldTypeRequired
environmentUjpEnvironmentRequired
reachablebooleanRequired
checked_atstring · ISO 8601Required
error
stringnull
Optional

UploadCert

FieldTypeRequired
p12_base64stringRequired
passwordstringRequired

efaktura::InboxQ

FieldTypeRequired
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional