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.xmlJSON:
/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 |
| The period for which the summation is calculated |
|
| Which values are summed |
|
| How the result is grouped |
|
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."
