Guides
Guides to the F-sąskaita API: authentication, invoices, expenses, webhooks and the conventions every endpoint shares.
The Guides explain how to get things done with the F-sąskaita API, from the first authenticated request to verifying a webhook signature. Start with authentication, then pick the resource you work with.
Authentication
Create a Business token in the app, send it as a bearer token, and understand its scope and lifetime.
Invoices
The invoice model, invoice types, numbering and series, the create and update requests, and downloading the PDF.
Expenses
Record purchase documents with their file, update them, replace the file, and download the original.
Webhooks
Subscribe an HTTPS endpoint to invoice and expense events, verify the HMAC-SHA256 signature, and handle retries.
Conventions, errors and rate limits
Request and response formats, pagination, identifiers, dates and money, HTTP status codes, and the 60 requests per minute limit.
For every endpoint, field and response, see the Reference.
Integrating as an AI agent
Compact, agent-oriented description of the F-sąskaita API. Base URL, authentication, spec location, pagination, error handling and rules that prevent common mistakes.
Authentication
Create a Business token in the app, send it as a bearer token, and understand its scope and lifetime.