Label in Fledge: Artikel prijsafspraken met leveranciers in vreemde valuta
| URL | https://odata-api.fledge.nl/v2-8/CurrencyCodesPriceAgreements |
|---|---|
| Key | administration_idarticle_idcreditor_idcurrency_code_idsequence |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISFINANCIEELBEHEER |
| Write licenses | FINANCIEELBEHEER |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
sequencekey | Int32 | Volgorde leveranciers |
article_idkey | String | Artikelcode |
creditor_idkey | Int32 | Crediteurnummer |
currency_code_idkey | Int32 | Valutanummer |
price | Decimal | Prijs |
price_miter_1 | Decimal | Verstek 1: Verstekzaagprijs 1 |
price_miter_2 | Decimal | Verstek 2: verstekzaagprijs 2 |
price_miter_3 | Decimal | Verstek 3: Verstekzaagprijs 3 |
price_sandblasting | Decimal | Straalprijs |
price_sandblasting_primer | Decimal | Straal + menie prijs: Straal +menieprijs |
price_sawing | Decimal | Zaagprijs |
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 |
ArticleSupplier | ArticleSuppliers | one |