Totals
Totals
Get aggregated purchase totals with year-over-year comparison
GET
Totals
Totals
Returns aggregated totals for purchases: total CO2e, total monetary amount (EUR), record count, and percentage change compared to the same period in the previous year. Supports the same filters as the list endpoint.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faQuery Parameters
Filter purchases on or after this date (ISO format
YYYY-MM-DD)Filter purchases on or before this date (ISO format
YYYY-MM-DD)Search by description or supplier name
Filter by status. Values:
active, error, in_progress, in_review, inactive, pendingFilter by calculation methodology. Values:
spend_based, supplier_specificFilter by expense classification. Values:
capex, opexFilter by file UUID. Use
00000000-0000-0000-0000-000000000000 for manually created records.Filter by supplier UUID
Filter by currency unit UUID
Filter records created on or after this date
Filter records created on or before this date
Filter by CO2e calculation statusAllowed values:
calculated, not_calculatedPer-column filters using the filter grammarExample:
quantity:gt100$co2e:bt[10,100]How to combine
filter_by clauses across fieldsAllowed values: any (OR), all (AND, default)Comma-separated fields whose same-field clauses combine with OR instead of AND
Response
Sum of CO2e (tCO2e) for all matching purchases
Sum of monetary amounts (EUR) for all matching purchases
Number of matching purchase records
Percentage change in CO2e vs the same period in the previous year.
null when no prior-year data exists.Percentage change in monetary amount vs the same period in the previous year.
null when no prior-year data exists.Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organizationRelated Endpoints
List Purchases
Browse purchases with filters and pagination
Bulk Delete by Filters
Delete all purchases matching filters

