Skip to main content

Loading Bank Statements

How to load bank statements in REST API?

Written by Lenka Haringerová

Loading Downloaded Statements

Bank statements can be loaded with a simple request via the REST API:

the statement file must be sent using the PUT or POST method to the URL /c/{firma}/bankovni-ucet/{id}/nacteni-vypisu.

The bank account must have the relevant electronic banking properties configured (statement format, etc.). For more information on the configuration, please refer to our documentation for the desktop and web application.

If the statement is loaded successfully, the response is 200. The response body may contain information that some documents have already been loaded:

Výpis 223 pro účet 0000001000 - Načítání proběhlo úspěšně. Počet položek 6 položka s popisem POPLATEK - Tento doklad byl již načten. položka s popisem VYBER HOTOVOSTI - Tento doklad byl již načten.

In case of an error, the response is 400 and the response body contains a description of the problem. For example:

Výpis 223 pro účet 0000001000 - Pro tento výpis nebyl nalezen bankovní účet. Počet položek 6

Or in the case of incorrect configuration:

U bankovního účtu není definován formát elektronického výpisu.

The response body, if present, is currently always plain text, even if you request XML or JSON. This issue will be fixed in a future update.

Loading Statements Online

The REST API can also be used to trigger online statement retrieval. Online retrieval refers to loading statements using a token from FIO Bank or from Finbricks.

To initiate the process, a request must be sent using the PUT or POST method to the URL /c/{firma}/banka/nacteni-vypisu-online.

The bank account for which the statements are to be downloaded must be correctly configured and the bank must support online statements.

Did this answer your question?