Returns aggregated totals calculated from order expenses matching the specified filters.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Query parameters
-
Order ID filter.
Multi-value supported. Example: value1;value2 -
Expense date filterSupports comparison operators:
- Range (
..) - Greater than (
>) - Greater than or equal (
>=) - Less than (
<) - Less than or equal (
<=) - Not equal (
<>)
Examples:
- 01/01/2026..31/12/2026
- >=01/01/2026
- <=01/01/2026
- <>01/01/2026
Use <>01/01/2026 to return only records where the selected date is not equal to the filter date.
- Range (
-
Supplier name filter
-
Reference filter
-
Currency code filter
-
Expense amount filterSupports comparison operators:
- Range (
..) - Greater than (
>) - Greater than or equal (
>=) - Less than (
<) - Less than or equal (
<=) - Not equal (
<>)
Examples:
- <=100.00
- >=100.00
- <>100.00
- 100.00..200.00
Use
<>0to return only records where the selected amount is not equal to zero. - Range (
-
Whether the expense is rebillable to the client
-
Purchase invoice ID filter.
Multi-value supported. Example: value1;value2 -
Sales invoice ID filter.
Multi-value supported. Example: value1;value2 -
Rebill date filterSupports comparison operators:
- Range (
..) - Greater than (
>) - Greater than or equal (
>=) - Less than (
<) - Less than or equal (
<=) - Not equal (
<>)
Examples:
- 01/01/2026..31/12/2026
- >=01/01/2026
- <=01/01/2026
- <>01/01/2026
Use <>01/01/2026 to return only records where the selected date is not equal to the filter date.
- Range (
-
Invoice number filter
curl \
--request GET 'https://wyzio.app/api-v1/orders/expenses/total'
{
"id": 42,
"orderId": 42,
"date": "2026-05-04T09:42:00Z",
"supplier": "string",
"reference": "string",
"currency": "string",
"amount": 42.0,
"reBillable": true,
"purchaseInvoiceId": 42,
"salesInvoiceId": 42,
"reBillDate": "2026-05-04T09:42:00Z",
"invoiceNumber": "string",
"organizationId": 42,
"purchaseInvoiceCreatorContactId": 42,
"salesInvoiceCreatorContactId": 42
}