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. The UTC offset is ignored; the wall-clock date and time are compared. Required; its wall-clock value must not be later than that of "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. The UTC offset is ignored; the wall-clock date and time are compared. Required; its wall-clock value must not be earlier than that of "From".

Response

Success.

currencyIso
string
required

ISO code of the currency this row aggregates. Taken from "CurrencyIso" of "SalesInvoiceListItem"; 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.

documentCount
integer<int32>
required

Number of sales invoices dated within ["From", "To"] whose "CurrencyIso" matches this row, counted over the same invoice set whose amounts are summed into "TotalGrossAmount" and "TotalNetAmount".