honzajavorek/fiobank

lastStatement

PSLLSP opened this issue · 0 comments

There is one more REST method that it is not documented in the official API documentation but it is used by official java application 'api-plus';

'lastStatement' method returns the the last statement sequence number of the year.
Examples:
https://www.fio.cz/ib_api/rest/lastStatement/{TOKEN}/statement?year=2017
2017,12
https://www.fio.cz/ib_api/rest/lastStatement/{TOKEN}/statement
2018,4
https://www.fio.cz/ib_api/rest/lastStatement/{TOKEN}/statement?year=2000
null,null
https://www.fio.cz/ib_api/rest/lastStatement/{TOKEN}/statement?year=2020
null,null

Sequence numbers are used in the following REST call:
https://www.fio.cz/ib_api/rest/by-id/{TOKEN}/{YEAR}/{SEQ}/transactions.{FORMAT}"