Returns aggregated total values for general ledger entries based on the specified filters.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
Query parameters
-
Journal entry ID filter.
Multi-value supported. Example: value1;value2 -
Entry date filter.
Supports 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.
Also used to derive the underlying start/end date range in advanced ledger mode. - Range (
-
Journal entry type filter
Values are
OPENING,MANUAL,PURCHASE_INVOICE,SALES_INVOICE,SALARY_SLIP,STOCK,CLOSING,SYSTEM,SYSTEM_FX,SYSTEM_PFUV, orFIXED_ASSET. -
Chart of accounts ID filter.
Multi-value supported. Example: value1;value2 -
Account name filter
-
Entry description filter
-
Whether the entry has warnings
-
Foreign currency code filter
-
Foreign debit 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 (
-
Foreign credit 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 (
-
Foreign total (debit + credit) 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 (
-
Company currency debit 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 (
-
Company currency credit 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 (
-
Company currency total (debit + credit) 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 (
-
Contact ID filter. Required to enable advanced ledger mode.
Multi-value supported. Example: value1;value2 -
Department name filter. Advanced ledger only
-
Contact name filter. Advanced ledger only
-
Article name filter. Advanced ledger only
-
Order name filter. Advanced ledger only
-
VAT code name filter. Advanced ledger only
curl \
--request GET 'https://wyzio.app/api-v1/ledger/total'
{
"id": 42,
"organizationId": 42,
"entryId": 42,
"entryDate": "2026-05-04T09:42:00Z",
"sortOrder": 42,
"entryType": "OPENING",
"accountId": 42,
"foreignCurrencyCode": "string",
"foreignDebit": 42.0,
"foreignCredit": 42.0,
"foreignTotal": 42.0,
"companyDebit": 42.0,
"companyCredit": 42.0,
"companyTotal": 42.0,
"account": {
"en": "string",
"fr": "string",
"de": "string",
"it": "string"
},
"description": "string",
"warnings": "string",
"hasWarnings": true,
"tenantId": 42
}