A ledger account (grootboekrekening) in one financial year. The accounts are repeated per year: filter on financial_year.

Label in Fledge: Grootboekrekeningen

URLhttps://odata-api.fledge.nl/v2-8/GeneralLedgers
Keyadministration_idfinancial_yeargeneral_ledger_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesFINANCIEELBEHEER
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
financial_yearkeyInt32Boekjaar
general_ledger_idkeyStringGrootboekrekeningnummer

The account number, a text such as '8000'.

balance_compact_1_aInt32Balansverdichting 1A nr: Balansverdichting 1
balance_compact_1_bInt32Balansverdichting 1B nr: Balansverdichting 2
balance_compact_2_aInt32Balansverdichting 2A nr: Balansverdichting 3
balance_compact_2_bInt32Balansverdichting 2B nr: Balansverdichting 4
blockBooleanBlokkeren

Blocked; the Fledge API doesn't check it.

cashflow_coefficientInt32Cashflow kengetal
cashflow_idInt32Cashflownummer
cashflow_sub_numberInt32Cashflowsubnummer
currency_code_idInt32Valuta
collection_accountBooleanVerzamelrekening ja/nee
compileBooleanVerdichten

Bookings on this account within one journal entry are merged into one line (verdichten).

cost_center_distribution_idInt32Verdeel 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_usedStringKostenplaats gebruik

V means a cost centre is required, O optional, N not allowed.

cost_type_distribution_idInt32Kostensoort verdeel oms nr
cost_type_usedStringKostensoort gebruik
created_byInt32user aanmaak
creation_dateDateAanmaakdatum van de record
description_1StringOmschrijving 1 grootboekrek

The account name.

description_2StringOmschrijving 2 grootboekrek
final_balance_to_general_ledgerStringEindsaldo naar GB rekening
has_budgetBooleanHeeft 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_accountBooleanIs FC rekening?: Is het een Fiscaal/Commercieel rekening
modification_dateDateDatum laatste wijziging van de record
modified_byInt32User L wijz
none_mandatory_optionalStringVaste aktiva
permanenceStringPermanence
pi_idInt32Gekoppeld aan PI nummer
projectStringProject/order
reference_codeStringReferentiecode

The RGS reference code.

reserve_balance_compact_1_aInt32Balansverdichting 1A nr: Balansverdichting 1A reserve indien rekening Balansrek is
reserve_balance_compact_1_bInt32Balansverdichting 1B nr: Balansverdichting 1B reserve indien rekening Balansrek is
reserve_balance_compact_2_aInt32Balansverdichting 2A nr: Balansverdichting 2A reserve indien rekening Balansrek is
reserve_balance_compact_2_bInt32Balansverdichting 2B nr: Balansverdichting 2B reserve indien rekening Balansrek is
search_nameStringZoeknaam: Zoeksleutel
sub_typeBooleanRekeningsoort subsoort: bij balans: aktiva/passiva, bij verlies/winst: omzet/kosten

For a profit and loss account, true for revenue (omzet) and false for costs.

typeBooleanRekeningsoort: balans of verlies

True for a balance sheet account (balans), false for a profit and loss account (winst en verlies).

vat_idInt32BTW 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.

NavigationEntity set
AdministrationAdministrationsone
BalanceCompaction1ABalanceCompaction1Asone
BalanceCompaction1BBalanceCompaction1Bsone
BalanceCompaction2ABalanceCompaction2Asone
BalanceCompaction2BBalanceCompaction2Bsone
CostCategoryCostCategoriesone
CostCenterDivisionDescriptionCostCenterDivisionDescriptionsone
LedgerVatNumberLedgerVatNumbersone
Wingman