Skip to navigation

Tax/levy/VAT forecast for the workspace

View as Markdown

Aggregates the current calendar year’s issued invoices (net income) and expenses (totals), takes the VAT of the period filed at the next VAT deadline (the same figures as the web “DPH za obdobie” page), reads the workspace VAT status, and returns an estimated liability for both expense methods (flat-rate vs actual) with upcoming deadlines.

The forecast is built on Slovak SZČO rules (personal income tax + odvody), so it only applies to Slovak self-employed workspaces (entrepreneur legal form). Everything else — s.r.o. / double-entry, non-Slovak countries, or an unknown legal form — gets a minimal payload with applicable: false and an entity_type when one can be named — clients should render an explicit “not applicable” state instead of the forecast.

Authentication

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

Lucanto API key. Two prefixes:

  • lct_pat_<random><checksum> — personal access token (owner: User)
  • lct_live_<random><checksum> — workspace token, live data

Issue keys at /settings/api_keys (personal) or /:workspace_id/settings/api_keys (workspace). Plaintext token is shown once and never again.

Path parameters

workspace_idlongRequired>=1
Workspace ID. The numeric ID shown in your URLs.

Response

OK
applicableboolean

True only for a Slovak SZČO workspace (entrepreneur legal form, non-corporate accounting). When false, only applicable/entity_type/year/currency/rate_band/estimate are present.

entity_typeenum or null

Which tax regime the workspace falls under. self_employed = Slovak SZČO (the only applicable case), corporate = s.r.o. / double-entry accounting, null = the legal form doesn’t say (e.g. the DEFAULT fallback or a non-Slovak country).

Allowed values:
yearinteger

The calendar year of the forecast: the year of the workspace’s local day (its time zone) by default, so it turns over at local midnight on 1 January, not UTC midnight.

currencystring
estimateboolean
vatobjectOptional
incomestringOptional

Net income of the issued invoices of calendar year year (by supply date, else issue date) in currency (the workspace currency). An invoice in another currency is converted with its stored rate only when its base currency (its bank account’s, else the workspace’s) is currency and the rate is not exactly 1; otherwise with the ECB rate of its supply date (else issue date), or of the nearest available day; a future date takes today’s rate. Invoices with no rate are left out and counted in unconvertible_invoice_count (decimal).

invoice_countintegerOptional

Every issued invoice of calendar year year, convertible or not.

unconvertible_invoice_countintegerOptional

Invoices of calendar year year with no exchange rate to currency; left out of income rather than summed in a foreign currency.

expense_countintegerOptional

Every expense of calendar year year (by supply date, else issue date), convertible or not; rejected expenses are left out.

unconvertible_expense_countintegerOptional

Expenses of calendar year year with no exchange rate to currency; left out of tracked_expenses rather than summed in a foreign currency. Rejected expenses are left out of this count too.

tracked_expensesstringOptional

Net total of the expenses of calendar year year (by supply date, else issue date) in currency; rejected expenses are left out. Converted by the same rules as income: the ECB rate is the one of the expense’s supply date (else issue date). Expenses with no rate are left out and counted in unconvertible_expense_count (decimal).

vat_balanceobjectOptional

For the period filed at the next VAT deadline. Absent for a non-payer and for a § 7/§ 7a registrant.

recommended_methodenumOptional

The cheaper AVAILABLE method; never flat_rate while scenarios.flat_rate.available is false.

Allowed values:
scenariosobjectOptional
deadlineslist of objectsOptional
rate_bandobject or nullOptional

The corporate income tax rate band (§ 15 písm. b) zákona č. 595/2003 Z. z.) for a Slovak company (s.r.o., a.s., družstvo) — present on both the applicable and the not-applicable payload, null for everyone else (the self-employed included). Additive; no other key depends on it.

Errors

401
Unauthorized Error
404
Not Found Error
429
Too Many Requests Error