Skip to main content

Bank Book in the REST API

How to generate a cash book via the API?

Written by Petr Pech

Using the ABRA Flexi REST API, you can generate a bank book. Just like in the application, the output is a PDF report.

Exporting the bank book is only available in PDF format. We use the HTTP method GET for this.


Basic URL address

GET https://demo.flexibee.eu/c/demo/bankovni-kniha.pdf

Using the URL address above will generate an empty bank book. This is because it is missing the parameters used to specify the bank account and the date range.

⚠️ Any extension other than .pdf does not return data — for example, bankovni-kniha.xml responds with status 200, but returns the application's HTML page instead of data.


Parameters

Parameter

Meaning

banka

kod from the bankovni-ucet record. It must correspond to a valid value in the bank account list.

datVystOd

Issue date from, in the format d.M.yyyy.

datVystDo

Issue date to, in the format d.M.yyyy.

🚨 The date must be in the format d.M.yyyy, for example 24.6.2020. The usual notation 2020-06-24 will result in an error 400 here.


Example call

GET https://demo.flexibee.eu/c/demo/bankovni-kniha.pdf
?banka=BANKOVNÍ+ÚČET
&datVystOd=24.6.2020
&datVystDo=24.6.2021

In the parameters, we passed the bank account code "BANK ACCOUNT" (the space is written in the URL as +) and the issue date from June 24, 2020 to June 24, 2021. The result of this call is the following PDF:


Related

Did this answer your question?