Label in Fledge: Artikel jaargegevens
| URL | https://odata-api.fledge.nl/v2-8/ArticleYearData |
|---|---|
| Key | administration_idarticle_idfinancial_year |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPP |
| Write licenses | BEHEER |
| 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/ArticleYearData" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=article_id,financial_year,amount_difference,amount_mutation,amount_production_end' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ArticleYearData');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'article_id,financial_year,amount_difference,amount_mutation,amount_production_end');
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/ArticleYearData" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("article_id,financial_year,amount_difference,amount_mutation,amount_production_end"),
"$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/ArticleYearData(administration_id=1,article_id='{article_id}',financial_year={financial_year})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
financial_yearkey | Int32 | Boekjaar |
article_idkey | String | Artikelcode |
amount_difference | Decimal | Verschil bedrag |
amount_mutation | Decimal | Mutatie bedrag |
amount_production_end | Decimal | Productie bedrag |
amount_production_parts | Decimal | Productie onderdelen bedrag |
amount_purchase | Decimal | Inkoop bedrag |
amount_sold | Decimal | Verkoop bedrag |
amount_start | Decimal | Begin waarde |
cost_price_sold | Decimal | Kostprijs verkoop |
quantity_mutation | Decimal | Mutatie aantal |
quantity_production_end | Decimal | Productie aantal |
quantity_production_parts | Decimal | Productie onderdelen aantal |
quantity_purchase | Decimal | Inkoop aantal |
quantity_sale | Decimal | Verkoop aantal |
quantity_start | Decimal | Begin aantal |
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 |
Article | Articles | one |