Skip to main content

Bank Ledger in REST API

How to generate a bank book via API?

Written by Petr Pech

Using the REST API of ABRA Flexi, it is possible to generate a bank book. As in the application, the output is a PDF report.

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

Sample base URL for generating the bank book:

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

Using the URL above, an empty bank book will be generated. This is because it lacks the parameters by which we specify the bank account and the date range.

Required URL parameters are:

  • banka - kod from the bankovni-ucet register

  • datVystOd - date in the format d.M.yyyy

  • datVystDo - date in the format d.M.yyyy

The resulting URL may look as follows:

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

In the parameters, we have passed the bank account code "BANKOVNÍ+ÚČET" (this must correspond to a valid value in the bank account code list) and the issue date from "24.6.2020" to the issue date "24.6.2021".

The result of the GET call to the URL is then, for example, the following PDF:

Did this answer your question?