# Účtovisko > Účtovisko (https://uctovisko.sk) je slovenský online softvér na fakturáciu, správu dokladov a cestovné príkazy pre podnikateľov (SZČO, s.r.o.) a ich účtovníkov. Plán Zadarmo stojí 0 € bez časového obmedzenia. ## Pre koho a prečo - Podnikatelia a SZČO: faktúry, zálohové faktúry, dobropisy, cenové ponuky, QR kód na platbu, odoslanie e-mailom s PDF. https://uctovisko.sk/podnikatelia - Doklady: bloček z e-kasy sa načíta z QR kódu, údaje sa vyťažia z nahraných faktúr, štítky a vyhľadávanie. https://uctovisko.sk/podnikatelia/doklady - Cestovné príkazy (plán Exkluzív): príkaz a vyúčtovanie, diéty sa vypočítajú samy, kniha jázd a vozidlá. https://uctovisko.sk/podnikatelia/cestovne-prikazy - E-faktúra (Peppol): povinná od 1. 1. 2027 pre platiteľov DPH; odosielanie aj prijímanie je v každom pláne. https://uctovisko.sk/efaktura-peppol - Účtovníci: pozvanie do firmy je v každom pláne (aj Zadarmo), export do Pohody, Omegy, MRP, CSV a Excelu. https://uctovisko.sk/uctovnici - Vývojári: REST API s API kľúčmi (nižšie). https://uctovisko.sk/vyvojari ## Cenník a bezplatné nástroje - Cenník: https://uctovisko.sk/pricing. Plán Zadarmo 0 € (10 vystavených dokladov mesačne), plán Exkluzív s cestovnými príkazmi a skladom má 14 dní zdarma. - Bezplatné aplikácie bez registrácie: DPH kalkulačka, tvorca faktúr (PDF), generátor podpisu, pečiatka. https://uctovisko.sk/apps/dphcalculator, /apps/signature, /apps/stamp --- # Účtovisko API (pre vývojárov) > REST API for Slovak invoicing and bookkeeping documents (invoices, eKasa receipts, credit notes, advance invoices, price offers, income documents). Authenticate with an account API key as an HTTP bearer token. Every JSON response is the envelope `{ s: "ok" | "error", d: , t: }` — branch on `s`, never on the presence of `d`. Base URL `https://api.uctovisko.sk/v1`. Read the rules below before composing a request: the envelope, the double-wrapped list payload (`d.data.list`) and the mixed number/string typing of money are the three things that break naive clients. ## Machine-readable contract - [OpenAPI 3 specification](https://api.uctovisko.sk/v1/openapi.json): complete request and response schemas for every endpoint. Fetch this if you need exact property types. - [Full agent reference](https://uctovisko.sk/llms-full.txt): this file plus a per-endpoint parameter and property reference and worked curl examples. ## Authentication - Send `Authorization: Bearer uk_live_XXXXXXXXXXXXXXXX_...` on every request. Keys are created per account in Nastavenia → API; the secret is shown once at creation. - A key is bound to one account. Using it against a different `accountId` in the path is `403 insufficient_permissions_api_key`, not a 404. - Keys carry a permission bitfield, so a valid key can still be refused for one operation. There is no OAuth flow and no refresh — treat the key as a long-lived server-side secret. ## Response envelope - Success: `{ "s": "ok", "d": , "t": "2026-10-04T09:21:44.512Z" }`. - Failure: `{ "s": "error", "d": "invalid_api_key", "t": … }` — `d` is a single lowercase snake_case alias, never a message object or a stack trace. - Branch on `s`. `d` is populated on both branches, so its presence proves nothing. - Creates answer **200**, not 201. - Exceptions: PDF/ZIP/XML downloads return a binary body with no envelope, and answer **202** with a non-envelope body while a PDF is still rendering (retry shortly). `POST …/{id}/send` answers `{ s, t }` with no `d` at all. - Error aliases you must handle: `invalid_api_key`, `api_key_expired`, `unauthorized` (401); `insufficient_permissions_api_key` (403); `not_found` (404); `invalid_ids`, `no_ids_provided`, `email_missing` (422); `internal_server_error` (500). Treat an unknown alias as a generic failure of that HTTP class. ## Pagination and filtering - Document lists wrap the page one level deeper than usual: `{ "s": "ok", "d": { "data": { "list": [...], "total": 128, "nextCursor": "1042" } }, "t": … }`. Read `d.data.list`, not `d.list`. - Query parameters: `page` (zero-based), `pageSize` (default 10, hard cap 500), `cursor`, `sort`, `filter`, `ids`. - An unusable `page`/`pageSize` value is treated as **absent** and the default applies — it is not a 4xx. When `cursor` is set, `page` is ignored; prefer cursor paging for a stable walk. - `index=true` adds `count` and `amount` breakdowns keyed by status. - One resource differs: **receipts** return `d.data.stats` (aggregates) instead of `nextCursor`. ## Types that commonly break clients - Document money and numbers (`totalPrice`, `number`, `invoicePrice`) are Postgres `decimal` columns and arrive as **strings** (`"724.80"`). Use a decimal library, not `parseFloat`, for arithmetic. - Money inside the `fields` line-item array, and every receipt amount, arrives as a JSON **number**. Both forms are real; handle both. - `vat` on a line item is a percentage (`20` = 20 %), not a multiplier and not an amount. - Dates are ISO-8601 strings. Ids are integers unique per document type — invoice `12` and receipt `12` are unrelated. ## Webhooks - Outgoing signed webhooks (HMAC-SHA256, retries, `X-Webhook-Id` dedupe, Node.js and PHP verification, test vector): full reference in the Webhooks section of [llms-full.txt](https://uctovisko.sk/llms-full.txt) and at https://uctovisko.sk/docs/api#/webhooky. ## Rate limiting - `receipt_find` is limited to **20 requests per 60 s** (it calls the Finančná správa eKasa service) and answers 429 above that. - Other document endpoints have no per-route limiter today. That is the current implementation, not a guarantee — implement backoff on 429 and 5xx now, because adding a limiter is an additive change inside `v1`. ## Versioning - `/v1` is the stable prefix; unprefixed paths exist for backwards compatibility. - Additive changes (new endpoint, new optional property, new enum value) ship inside `v1` without notice. **Ignore properties you do not recognise** rather than failing on them. - Removals and semantic changes get a deprecation window and a new major prefix. - [Committed snapshot](https://api.uctovisko.sk/v1/openapi.json) is the contract of record; a diff in it is the signal that the public surface changed. ## Invoices - `GET /account/{accountId}/invoice` — List invoices (`invoice_list`) - `POST /account/{accountId}/invoice` — Create an invoice (`invoice_create`) - `DELETE /account/{accountId}/invoice` — Archive or purge invoices (`invoice_delete`) - `POST /account/{accountId}/invoice/import` — Import invoices from uploaded files (`invoice_import`) - `POST /account/{accountId}/invoice/import/creditnote` — Build a credit note draft from invoice data (`invoice_preview_creditnote`) - `GET /account/{accountId}/invoice/latestNumber` — Get the highest invoice number in use (`invoice_latest_number`) - `GET /account/{accountId}/invoice/summary` — Summarise invoices (`invoice_summary`) - `GET /account/{accountId}/invoice/{id}` — Get one invoice (`invoice_get`) - `PUT /account/{accountId}/invoice/{id}` — Update an invoice (`invoice_update`) - `GET /account/{accountId}/invoice/{id}/pdf` — Download the invoice PDF (`invoice_pdf`) - `POST /account/{accountId}/invoice/{id}/send` — E-mail the invoice (`invoice_send`) - `POST /account/{accountId}/invoice/{id}/peppol/send` — Send the invoice over eFaktúra (Peppol) (`invoice_send_peppol`) - `PUT /account/{accountId}/invoice/{id}/status` — Set the invoice status (`invoice_set_status`) - `GET /account/{accountId}/invoice/{id}/details` — Get selected invoice properties (`invoice_get_details`) - `GET /account/{accountId}/invoice/{id}/payments` — List payments of an invoice (`invoice_payment_list`) - `POST /account/{accountId}/invoice/{id}/payments` — Record a payment on an invoice (`invoice_payment_create`) - `PATCH /account/{accountId}/invoice/{id}/payments/{paymentId}` — Edit a payment of an invoice (`invoice_payment_update`) - `DELETE /account/{accountId}/invoice/{id}/payments/{paymentId}` — Delete a payment of an invoice (`invoice_payment_delete`) ## Credit notes - `GET /account/{accountId}/creditnote` — List credit notes (`creditnote_list`) - `POST /account/{accountId}/creditnote` — Create a credit note (`creditnote_create`) - `DELETE /account/{accountId}/creditnote` — Archive or purge credit notes (`creditnote_delete`) - `GET /account/{accountId}/creditnote/latestNumber` — Get the highest credit note number in use (`creditnote_latest_number`) - `GET /account/{accountId}/creditnote/{id}` — Get one credit note (`creditnote_get`) - `PUT /account/{accountId}/creditnote/{id}` — Update a credit note (`creditnote_update`) - `GET /account/{accountId}/creditnote/{id}/pdf` — Download the credit note PDF (`creditnote_pdf`) - `POST /account/{accountId}/creditnote/{id}/send` — E-mail the credit note (`creditnote_send`) - `PUT /account/{accountId}/creditnote/{id}/status` — Set the credit note status (`creditnote_set_status`) ## Price offers - `GET /account/{accountId}/priceoffer` — List price offers (`priceoffer_list`) - `POST /account/{accountId}/priceoffer` — Create a price offer (`priceoffer_create`) - `DELETE /account/{accountId}/priceoffer` — Archive or purge price offers (`priceoffer_delete`) - `GET /account/{accountId}/priceoffer/latestNumber` — Get the highest price offer number in use (`priceoffer_latest_number`) - `GET /account/{accountId}/priceoffer/{id}` — Get one price offer (`priceoffer_get`) - `PUT /account/{accountId}/priceoffer/{id}` — Update a price offer (`priceoffer_update`) - `GET /account/{accountId}/priceoffer/{id}/pdf` — Download the price offer PDF (`priceoffer_pdf`) - `POST /account/{accountId}/priceoffer/{id}/send` — E-mail the price offer (`priceoffer_send`) - `PUT /account/{accountId}/priceoffer/{id}/status` — Set the price offer status (`priceoffer_set_status`) ## Income documents - `GET /account/{accountId}/incomeDocument` — List income documents (`income_document_list`) - `POST /account/{accountId}/incomeDocument` — Create an income document (`income_document_create`) - `DELETE /account/{accountId}/incomeDocument` — Archive or purge income documents (`income_document_delete`) - `GET /account/{accountId}/incomeDocument/latestNumber` — Get the highest income document number in use (`income_document_latest_number`) - `GET /account/{accountId}/incomeDocument/{id}` — Get one income document (`income_document_get`) - `PUT /account/{accountId}/incomeDocument/{id}` — Update an income document (`income_document_update`) - `GET /account/{accountId}/incomeDocument/{id}/pdf` — Download the income document PDF (`income_document_pdf`) - `POST /account/{accountId}/incomeDocument/{id}/send` — E-mail the income document (`income_document_send`) - `PUT /account/{accountId}/incomeDocument/{id}/status` — Set the income document status (`income_document_set_status`) ## Advance invoices - `GET /account/{accountId}/advanceInvoice` — List advance invoices (`advance_invoice_list`) - `POST /account/{accountId}/advanceInvoice` — Create an advance invoice (`advance_invoice_create`) - `DELETE /account/{accountId}/advanceInvoice` — Archive or purge advance invoices (`advance_invoice_delete`) - `GET /account/{accountId}/advanceInvoice/latestNumber` — Get the highest advance invoice number in use (`advance_invoice_latest_number`) - `GET /account/{accountId}/advanceInvoice/{id}` — Get one advance invoice (`advance_invoice_get`) - `PUT /account/{accountId}/advanceInvoice/{id}` — Update an advance invoice (`advance_invoice_update`) - `GET /account/{accountId}/advanceInvoice/{id}/pdf` — Download the advance invoice PDF (`advance_invoice_pdf`) - `POST /account/{accountId}/advanceInvoice/{id}/send` — E-mail the advance invoice (`advance_invoice_send`) - `PUT /account/{accountId}/advanceInvoice/{id}/status` — Set the advance invoice status (`advance_invoice_set_status`) - `GET /account/{accountId}/advanceInvoice/{id}/payments` — List payments of an advance invoice (`advance_invoice_payment_list`) - `POST /account/{accountId}/advanceInvoice/{id}/payments` — Record a payment on an advance invoice (`advance_invoice_payment_create`) - `PATCH /account/{accountId}/advanceInvoice/{id}/payments/{paymentId}` — Edit a payment of an advance invoice (`advance_invoice_payment_update`) - `DELETE /account/{accountId}/advanceInvoice/{id}/payments/{paymentId}` — Delete a payment of an advance invoice (`advance_invoice_payment_delete`) ## Receipts - `GET /account/{accountId}/receipt` — List receipts (`receipt_list`) - `POST /account/{accountId}/receipt` — Store a receipt (`receipt_create`) - `PUT /account/{accountId}/receipt/{receiptId}` — Update a receipt (`receipt_update`) - `DELETE /account/{accountId}/receipt/{receiptId}` — Archive or purge a receipt (`receipt_delete`) - `GET /account/{accountId}/receipt/export` — Export receipts as ZIP or XML (`receipt_export`) - `GET /account/{accountId}/receipt/find/{receiptId}` — Look a receipt up in eKasa (`receipt_find`) - `GET /account/{accountId}/receipt/{id}` — Get one receipt (`receipt_get`)