If you need to retrieve basic summations for a given record type, use the summation:
/c/<identifikátor firmy>/<evidence>/$sum
It is also possible to combine filtering and summation:
/c/<identifikátor firmy>/<evidence>/(<filtr>)/$sum
Summations can be exported in the following formats:
XML:
/c/<identifikátor firmy>/<evidence>/$sum.xmlJSON:
/c/<identifikátor firmy>/<evidence>/$sum.json
Note:
Summations can only be performed on documents (invoices, orders, inquiries, cash movements, warehouse movements, …).
Summations can include advanced parameters (currently applicable only to account turnovers) that must be used with certain agendas.
Examples include:
period: (rokMesic,2020-01-01,2020-12-31) – the time period to cover
fields: obrDal,obrMd – which fields to summarize
group-by: rokMesic, quarter(rokMesic) – how to group the results
The resulting URL might look like this, for example:
$sum.xml?period=(rokMesic,2020-01-01,2020-12-31)&fields=obrDal,obrMd&group-by=rokMesic
