Just as in the application, it is also possible to look up the complete history of selected records via the API.
In selected agendas, changes made to records and their individual fields are logged in a so-called journal. Through the record change overview, you can view the change history and analyze it.
The service is available at: /c/{firma}/{evidence}/{id}/zmeny.json
{firma} is the database identifier of the company,
{evidence} is the agenda,
{id} is the record identifier.
Instructions on how to construct the URL can be found in the guide for building a URL address.
Changes are stored in the journal for most agendas, but not all. The sub-agenda /zmeny is available only for some of them (just as it is in the application).
These are the agendas:
Issued invoices, received invoices
Bank, cash register, and internal documents
Received and issued orders
Goods receipts / goods issues
Address book
Price list
Assets
Price levels
Jobs
Document types
Usage example:
Sample output:
{
"winstrom":{
"@version":"1.0",
"zmeny":[
{
"hlavicka_polozka":"Hlavička dok.",
"nazev":"",
"poradi_polozky":"",
"sloupec":"juhsum",
"puvodni_hodnota":"0.00",
"zmenena_na":"2500.00",
"uzivatelem":"knovak",
"operace":"změna",
"datcas":"2018.01.11 - 13:13:43"
},
{
"hlavicka_polozka":"Hlavička dok.",
"nazev":"",
"poradi_polozky":"",
"sloupec":"stavuhrk",
"puvodni_hodnota":"",
"zmenena_na":"stavUhr.uhrazeno",
"uzivatelem":"knovak",
"operace":"změna",
"datcas":"2018.01.11 - 13:13:43"
}
]
}
}