Skip to main content

Summation

Summary of Relevant Records

Written by Lenka Haringerová

If you need to get basic summations for a given record, use summation:

/c/<identifikátor firmy>/<evidence>/$sum

It is also possible to combine filtering and summation:

/c/<identifikátor firmy>/<evidence>/(<filtr>)/$sum

Summation can be exported to these formats:

  • XML: /c/<identifikátor firmy>/<evidence>/$sum.xml

  • JSON: /c/<identifikátor firmy>/<evidence>/$sum.json

⚠️ Summation can only be performed on documents (invoices, orders, inquiries, cash movements, stock movements, …). For other records, it returns 404.


Advanced parameters

Summations can include advanced parameters. Currently, they can only be used with the account turnover record (obrat), where their use is, in fact, mandatory.

Parameter

Meaning

Example

period

The period for which the summation is calculated

period=(rokMesic,2026-01-01,2026-12-31)

fields

Which values are summed

fields=obrDal,obrMd

group-by

How the result is grouped

group-by=rokMesic or group-by=quarter(rokMesic)

The resulting URL address might look like this, for example:

/c/<identifikátor firmy>/obrat/$sum.xml?period=(rokMesic,2026-01-01,2026-12-31)&fields=obrDal,obrMd&group-by=rokMesic

ℹ️ Calling /obrat/$sum without these parameters will result in an error 400 with the message "Summation without parameters is not supported for the turnover record."

Did this answer your question?