# GeneralLedgers

> A ledger account (grootboekrekening) in one financial year.

Subject: Finance.

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_id`, `financial_year`, `general_ledger_id` |
| Administration-specific | yes: always filter on `administration_id` |
| Operations | GET list, GET one, POST, PATCH, DELETE |
| Read licenses | BASIS |
| Write licenses | FINANCIEEL, BEHEER |
| Scopes | FLEDGE_PORTAL |

## Example requests

```http
GET https://odata-api.fledge.nl/v2-8/GeneralLedgers?$filter=administration_id eq 1&$select=financial_year,general_ledger_id,block,compile,cost_center_distribution_id&$top=50
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_id` (key) | Int32 | Administratienummer |
| `financial_year` (key) | Int32, not null | Boekjaar |
| `general_ledger_id` (key) | String, not null | 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

- `Administration` → [Administrations](https://docs.fledge.nl/en/api/reference/Administrations.md) (one)
- `BalanceCompaction1A` → [BalanceCompaction1As](https://docs.fledge.nl/en/api/reference/BalanceCompaction1As.md) (one)
- `BalanceCompaction1B` → [BalanceCompaction1Bs](https://docs.fledge.nl/en/api/reference/BalanceCompaction1Bs.md) (one)
- `BalanceCompaction2A` → [BalanceCompaction2As](https://docs.fledge.nl/en/api/reference/BalanceCompaction2As.md) (one)
- `BalanceCompaction2B` → [BalanceCompaction2Bs](https://docs.fledge.nl/en/api/reference/BalanceCompaction2Bs.md) (one)
- `CostCategory` → [CostCategories](https://docs.fledge.nl/en/api/reference/CostCategories.md) (one)
- `CostCenterDivisionDescription` → [CostCenterDivisionDescriptions](https://docs.fledge.nl/en/api/reference/CostCenterDivisionDescriptions.md) (one)
- `LedgerVatNumber` → [LedgerVatNumbers](https://docs.fledge.nl/en/api/reference/LedgerVatNumbers.md) (one)

---

Source: https://docs.fledge.nl/en/api/reference/GeneralLedgers
