Print reports available in the application can also be retrieved via the REST API, typically for both a specific record and an entire list.
Constructing the URL
/c/<identifikátor firmy>/<evidence>.pdf
/c/<identifikátor firmy>/<evidence>/<ID záznamu>.pdf
XLSX
/c/<identifikátor firmy>/<evidence>.xls
/c/<identifikátor firmy>/<evidence>/<ID záznamu>.xls
A specific report can be selected using the report-name parameter. If needed, you can also specify the report language using the report-lang parameter. Supported languages are cs, sk, en, and de.
It is also possible to generate an electronically signed PDF. This feature has several limitations: it only works with certificates stored in ABRA Flexi, and exactly one certificate may be stored at a time. The report-sign=true parameter must be included in the URL. In the future, it will be possible to select which of the stored certificates to use.
Example URL
/c/firma/faktura-vydana/1.pdf?report-name=dodaciList
/c/firma/faktura-vydana/1.pdf?report-name=dodaciList&report-lang=en
/c/firma/faktura-vydana/1.pdf?report-name=dodaciList&report-sign=true
XLSX
/c/firma/faktura-vydana/1.xls?report-name=dodaciList
/c/firma/faktura-vydana/1.xls?report-name=dodaciList&report-lang=en
/c/firma/faktura-vydana/1.xls?report-name=dodaciList&report-sign=true
An overview of supported reports for a given record type can be found at /c/<identifikátor firmy>/<evidence>/reports (e.g. for invoices). The output can also be exported in XML or JSON format.
The output contains the following information:
reportId: the report identifier. Specified as thereport-nameparameter when making a call.reportName: the user-facing name. Displayed in the current language (based on browser/agent settings).isDefault: is this the default report? i.e. the one selected when the quick-action button is pressed.predvybranyPocet: some reports are list-based, others print a specific record. Takes the values1andN.rozsiritelna: does an extended version of this print report exist?sumovana: does the print report support summarization?
ISDOC PDF Format
ABRA Flexi supports electronic invoices in the ISDOC.PDF format (an ISDOC document embedded in a PDF file):
All PDF outputs of invoices that are not list-type reports include an embedded ISDOC by default.
A PDF file with an embedded ISDOC can be used to import invoices from ISDOC.
