Label in Fledge: Artikel prijsafspraken met leveranciers in vreemde valuta

URLhttps://odata-api.fledge.nl/v2-8/CurrencyCodesPriceAgreements
Keyadministration_idarticle_idcreditor_idcurrency_code_idsequence
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISFINANCIEELBEHEER
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/CurrencyCodesPriceAgreements" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=article_id,creditor_id,currency_code_id,sequence,price,price_miter_1,price_miter_2' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/CurrencyCodesPriceAgreements');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'article_id,creditor_id,currency_code_id,sequence,price,price_miter_1,price_miter_2');
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/CurrencyCodesPriceAgreements" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("article_id,creditor_id,currency_code_id,sequence,price,price_miter_1,price_miter_2"),
    "$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/CurrencyCodesPriceAgreements(administration_id=1,article_id='{article_id}',creditor_id={creditor_id},currency_code_id={currency_code_id},sequence={sequence})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
sequencekeyInt32Volgorde leveranciers
article_idkeyStringArtikelcode
creditor_idkeyInt32Crediteurnummer
currency_code_idkeyInt32Valutanummer
priceDecimalPrijs
price_miter_1DecimalVerstek 1: Verstekzaagprijs 1
price_miter_2DecimalVerstek 2: verstekzaagprijs 2
price_miter_3DecimalVerstek 3: Verstekzaagprijs 3
price_sandblastingDecimalStraalprijs
price_sandblasting_primerDecimalStraal + menie prijs: Straal +menieprijs
price_sawingDecimalZaagprijs

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
ArticleSupplierArticleSuppliersone
Wingman