This GET method allows you to retrieve a list of ledgeraccounts (Dutch: grootboekrekeningen) from the user’s administration.
- Request
- Response
Parameters
FiscalYear
Integer
Details
Optional parameter to filter on fiscal year. If omitted we will return the ledgeraccounts for the latest fiscal year.
LedgerType
String
Details
Optional parameter to filter on ledgeraccounts. Possible values: BalanceSheet, IncomeStatement.
CURL Example
1 |
curl -X GET -H "Content-Type: application/json" -H "ApiKey: b7d343Bnhd436f3ec3bd3504582" -H "Username: john@doe.nl" "https://rest-api.silvasoft.nl/rest/listledgeraccounts/" |
Parameters
Number
String
More info
Ledgeraccount number
Name
String
More info
Ledgeraccount name
FiscalYear
Boolean (true|false)
More info
The fiscal year this ledgeraccount belongs to
LedgerType
Float
More info
Possible values: BalanceSheet and IncomeStatement
Countrycode
String
More info
Either NL or BE depending on the country of the users administration
DebetOrCredit
String
More info
For balance ledgeraccounts: debet = assets, credit = liabilities. For income statement ledger accounts: debet = costs, credit = revenue
Response JSON Example
The response order can vary from the parameter order above
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
[ { "FiscalYear": "2022", "Number": "4400", "DebetOrCredit": "debet", "Countrycode": "NL", "Name": "Autokosten", "LedgerType": "IncomeStatement" }, { "FiscalYear": "2022", "Number": "4520", "DebetOrCredit": "debet", "Countrycode": "NL", "Name": "Marketingwerkzaamheden vanuit holding", "LedgerType": "IncomeStatement" }, { "FiscalYear": "2022", "Number": "4490", "DebetOrCredit": "debet", "Countrycode": "NL", "Name": "Prive gebruik auto", "LedgerType": "IncomeStatement" } ] |