Label in Fledge: Artikel leveranciers

URLhttps://odata-api.fledge.nl/v2-8/ArticleSuppliers
Keyadministration_idarticle_idcreditor_idsequence
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISURENPC
Write licensesBEHEERINKOOPPRODUCTIE
ScopesFLEDGE_PORTALFLEDGE_TERMINAL

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/ArticleSuppliers" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=article_id,creditor_id,sequence,last_date,last_order_amount,last_price' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/ArticleSuppliers');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'article_id,creditor_id,sequence,last_date,last_order_amount,last_price');
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/ArticleSuppliers" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("article_id,creditor_id,sequence,last_date,last_order_amount,last_price"),
    "$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/ArticleSuppliers(administration_id=1,article_id='{article_id}',creditor_id={creditor_id},sequence={sequence})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
sequencekeyInt32Volgorde leveranciers
article_idkeyStringArtikelcode
creditor_idkeyInt32Crediteurnummer
delivery_timeInt32Levertijd
discountDecimalKortingspercentage
gs1_codeStringGS1 artikelcode: GS1/GTIN artikelcode
last_dateDateLaatste inkoopdatum
last_delivery_timeInt32Laatste levertijd
last_order_amountDecimalLaatste bestelaantal
last_priceDecimalLaatste inkoopprijs
min_order_amountDecimalMin.bestelhoeveelheid: Minimale bestelhoeveelheid
order_codeStringBestelkode
preferenceBooleanVoorkeur leverancier (ja/nee)
priceDecimalPrijs
price_blastingDecimalStraalprijs
price_blasting_and_primerDecimalStraal + menie prijs
price_miter_saw_1DecimalVerstek 1
price_miter_saw_2DecimalVerstek 2
price_miter_saw_3DecimalVerstek 3
price_sawDecimalZaagprijs
supplier_article_idStringArtikelcode leverancier

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
CreditorCreditorsone
CurrencyCodesPriceAgreementsCurrencyCodesPriceAgreementsmany
GraduatedPricesGraduatedPricesmany
GraduatedPricesFreeFieldsGraduatedPricesFreeFieldsmany
Wingman