Skip to main content
GET
Query Sales Invoice Totals

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-tenant-id
string<uuid>
required

The tenant ID for the target ERP instance.

Query Parameters

from
string<date-time>
required

Inclusive start of the date range that sales invoices are aggregated over: only invoices with SalesInvoiceDate at or after this value are included. Required; must not be later than To.

to
string<date-time>
required

Inclusive end of the date range that sales invoices are aggregated over: only invoices with SalesInvoiceDate at or before this value are included. Required; must not be earlier than From.

Response

Success.

currencyIso
string
required

ISO code of the currency this row aggregates. Sourced from SalesInvoiceListItem.CurrencyIso; one row per distinct value found among the invoices in range.

totalGrossAmount
number<decimal>
required

Sum of TotalGrossAmount (see SalesInvoiceListItem) across every sales invoice dated within [From, To] whose CurrencyIso matches this row. The per-invoice values are summed unrounded; no per-invoice rounding is applied before summation.

totalNetAmount
number<decimal>
required

Sum of TotalNetAmount (see SalesInvoiceListItem) across every sales invoice dated within [From, To] whose CurrencyIso matches this row. Summed unrounded, the same way as TotalGrossAmount.

totalVatAmount
number<decimal>
required

TotalGrossAmount minus TotalNetAmount, computed once per currency group after both sums are formed. This is not the sum of the per-invoice VAT amounts, and neither TotalGrossAmount nor TotalNetAmount is rounded per invoice before the subtraction.