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 -
kodfrom the cash register evidencedatVystOd - date in the format
d.M.yyyydatVystDo - 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:

