Skip to main content

Cash Book in REST API

How to generate a cash book via API?

Written by Petr Pech

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

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

Sample base URL for generating the cash book:

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

Using the URL above, an empty cash book will be generated, because it lacks the parameters by which we specify the cash register and the date range.

Required URL parameters are:

  • pokladna - kod from the cash register evidence

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

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

The resulting URL may therefore look as follows:

https://demo.flexibee.eu/v2/c/demo/pokladni-kniha.pdf?pokladna=POKLADNA+KČ&datVystOd=24.6.2020&datVystDo=24.6.2021

In the parameters, we passed the cash register code "POKLADNA+KČ" (must correspond to a valid value in the cash register 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?