KontoCloud
HTTP API / Operation reference

Stock and warehouses

51 operations

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

GET

/api/t/{tid}/buyout-notes

#

get_t_tid_buyout_notes

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

Array<BuyoutNote>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/buyout-notes' \
  --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/buyout_note.rs · buyout_note::list

POST

/api/t/{tid}/buyout-notes

#

post_t_tid_buyout_notes

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
date
string · YYYY-MM-DDnull
Server default: null
Optional
warehouse_idWarehouseIdRequired
employee_idEmployeeIdRequired
basisBuyoutBasisServer defaultOptional
linesRequired
note
stringnull
Server default: null
Optional
request.json
{
  "warehouse_id": "00000000-0000-4000-8000-000000000001",
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "lines": []
}

Successful response

201 · application/json

BuyoutNoteDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/buyout-notes' \
  --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/buyout_note.rs · buyout_note::create

POST

/api/t/{tid}/buyout-notes/preview

#

post_t_tid_buyout_notes_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
date
string · YYYY-MM-DDnull
Server default: null
Optional
warehouse_idWarehouseIdRequired
employee_idEmployeeIdRequired
basisBuyoutBasisServer defaultOptional
linesRequired
note
stringnull
Server default: null
Optional
request.json
{
  "warehouse_id": "00000000-0000-4000-8000-000000000001",
  "employee_id": "00000000-0000-4000-8000-000000000001",
  "lines": []
}

Successful response

200 · application/json

BuyoutNoteDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/buyout-notes/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/buyout_note.rs · buyout_note::preview

GET

/api/t/{tid}/buyout-notes/{id}

#

get_t_tid_buyout_notes_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

BuyoutNoteDetail

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/buyout-notes/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/buyout_note.rs · buyout_note::get

POST

/api/t/{tid}/buyout-notes/{id}/cancel

#

post_t_tid_buyout_notes_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
date
string · YYYY-MM-DDnull
Server default: null
Optional
request.json
{
  "reason": "example"
}

Successful response

201 · application/json

BuyoutNoteDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/buyout-notes/1/cancel' \
  --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/buyout_note.rs · buyout_note::cancel

GET

/api/t/{tid}/customs-declarations

#

get_t_tid_customs_declarations

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/customs-declarations' \
  --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/customs.rs · customs::list

POST

/api/t/{tid}/customs-declarations

#

post_t_tid_customs_declarations

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
declaration_nostringRequired
decl_date
string · YYYY-MM-DDnull
Server default: null
Optional
posting_date
string · YYYY-MM-DDnull
Server default: null
Optional
supplier_idServer default: nullOptional
forwarder_idServer default: nullOptional
currency
stringnull
Server default: null
Optional
customs_value_curMoneyRequired
rate
stringnull
Server default: null
Optional
dutyMoneyServer defaultOptional
exciseMoneyServer defaultOptional
other_dutiesMoneyServer defaultOptional
vat_base
Moneynull
Server default: null
Optional
vat_rate
integer · i32null
Server default: null
Optional
vat
Moneynull
Server default: null
Optional
vat_deductible
booleannull
Server default: null
Optional
forwardingMoneyServer defaultOptional
forwarding_account
stringnull
Server default: null
Optional
methodCustomsAllocationServer defaultOptional
costs_account
stringnull
Server default: null
Optional
note
stringnull
Server default: null
Optional
receipts
Array<StockDocId>
Required
weightsServer default: []Optional
request.json
{
  "declaration_no": "example",
  "customs_value_cur": 1,
  "receipts": []
}

Successful response

201 · application/json

CustomsDeclarationDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/customs-declarations' \
  --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/customs.rs · customs::create

POST

/api/t/{tid}/customs-declarations/preview

#

post_t_tid_customs_declarations_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
declaration_nostringRequired
decl_date
string · YYYY-MM-DDnull
Server default: null
Optional
posting_date
string · YYYY-MM-DDnull
Server default: null
Optional
supplier_idServer default: nullOptional
forwarder_idServer default: nullOptional
currency
stringnull
Server default: null
Optional
customs_value_curMoneyRequired
rate
stringnull
Server default: null
Optional
dutyMoneyServer defaultOptional
exciseMoneyServer defaultOptional
other_dutiesMoneyServer defaultOptional
vat_base
Moneynull
Server default: null
Optional
vat_rate
integer · i32null
Server default: null
Optional
vat
Moneynull
Server default: null
Optional
vat_deductible
booleannull
Server default: null
Optional
forwardingMoneyServer defaultOptional
forwarding_account
stringnull
Server default: null
Optional
methodCustomsAllocationServer defaultOptional
costs_account
stringnull
Server default: null
Optional
note
stringnull
Server default: null
Optional
receipts
Array<StockDocId>
Required
weightsServer default: []Optional
request.json
{
  "declaration_no": "example",
  "customs_value_cur": 1,
  "receipts": []
}

Successful response

200 · application/json

CustomsDeclarationDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/customs-declarations/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/customs.rs · customs::preview

GET

/api/t/{tid}/customs-declarations/{id}

#

get_t_tid_customs_declarations_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

CustomsDeclarationDetail

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/customs-declarations/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/customs.rs · customs::get

POST

/api/t/{tid}/customs-declarations/{id}/cancel

#

post_t_tid_customs_declarations_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
date
string · YYYY-MM-DDnull
Server default: null
Optional
request.json
{
  "reason": "example"
}

Successful response

201 · application/json

CustomsDeclarationDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/customs-declarations/1/cancel' \
  --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/customs.rs · customs::cancel

GET

/api/t/{tid}/daily-turnovers

#

get_t_tid_daily_turnovers

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/daily-turnovers' \
  --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/daily_turnover.rs · daily_turnover::list

POST

/api/t/{tid}/daily-turnovers

#

post_t_tid_daily_turnovers

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
date
string · YYYY-MM-DDnull
Server default: null
Optional
warehouse_idWarehouseIdRequired
fiscal_report
stringnull
Server default: null
Optional
grossMoneyRequired
cashMoneyRequired
cardMoneyRequired
ratesRequired
itemsRequired
domesticServer default: nullOptional
note
stringnull
Server default: null
Optional
request.json
{
  "warehouse_id": "00000000-0000-4000-8000-000000000001",
  "gross": 1,
  "cash": 1,
  "card": 1,
  "rates": [],
  "items": []
}

Successful response

201 · application/json

DailyTurnoverDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/daily-turnovers' \
  --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/daily_turnover.rs · daily_turnover::create

POST

/api/t/{tid}/daily-turnovers/preview

#

post_t_tid_daily_turnovers_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
date
string · YYYY-MM-DDnull
Server default: null
Optional
warehouse_idWarehouseIdRequired
fiscal_report
stringnull
Server default: null
Optional
grossMoneyRequired
cashMoneyRequired
cardMoneyRequired
ratesRequired
itemsRequired
domesticServer default: nullOptional
note
stringnull
Server default: null
Optional
request.json
{
  "warehouse_id": "00000000-0000-4000-8000-000000000001",
  "gross": 1,
  "cash": 1,
  "card": 1,
  "rates": [],
  "items": []
}

Successful response

200 · application/json

DailyTurnoverDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/daily-turnovers/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/daily_turnover.rs · daily_turnover::preview

GET

/api/t/{tid}/daily-turnovers/{id}

#

get_t_tid_daily_turnovers_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

DailyTurnoverDetail

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/daily-turnovers/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/daily_turnover.rs · daily_turnover::get

POST

/api/t/{tid}/daily-turnovers/{id}/cancel

#

post_t_tid_daily_turnovers_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idinteger · i64Required

Request body

FieldTypeRequired
reasonstringRequired
date
string · YYYY-MM-DDnull
Server default: null
Optional
request.json
{
  "reason": "example"
}

Successful response

201 · application/json

DailyTurnoverDetail

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/daily-turnovers/1/cancel' \
  --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/daily_turnover.rs · daily_turnover::cancel

GET

/api/t/{tid}/fiscal-report-book

#

get_t_tid_fiscal_report_book

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
warehousestring · UUIDRequired
year
integer · i32null
Optional

Request body

No request body.

Successful response

200 · application/json

FiscalBook

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/fiscal-report-book?warehouse=00000000-0000-4000-8000-000000000001' \
  --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/retail_book.rs · retail_book::fiscal_book

GET

/api/t/{tid}/retail-receipt-sheets

#

get_t_tid_retail_receipt_sheets

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

Request body

No request body.

Successful response

200 · application/json

ReceiptSheets

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/retail-receipt-sheets?warehouse=00000000-0000-4000-8000-000000000001' \
  --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/retail_book.rs · retail_book::receipt_sheets

GET

/api/t/{tid}/retail-records

#

get_t_tid_retail_records

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

Request body

No request body.

Successful response

200 · application/json

RetailRecord

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/retail-records?warehouse=00000000-0000-4000-8000-000000000001' \
  --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/retail_book.rs · retail_book::retail_record

GET

/api/t/{tid}/stock/card

#

get_t_tid_stock_card

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
summary_onlybooleanServer default: falseOptional
warehouseWarehouseIdRequired
itemItemIdRequired
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

StockCard

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/card?warehouse=00000000-0000-4000-8000-000000000001&item=00000000-0000-4000-8000-000000000001' \
  --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/stock.rs · stock::card

GET

/api/t/{tid}/stock/documents

#

get_t_tid_stock_documents

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Query parameters

FieldTypeRequired
year
integer · i32null
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/stock/documents' \
  --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/stock.rs · stock::documents

POST

/api/t/{tid}/stock/documents

#

post_t_tid_stock_documents

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
kindStockDocKindRequired
warehouseWarehouseIdRequired
to_warehouseServer default: nullOptional
datestring · YYYY-MM-DDRequired
partner
string · UUIDnull
Server default: null
Optional
counter_account
stringnull
Server default: null
Optional
costs_account
stringnull
Server default: null
Optional
referencestringServer default: ""Optional
descriptionstringServer default: ""Optional
linesRequired
request.json
{
  "kind": "receipt",
  "warehouse": "00000000-0000-4000-8000-000000000001",
  "date": "2026-01-01",
  "lines": []
}

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/stock/documents' \
  --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/stock.rs · stock::create_document

GET

/api/t/{tid}/stock/documents/{id}

#

get_t_tid_stock_documents_id

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idStockDocIdRequired

Request body

No request body.

Successful response

200 · application/json

StockDoc

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/documents/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/stock.rs · stock::document

POST

/api/t/{tid}/stock/documents/{id}/cancel

#

post_t_tid_stock_documents_id_cancel

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired
idStockDocIdRequired

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

200 · application/json

StockDoc

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/documents/1/cancel' \
  --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/stock.rs · stock::cancel_document

GET

/api/t/{tid}/stock/documents/{id}/overview

#

get_t_tid_stock_documents_id_overview

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
idStockDocIdRequired

Request body

No request body.

Successful response

200 · application/json

StockDocOverview

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/documents/1/overview' \
  --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/stock.rs · stock::document_overview

POST

/api/t/{tid}/stock/documents/{id}/post

#

post_t_tid_stock_documents_id_post

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
idStockDocIdRequired

Request body

No request body.

Successful response

201 · application/json

StockPostResult

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/documents/1/post' \
  --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/stock.rs · stock::post_document

POST

/api/t/{tid}/stock/documents/{id}/storno

#

post_t_tid_stock_documents_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
idStockDocIdRequired

Request body

FieldTypeRequired
datestring · YYYY-MM-DDRequired
reasonstringRequired
request.json
{
  "date": "2026-01-01",
  "reason": "example"
}

Successful response

201 · application/json

StockPostResult

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/documents/1/storno' \
  --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/stock.rs · stock::storno_document

GET

/api/t/{tid}/stock/item-maps

#

get_t_tid_stock_item_maps

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
partner
string · UUIDnull
Optional
allbooleanServer default: falseOptional

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/stock/item-maps' \
  --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::list_maps

POST

/api/t/{tid}/stock/item-maps

#

post_t_tid_stock_item_maps

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
partnerPartnerIdRequired
supplier_keystringRequired
itemItemIdRequired
factorstringServer default: "1"Optional
request.json
{
  "partner": "00000000-0000-4000-8000-000000000001",
  "supplier_key": "example",
  "item": "00000000-0000-4000-8000-000000000001"
}

Successful response

201 · application/json

StockItemMap

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/item-maps' \
  --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_receipts.rs · einvoice_receipts::create_map

POST

/api/t/{tid}/stock/item-maps/{id}/deactivate

#

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

Request body

FieldTypeRequired
reasonstringRequired
request.json
{
  "reason": "example"
}

Successful response

200 · application/json

StockItemMap

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/item-maps/1/deactivate' \
  --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_receipts.rs · einvoice_receipts::deactivate_map

GET

/api/t/{tid}/stock/items

#

get_t_tid_stock_items

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Array<Item>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/items' \
  --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/stock.rs · stock::items

POST

/api/t/{tid}/stock/items

#

post_t_tid_stock_items

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

FieldTypeRequired
trackingServer default: nullOptional
codestringRequired
kindItemKindRequired
unitstringRequired
namestringRequired
vat_ratestringRequired
activebooleanServer default: trueOptional
domesticbooleanServer default: falseOptional
request.json
{
  "code": "example",
  "kind": "material",
  "unit": "example",
  "name": "example",
  "vat_rate": "example"
}

Successful response

201 · application/json

Item

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/items' \
  --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/stock.rs · stock::create_item

GET

/api/t/{tid}/stock/items/{id}

#

get_t_tid_stock_items_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
idItemIdRequired

Query parameters

FieldTypeRequired
summary_onlybooleanServer default: falseOptional

Request body

No request body.

Successful response

200 · application/json

Item

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/items/00000000-0000-4000-8000-000000000001' \
  --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/stock.rs · stock::item

POST

/api/t/{tid}/stock/items/{id}

#

post_t_tid_stock_items_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
idItemIdRequired

Request body

FieldTypeRequired
namestringRequired
vat_ratestringRequired
activebooleanServer default: trueOptional
domesticbooleanServer default: falseOptional
reasonstringRequired
request.json
{
  "name": "example",
  "vat_rate": "example",
  "reason": "example"
}

Successful response

201 · application/json

Item

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/items/00000000-0000-4000-8000-000000000001' \
  --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/stock.rs · stock::change_item

GET

/api/t/{tid}/stock/list

#

get_t_tid_stock_list

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
warehouseOptional
date
string · YYYY-MM-DDnull
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/stock/list' \
  --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/stock.rs · stock::list

GET

/api/t/{tid}/stock/parameters

#

get_t_tid_stock_parameters

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Array<StockParam>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/parameters' \
  --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/stock.rs · stock::params

POST

/api/t/{tid}/stock/parameters

#

post_t_tid_stock_parameters

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
codestringRequired
item
ItemIdnull
Server default: null
Optional
valid_fromstring · YYYY-MM-DDRequired
valuestringRequired
sourcestringRequired
reason
stringnull
Server default: null
Optional
request.json
{
  "code": "example",
  "valid_from": "2026-01-01",
  "value": "dark",
  "source": "example"
}

Successful response

201 · application/json

Array<StockParam>

Call example

HTTP API

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

Errors and constraints

bad_stock_param

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

GET

/api/t/{tid}/stock/production

#

get_t_tid_stock_production

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/stock/production' \
  --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/stock_production.rs · stock_production::orders

POST

/api/t/{tid}/stock/production

#

post_t_tid_stock_production

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
idstring · UUIDRequired
recipeinteger · i64Required
datestring · YYYY-MM-DDRequired
materialsWarehouseIdRequired
destinationWarehouseIdRequired
quantityQtyRequired
request.json
{
  "id": "00000000-0000-4000-8000-000000000001",
  "recipe": 1,
  "date": "2026-01-01",
  "materials": "00000000-0000-4000-8000-000000000001",
  "destination": "00000000-0000-4000-8000-000000000001",
  "quantity": 1
}

Successful response

200 / 201 · application/json

ProductionOrder

Call example

HTTP API

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

Errors and constraints

production_key_reused

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

POST

/api/t/{tid}/stock/production/{id}/receipt

#

post_t_tid_stock_production_id_receipt

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

Request body

string · YYYY-MM-DD
request.json
"2026-01-01"

Successful response

200 / 201 · application/json

ProductionOrder

Call example

HTTP API

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

Errors and constraints

production_received

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

GET

/api/t/{tid}/stock/recipes

#

get_t_tid_stock_recipes

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/stock/recipes' \
  --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/stock_production.rs · stock_production::recipes

POST

/api/t/{tid}/stock/recipes

#

post_t_tid_stock_recipes

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
namestringRequired
productItemIdRequired
componentsRequired
request.json
{
  "name": "example",
  "product": "00000000-0000-4000-8000-000000000001",
  "components": []
}

Successful response

201 · application/json

ProductionRecipe

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/recipes' \
  --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/stock_production.rs · stock_production::add_recipe

GET

/api/t/{tid}/stock/reconciliation

#

get_t_tid_stock_reconciliation

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
date
string · YYYY-MM-DDnull
Optional

Request body

No request body.

Successful response

200 · application/json

Array<StockRecon>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/reconciliation' \
  --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/stock.rs · stock::recon

GET

/api/t/{tid}/stock/warehouses

#

get_t_tid_stock_warehouses

Access

User session: Authorization: Bearer <token>. API keys are not accepted on this route. Permissions and email verification depend on the operation; verification itself and logout are available before verification.

Path parameters

FieldTypeRequired
tidstring · UUIDRequired

Request body

No request body.

Successful response

200 · application/json

Array<Warehouse>

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/warehouses' \
  --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/stock.rs · stock::warehouses

POST

/api/t/{tid}/stock/warehouses

#

post_t_tid_stock_warehouses

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
codestringRequired
kindItemKindRequired
accountstringRequired
retailbooleanServer default: falseOptional
namestringRequired
activebooleanServer default: trueOptional
address
stringnull
Server default: null
Optional
request.json
{
  "code": "example",
  "kind": "material",
  "account": "example",
  "name": "example"
}

Successful response

201 · application/json

Warehouse

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/warehouses' \
  --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/stock.rs · stock::create_warehouse

POST

/api/t/{tid}/stock/warehouses/{id}

#

post_t_tid_stock_warehouses_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
idWarehouseIdRequired

Request body

FieldTypeRequired
namestringRequired
activebooleanServer default: trueOptional
address
stringnull
Server default: null
Optional
reasonstringRequired
request.json
{
  "name": "example",
  "reason": "example"
}

Successful response

201 · application/json

Warehouse

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stock/warehouses/00000000-0000-4000-8000-000000000001' \
  --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/stock.rs · stock::change_warehouse

GET

/api/t/{tid}/stocktakes

#

get_t_tid_stocktakes

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/stocktakes' \
  --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/stock.rs · stock::stocktakes

POST

/api/t/{tid}/stocktakes

#

post_t_tid_stocktakes

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
warehouseWarehouseIdRequired
datestring · YYYY-MM-DDRequired
descriptionstringServer default: ""Optional
request.json
{
  "warehouse": "00000000-0000-4000-8000-000000000001",
  "date": "2026-01-01"
}

Successful response

201 · application/json

Stocktake

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stocktakes' \
  --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/stock.rs · stock::create_stocktake

GET

/api/t/{tid}/stocktakes/{id}

#

get_t_tid_stocktakes_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
idStocktakeIdRequired

Request body

No request body.

Successful response

200 · application/json

Stocktake

Call example

HTTP API

curl --fail-with-body --request GET \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stocktakes/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/stock.rs · stock::stocktake

POST

/api/t/{tid}/stocktakes/{id}/counts

#

post_t_tid_stocktakes_id_counts

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
idStocktakeIdRequired

Request body

request.json
[]

Successful response

201 · application/json

Stocktake

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stocktakes/1/counts' \
  --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/stock.rs · stock::count

POST

/api/t/{tid}/stocktakes/{id}/lock

#

post_t_tid_stocktakes_id_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
idStocktakeIdRequired

Request body

No request body.

Successful response

201 · application/json

Stocktake

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stocktakes/1/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/stock.rs · stock::lock

POST

/api/t/{tid}/stocktakes/{id}/post

#

post_t_tid_stocktakes_id_post

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
idStocktakeIdRequired

Request body

No request body.

Successful response

201 · application/json

StockPostResult

Call example

HTTP API

curl --fail-with-body --request POST \
  'https://api.kontocloud.mk/api/t/00000000-0000-4000-8000-000000000001/stocktakes/1/post' \
  --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/stock.rs · stock::post_stocktake

Complete JSON types

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

AgriculturalCheck

FieldTypeRequired
yearinteger · i32Required
embgstringRequired
previousMoneyRequired
totalMoneyRequired
thresholdMoneyRequired
exceededbooleanRequired

BuyoutNote

FieldTypeRequired
idBuyoutNoteIdRequired
yearinteger · i32Required
numberinteger · i32Required
note_datestring · YYYY-MM-DDRequired
warehouse_idWarehouseIdRequired
warehouse_codestringRequired
warehouse_namestringRequired
employee_idEmployeeIdRequired
embgstringRequired
person_namestringRequired
basisBuyoutBasisRequired
amountMoneyRequired
grossMoneyRequired
norm_costMoneyRequired
contributionsMoneyRequired
pitMoneyRequired
netMoneyRequired
note
stringnull
Server default: null
Optional
statusBuyoutNoteStatusRequired
entry_id
EntryIdnull
Server default: null
Optional
storno_entry_id
EntryIdnull
Server default: null
Optional
receipt_doc_idServer default: nullOptional
payment_idServer default: nullOptional
payment_number
stringnull
Server default: null
Optional
cancel_date
string · YYYY-MM-DDnull
Server default: null
Optional
cancel_reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

BuyoutNoteLine

FieldTypeRequired
line_nointeger · i32Required
item_idItemIdRequired
item_codestringRequired
item_namestringRequired
unitstringRequired
quantityQtyRequired
priceMoneyRequired
amountMoneyRequired
grossMoneyRequired

CancelBuyoutNote

FieldTypeRequired
reasonstringRequired
date
string · YYYY-MM-DDnull
Server default: null
Optional

CancelDailyTurnover

FieldTypeRequired
reasonstringRequired
date
string · YYYY-MM-DDnull
Server default: null
Optional

CustomsAllocationLine

FieldTypeRequired
doc_idStockDocIdRequired
receipt_numberstringRequired
line_nointeger · i32Required
item_idItemIdRequired
item_codestringRequired
item_namestringRequired
quantityQtyRequired
basisstringRequired
amountMoneyRequired

CustomsCostCorrection

FieldTypeRequired
storno_doc_idStockDocIdRequired
out_doc_idStockDocIdRequired
out_doc_number
stringnull
Server default: null
Optional
out_doc_datestring · YYYY-MM-DDRequired
item_codestringRequired
item_namestringRequired
accountstringRequired
partner_idServer default: nullOptional
amountMoneyRequired

CustomsCostDoc

FieldTypeRequired
doc_idStockDocIdRequired
receipt_idStockDocIdRequired
rolestringRequired
doc_number
stringnull
Server default: null
Optional
doc_datestring · YYYY-MM-DDRequired
entry_id
EntryIdnull
Server default: null
Optional
amountMoneyRequired
correctedMoneyServer defaultOptional
correction_entry_id
EntryIdnull
Server default: null
Optional

CustomsDeclaration

FieldTypeRequired
idCustomsDeclarationIdRequired
yearinteger · i32Required
numberinteger · i32Required
declaration_nostringRequired
decl_datestring · YYYY-MM-DDRequired
posting_datestring · YYYY-MM-DDRequired
supplier_idServer default: nullOptional
supplier_name
stringnull
Server default: null
Optional
forwarder_idServer default: nullOptional
forwarder_name
stringnull
Server default: null
Optional
currencystringRequired
customs_value_curMoneyRequired
ratestringRequired
customs_valueMoneyRequired
dutyMoneyRequired
exciseMoneyRequired
other_dutiesMoneyRequired
vat_baseMoneyRequired
vat_rateinteger · i32Required
vatMoneyRequired
vat_deductiblebooleanRequired
forwardingMoneyRequired
forwarding_account
stringnull
Server default: null
Optional
methodCustomsAllocationRequired
costs_account
stringnull
Server default: null
Optional
allocatedMoneyRequired
note
stringnull
Server default: null
Optional
receipts
Array<StockDocId>
Required
statusCustomsDeclarationStatusRequired
entry_id
EntryIdnull
Server default: null
Optional
storno_entry_id
EntryIdnull
Server default: null
Optional
cancel_date
string · YYYY-MM-DDnull
Server default: null
Optional
cancel_reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

DailyTurnover

FieldTypeRequired
idDailyTurnoverIdRequired
yearinteger · i32Required
numberinteger · i32Required
turnover_datestring · YYYY-MM-DDRequired
warehouse_idWarehouseIdRequired
warehouse_codestringRequired
warehouse_namestringRequired
fiscal_report
stringnull
Server default: null
Optional
grossMoneyRequired
cashMoneyRequired
cardMoneyRequired
baseMoneyRequired
vatMoneyRequired
costMoneyRequired
stock_sale_valueMoneyRequired
note
stringnull
Server default: null
Optional
statusDailyTurnoverStatusRequired
entry_id
EntryIdnull
Server default: null
Optional
storno_entry_id
EntryIdnull
Server default: null
Optional
issue_doc_idServer default: nullOptional
cancel_date
string · YYYY-MM-DDnull
Server default: null
Optional
cancel_reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

DailyTurnoverItem

FieldTypeRequired
line_nointeger · i32Required
item_idItemIdRequired
item_codestringRequired
item_namestringRequired
unitstringRequired
quantityQtyRequired
costMoneyRequired
sale_valueMoneyRequired
domesticbooleanServer default: falseOptional

FiscalBookDay

FieldTypeRequired
datestring · YYYY-MM-DDRequired
gross
Array<Money>
Required
total_grossMoneyRequired
vat
Array<Money>
Required
total_vatMoneyRequired
domestic_grossMoneyRequired
domestic_vat
Array<Money>
Required
domestic_total_vatMoneyRequired

Item

FieldTypeRequired
trackingServer default: nullOptional
idItemIdRequired
codestringRequired
kindItemKindRequired
unitstringRequired
versioninteger · i32Required
namestringRequired
vat_ratestringRequired
activebooleanRequired
domesticbooleanServer default: falseOptional
changed_atstring · ISO 8601Required
changed_bystringRequired
versionsServer default: []Optional

ItemChange

FieldTypeRequired
namestringRequired
vat_ratestringRequired
activebooleanServer default: trueOptional
domesticbooleanServer default: falseOptional
reasonstringRequired

ItemTracking

FieldTypeRequired
parentItemIdRequired
variantstringServer default: ""Optional
lotstringServer default: ""Optional
serialstringServer default: ""Optional

ItemVersion

FieldTypeRequired
versioninteger · i32Required
namestringRequired
vat_ratestringRequired
activebooleanRequired
domesticbooleanServer default: falseOptional
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

NewCustomsDeclaration

FieldTypeRequired
declaration_nostringRequired
decl_date
string · YYYY-MM-DDnull
Server default: null
Optional
posting_date
string · YYYY-MM-DDnull
Server default: null
Optional
supplier_idServer default: nullOptional
forwarder_idServer default: nullOptional
currency
stringnull
Server default: null
Optional
customs_value_curMoneyRequired
rate
stringnull
Server default: null
Optional
dutyMoneyServer defaultOptional
exciseMoneyServer defaultOptional
other_dutiesMoneyServer defaultOptional
vat_base
Moneynull
Server default: null
Optional
vat_rate
integer · i32null
Server default: null
Optional
vat
Moneynull
Server default: null
Optional
vat_deductible
booleannull
Server default: null
Optional
forwardingMoneyServer defaultOptional
forwarding_account
stringnull
Server default: null
Optional
methodCustomsAllocationServer defaultOptional
costs_account
stringnull
Server default: null
Optional
note
stringnull
Server default: null
Optional
receipts
Array<StockDocId>
Required
weightsServer default: []Optional

NewItem

FieldTypeRequired
trackingServer default: nullOptional
codestringRequired
kindItemKindRequired
unitstringRequired
namestringRequired
vat_ratestringRequired
activebooleanServer default: trueOptional
domesticbooleanServer default: falseOptional

NewStockDoc

FieldTypeRequired
kindStockDocKindRequired
warehouseWarehouseIdRequired
to_warehouseServer default: nullOptional
datestring · YYYY-MM-DDRequired
partner
string · UUIDnull
Server default: null
Optional
counter_account
stringnull
Server default: null
Optional
costs_account
stringnull
Server default: null
Optional
referencestringServer default: ""Optional
descriptionstringServer default: ""Optional
linesRequired

NewStockLine

FieldTypeRequired
itemItemIdRequired
quantityQtyRequired
value
Moneynull
Server default: null
Optional
costsMoneyServer defaultOptional
sale_price
Moneynull
Server default: null
Optional

NewStockParam

FieldTypeRequired
codestringRequired
item
ItemIdnull
Server default: null
Optional
valid_fromstring · YYYY-MM-DDRequired
valuestringRequired
sourcestringRequired
reason
stringnull
Server default: null
Optional

NewStocktake

FieldTypeRequired
warehouseWarehouseIdRequired
datestring · YYYY-MM-DDRequired
descriptionstringServer default: ""Optional

NewWarehouse

FieldTypeRequired
codestringRequired
kindItemKindRequired
accountstringRequired
retailbooleanServer default: falseOptional
namestringRequired
activebooleanServer default: trueOptional
address
stringnull
Server default: null
Optional

Qty

integer · i64

ReceiptSheet

FieldTypeRequired
doc_idStockDocIdRequired
doc_labelstringRequired
doc_namestringRequired
doc_datestring · YYYY-MM-DDRequired
book_datestring · YYYY-MM-DDRequired
supplier
stringnull
Server default: null
Optional
supplier_address
stringnull
Server default: null
Optional
linesRequired

ReceiptSheetLine

FieldTypeRequired
nointeger · i32Required
item_codestringRequired
item_namestringRequired
unitstringRequired
quantityQtyRequired
purchase_price
Moneynull
Server default: null
Optional
purchase_valueMoneyRequired
input_vat_unit
Moneynull
Server default: null
Optional
input_vatMoneyRequired
vat_ratestringRequired
sale_price
Moneynull
Server default: null
Optional
sale_valueMoneyRequired
vat_unit
Moneynull
Server default: null
Optional
vat_valueMoneyRequired

RetailBookHead

FieldTypeRequired
traderstringRequired
edb
stringnull
Server default: null
Optional
trader_address
stringnull
Server default: null
Optional
vat_number
stringnull
Server default: null
Optional
warehouse_idWarehouseIdRequired
warehouse_codestringRequired
warehouse_namestringRequired
warehouse_address
stringnull
Server default: null
Optional
yearinteger · i32Required

RetailRecordRow

FieldTypeRequired
nointeger · i32Required
book_datestring · YYYY-MM-DDRequired
doc_idStockDocIdRequired
doc_labelstringRequired
doc_namestringRequired
doc_datestring · YYYY-MM-DDRequired
counterparty
stringnull
Server default: null
Optional
purchaseMoneyRequired
saleMoneyRequired
balanceMoneyRequired

StockCard

FieldTypeRequired
warehouse_idWarehouseIdRequired
warehousestringRequired
retailbooleanRequired
item_idItemIdRequired
item_codestringRequired
item_namestringRequired
unitstringRequired
from
string · YYYY-MM-DDnull
Server default: null
Optional
to
string · YYYY-MM-DDnull
Server default: null
Optional
opening_qtyQtyRequired
opening_valueMoneyRequired
opening_saleMoneyRequired
movesRequired
closing_qtyQtyRequired
closing_valueMoneyRequired
closing_saleMoneyRequired

StockCardMove

FieldTypeRequired
doc_idStockDocIdRequired
kindStockDocKindRequired
numberstringRequired
datestring · YYYY-MM-DDRequired
quantityQtyRequired
valueMoneyRequired
sale_valueMoneyRequired
bal_qtyQtyRequired
bal_valueMoneyRequired
bal_saleMoneyRequired
avg_price
Moneynull
Server default: null
Optional
partner
stringnull
Server default: null
Optional
descriptionstringRequired

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

StockDocOverview

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
plan_error
stringnull
Optional
cancel_reason
stringnull
Optional
has_movesbooleanRequired
has_entrybooleanRequired
has_calcbooleanRequired
retailbooleanRequired

StockDocSummary

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

StockEntryLine

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

StockItemMap

FieldTypeRequired
idStockItemMapIdRequired
partner_idPartnerIdRequired
partner_codeinteger · i32Required
partnerstringRequired
supplier_keystringRequired
item_idItemIdRequired
item_codestringRequired
item_namestringRequired
unitstringRequired
factorstringRequired
activebooleanRequired
deactivated_reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

StockListRow

FieldTypeRequired
warehouse_idWarehouseIdRequired
warehousestringRequired
retailbooleanRequired
item_idItemIdRequired
item_codestringRequired
item_namestringRequired
unitstringRequired
quantityQtyRequired
valueMoneyRequired
sale_valueMoneyRequired
vat_valueMoneyRequired
avg_priceMoneyRequired

StockMove

FieldTypeRequired
line_nointeger · i32Required
warehousestringRequired
item_idItemIdRequired
quantityQtyRequired
valueMoneyRequired
sale_valueMoneyRequired
vat_valueMoneyRequired

StockParam

FieldTypeRequired
idinteger · i64Required
codestringRequired
item_id
ItemIdnull
Server default: null
Optional
item_code
stringnull
Server default: null
Optional
valid_fromstring · YYYY-MM-DDRequired
valuestringRequired
sourcestringRequired
reason
stringnull
Server default: null
Optional
created_atstring · ISO 8601Required
created_bystringRequired

StockPostResult

FieldTypeRequired
doc_idStockDocIdRequired
entry_id
integer · i64null
Server default: null
Optional
draft_id
integer · i64null
Server default: null
Optional

StockRecon

FieldTypeRequired
accountstringRequired
analyticsMoneyRequired
ledgerMoneyRequired
okbooleanRequired

Stocktake

FieldTypeRequired
idStocktakeIdRequired
warehouse_idWarehouseIdRequired
warehousestringRequired
take_datestring · YYYY-MM-DDRequired
descriptionstringRequired
lockedbooleanRequired
doc_idServer default: nullOptional
created_atstring · ISO 8601Required
created_bystringRequired
linesRequired

StocktakeCount

FieldTypeRequired
itemItemIdRequired
countedQtyRequired
value
Moneynull
Server default: null
Optional
sale_price
Moneynull
Server default: null
Optional
notestringServer default: ""Optional

StocktakeLine

FieldTypeRequired
item_idItemIdRequired
item_codestringRequired
item_namestringRequired
unitstringRequired
book_qtyQtyRequired
book_valueMoneyRequired
book_saleMoneyRequired
countedQtyRequired
count_value
Moneynull
Server default: null
Optional
sale_price
Moneynull
Server default: null
Optional
diff_qtyQtyRequired
outflow_qtyQtyRequired
allowance_pct
stringnull
Server default: null
Optional
allowance_qtyQtyRequired
is_counted
booleannull
Server default: null
Optional

StocktakeSummary

FieldTypeRequired
idStocktakeIdRequired
warehouse_idWarehouseIdRequired
warehousestringRequired
take_datestring · YYYY-MM-DDRequired
descriptionstringRequired
lockedbooleanRequired
doc_idServer default: nullOptional
created_atstring · ISO 8601Required
created_bystringRequired

StornoStockDoc

FieldTypeRequired
datestring · YYYY-MM-DDRequired
reasonstringRequired

Warehouse

FieldTypeRequired
idWarehouseIdRequired
codestringRequired
kindItemKindRequired
accountstringRequired
retailbooleanRequired
versioninteger · i32Required
namestringRequired
address
stringnull
Server default: null
Optional
activebooleanRequired
changed_atstring · ISO 8601Required
changed_bystringRequired

WarehouseChange

FieldTypeRequired
namestringRequired
activebooleanServer default: trueOptional
address
stringnull
Server default: null
Optional
reasonstringRequired

retail_book::BookQ

FieldTypeRequired
warehousestring · UUIDRequired
year
integer · i32null
Optional

stock::CardQ

FieldTypeRequired
summary_onlybooleanServer default: falseOptional
warehouseWarehouseIdRequired
itemItemIdRequired
from
string · YYYY-MM-DDnull
Optional
to
string · YYYY-MM-DDnull
Optional

stock::DateQ

FieldTypeRequired
date
string · YYYY-MM-DDnull
Optional

stock::ItemQuery

FieldTypeRequired
summary_onlybooleanServer default: falseOptional

stock::YearQ

FieldTypeRequired
year
integer · i32null
Optional