Label in Fledge: Artikel leveranciers
| URL | https://odata-api.fledge.nl/v2-8/ArticleSuppliers |
|---|---|
| Key | administration_idarticle_idcreditor_idsequence |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISURENPC |
| Write licenses | BEHEERINKOOPPRODUCTIE |
| Scopes | FLEDGE_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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
sequencekey | Int32 | Volgorde leveranciers |
article_idkey | String | Artikelcode |
creditor_idkey | Int32 | Crediteurnummer |
delivery_time | Int32 | Levertijd |
discount | Decimal | Kortingspercentage |
gs1_code | String | GS1 artikelcode: GS1/GTIN artikelcode |
last_date | Date | Laatste inkoopdatum |
last_delivery_time | Int32 | Laatste levertijd |
last_order_amount | Decimal | Laatste bestelaantal |
last_price | Decimal | Laatste inkoopprijs |
min_order_amount | Decimal | Min.bestelhoeveelheid: Minimale bestelhoeveelheid |
order_code | String | Bestelkode |
preference | Boolean | Voorkeur leverancier (ja/nee) |
price | Decimal | Prijs |
price_blasting | Decimal | Straalprijs |
price_blasting_and_primer | Decimal | Straal + menie prijs |
price_miter_saw_1 | Decimal | Verstek 1 |
price_miter_saw_2 | Decimal | Verstek 2 |
price_miter_saw_3 | Decimal | Verstek 3 |
price_saw | Decimal | Zaagprijs |
supplier_article_id | String | Artikelcode 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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
Creditor | Creditors | one |
CurrencyCodesPriceAgreements | CurrencyCodesPriceAgreements | many |
GraduatedPrices | GraduatedPrices | many |
GraduatedPricesFreeFields | GraduatedPricesFreeFields | many |