A currency of the administration with its current exchange rate. One row has is_local true: the home currency. There is no rate history; documents keep their own rate.
Label in Fledge: Vreemde valuta
| URL | https://odata-api.fledge.nl/v2-8/CurrencyCodes |
|---|---|
| Key | administration_idcurrency_code_abbreviation |
| 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/CurrencyCodes" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=currency_code_abbreviation,currency_code_id,date_create,date_update' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/CurrencyCodes');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'currency_code_abbreviation,currency_code_id,date_create,date_update');
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/CurrencyCodes" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("currency_code_abbreviation,currency_code_id,date_create,date_update"),
"$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/CurrencyCodes(administration_id=1,currency_code_abbreviation='{currency_code_abbreviation}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
currency_code_abbreviationkey | String | Valutakode The currency code, such as EUR or USD. |
currency_code_id | Int32 | Valutanummer The currency number other tables use; some use the abbreviation instead. |
date_create | Date | Datum wijzig Despite its name, the date of the last change. |
date_update | Date | Datum aanmaak Despite its name, the date it was created. |
description | String | Omschrijving |
general_ledger_rate_difference | String | Grtboek verschil: Grootboekrekeningnummer koersverschil |
general_ledger_revaluation | String | Grtboek herw.: Grootboekrekeningnummer herwaardering |
is_economic_monetary_union | Boolean | EMU valuta (ja/nee) An EMU currency; the app then ignores the unit. |
is_local | Boolean | Lokale valuta (ja/nee) The administration's home currency. |
exchange_rate | Decimal | Koers Foreign currency per unit of local currency; foreign = local × exchange_rate ÷ unit. |
rounding | Decimal | Afronding The step amounts round to, such as 0.01. |
unit | Int32 | Koerseenheid The number of local currency units the rate is for (koerseenheid). |
user_creation | Int32 | User aanmaak |
modified_by_user_id | Int32 | User wijzig |
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 |