Label in Fledge: Artikel jaargegevens

URLhttps://odata-api.fledge.nl/v2-8/ArticleYearData
Keyadministration_idarticle_idfinancial_year
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPP
Write licensesBEHEER
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/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

FieldTypeDescription
administration_idkeyInt32Administratienummer
financial_yearkeyInt32Boekjaar
article_idkeyStringArtikelcode
amount_differenceDecimalVerschil bedrag
amount_mutationDecimalMutatie bedrag
amount_production_endDecimalProductie bedrag
amount_production_partsDecimalProductie onderdelen bedrag
amount_purchaseDecimalInkoop bedrag
amount_soldDecimalVerkoop bedrag
amount_startDecimalBegin waarde
cost_price_soldDecimalKostprijs verkoop
quantity_mutationDecimalMutatie aantal
quantity_production_endDecimalProductie aantal
quantity_production_partsDecimalProductie onderdelen aantal
quantity_purchaseDecimalInkoop aantal
quantity_saleDecimalVerkoop aantal
quantity_startDecimalBegin 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.

NavigationEntity set
AdministrationAdministrationsone
ArticleArticlesone
Wingman