A ledger account (grootboekrekening) in one financial year. The accounts are repeated per year: filter on financial_year.
Label in Fledge: Grootboekrekeningen
| URL | https://odata-api.fledge.nl/v2-8/GeneralLedgers |
|---|---|
| Key | administration_idfinancial_yeargeneral_ledger_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | FINANCIEELBEHEER |
| Scopes | FLEDGE_PORTAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/GeneralLedgers" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=financial_year,general_ledger_id,block,compile,cost_center_distribution_id' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/GeneralLedgers');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'financial_year,general_ledger_id,block,compile,cost_center_distribution_id');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/GeneralLedgers" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("financial_year,general_ledger_id,block,compile,cost_center_distribution_id"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
GET https://odata-api.fledge.nl/v2-8/GeneralLedgers(administration_id=1,financial_year={financial_year},general_ledger_id='{general_ledger_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
financial_yearkey | Int32 | Boekjaar |
general_ledger_idkey | String | Grootboekrekeningnummer The account number, a text such as '8000'. |
balance_compact_1_a | Int32 | Balansverdichting 1A nr: Balansverdichting 1 |
balance_compact_1_b | Int32 | Balansverdichting 1B nr: Balansverdichting 2 |
balance_compact_2_a | Int32 | Balansverdichting 2A nr: Balansverdichting 3 |
balance_compact_2_b | Int32 | Balansverdichting 2B nr: Balansverdichting 4 |
block | Boolean | Blokkeren Blocked; the Fledge API doesn't check it. |
cashflow_coefficient | Int32 | Cashflow kengetal |
cashflow_id | Int32 | Cashflownummer |
cashflow_sub_number | Int32 | Cashflowsubnummer |
currency_code_id | Int32 | Valuta |
collection_account | Boolean | Verzamelrekening ja/nee |
compile | Boolean | Verdichten Bookings on this account within one journal entry are merged into one line (verdichten). |
cost_center_distribution_id | Int32 | Verdeel oms nr: Verdeel oms nummer A cost centre split (CostCenterDivisionDescriptions), not a cost centre. The cost centres allowed on the account are the CostCenterDivisions rows with that id; all when it is empty or has no rows. |
cost_center_used | String | Kostenplaats gebruik V means a cost centre is required, O optional, N not allowed. |
cost_type_distribution_id | Int32 | Kostensoort verdeel oms nr |
cost_type_used | String | Kostensoort gebruik |
created_by | Int32 | user aanmaak |
creation_date | Date | Aanmaakdatum van de record |
description_1 | String | Omschrijving 1 grootboekrek The account name. |
description_2 | String | Omschrijving 2 grootboekrek |
final_balance_to_general_ledger | String | Eindsaldo naar GB rekening |
has_budget | Boolean | Heeft budget: Aangeven of er een pgbb record is voor de pgbo Whether a budget row exists; not kept up to date by the Fledge API. |
is_commercial_account | Boolean | Is FC rekening?: Is het een Fiscaal/Commercieel rekening |
modification_date | Date | Datum laatste wijziging van de record |
modified_by | Int32 | User L wijz |
none_mandatory_optional | String | Vaste aktiva |
permanence | String | Permanence |
pi_id | Int32 | Gekoppeld aan PI nummer |
project | String | Project/order |
reference_code | String | Referentiecode The RGS reference code. |
reserve_balance_compact_1_a | Int32 | Balansverdichting 1A nr: Balansverdichting 1A reserve indien rekening Balansrek is |
reserve_balance_compact_1_b | Int32 | Balansverdichting 1B nr: Balansverdichting 1B reserve indien rekening Balansrek is |
reserve_balance_compact_2_a | Int32 | Balansverdichting 2A nr: Balansverdichting 2A reserve indien rekening Balansrek is |
reserve_balance_compact_2_b | Int32 | Balansverdichting 2B nr: Balansverdichting 2B reserve indien rekening Balansrek is |
search_name | String | Zoeknaam: Zoeksleutel |
sub_type | Boolean | Rekeningsoort subsoort: bij balans: aktiva/passiva, bij verlies/winst: omzet/kosten For a profit and loss account, true for revenue (omzet) and false for costs. |
type | Boolean | Rekeningsoort: balans of verlies True for a balance sheet account (balans), false for a profit and loss account (winst en verlies). |
vat_id | Int32 | BTW nr: BTW nummer The account's default VAT code; the app proposes it for a cost booked on the account. |
Relations
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
BalanceCompaction1A | BalanceCompaction1As | one |
BalanceCompaction1B | BalanceCompaction1Bs | one |
BalanceCompaction2A | BalanceCompaction2As | one |
BalanceCompaction2B | BalanceCompaction2Bs | one |
CostCategory | CostCategories | one |
CostCenterDivisionDescription | CostCenterDivisionDescriptions | one |
LedgerVatNumber | LedgerVatNumbers | one |