The balance of one ledger account in one financial year: a starting balance and debit and credit totals per period. The per-period amounts are fields per period number: debit_entries_actual__1 is period 1.

Label in Fledge: Grootboekrekening saldo

URLhttps://odata-api.fledge.nl/v2-8/GeneralLedgerBalances
Keyadministration_idfinancial_yeargeneral_fiscal_commercialgeneral_ledger_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesFINANCIEEL
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/GeneralLedgerBalances" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=financial_year,general_fiscal_commercial,general_ledger_id,credit_entries_actual,credit_entries_preliminary,cumulative_debit_actual' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/GeneralLedgerBalances');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'financial_year,general_fiscal_commercial,general_ledger_id,credit_entries_actual,credit_entries_preliminary,cumulative_debit_actual');
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/GeneralLedgerBalances" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("financial_year,general_fiscal_commercial,general_ledger_id,credit_entries_actual,credit_entries_preliminary,cumulative_debit_actual"),
    "$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/GeneralLedgerBalances(administration_id=1,financial_year={financial_year},general_fiscal_commercial={general_fiscal_commercial},general_ledger_id='{general_ledger_id}')

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
financial_yearkeyInt32Boekjaar
general_ledger_idkeyStringGrootboekrekeningnummer
general_fiscal_commercialkeyInt32AFC: Algemeen/Fiscaal/Commercieel

3 general (algemeen, the normal one), 1 fiscal, 5 commercial.

credit_entries_actualStringPeriode Credit Werkelijk NOOT: korte naam vanwege 4096 byte statement limit!

Credit per period, processed (werkelijk); one field per period, __1 is period 1.

credit_entries_preliminaryStringPeriode Credit Mutatie NOOT: korte naam vanwege 4096 byte statement limit!

Credit per period booked but not processed yet (mutatie); one field per period.

cumulative_debit_actualDecimalKum. deb. werk.: Kummulatief debet werkelijk

The year total of the processed debit, not a running total.

cumulative_debit_preliminaryDecimalKum. deb. mut.: Kummulatief debet mutatie

The year total of the preliminary debit.

cumulative_credit_actualDecimalKum. crd. werk.: Kummulatief credit werkelijk

The year total of the processed credit, not a running total.

cumulative_credit_preliminaryDecimalKum. crd. mut.: Kummulatief credit mutatie

The year total of the preliminary credit.

currency_code_idInt32Valuta
date_creationDateAanmaakdatum van de record
date_updateDateDatum laatste wijziging van de record
debit_entries_actualStringPeriode Debet Werkelijk NOOT: korte naam vanwege 4096 byte statement limit!

Debit per period, processed (werkelijk); one field per period, __1 is period 1.

debit_entries_preliminaryStringPeriode Debet Mutatie NOOT: korte naam vanwege 4096 byte statement limit!

Debit per period booked but not processed yet (mutatie); one field per period.

is_recorded_actualBooleanGeboekt werk.: Geboekt werkelijk
is_recorded_preliminaryBooleanGeboekt mut.: Geboekt mutaties
starting_balanceDecimalBegin saldo

The balance at the start of the year (begin saldo).

user_createdInt32user aanmaak
user_updatedInt32User L wijz

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
Wingman