Label in Fledge: Verkoopkostprijs artikelen
| URL | https://odata-api.fledge.nl/v2-8/ArticleSalesPrices |
|---|---|
| Key | administration_idsales_order_header_idsales_order_line_idsales_order_line_status_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | BEHEER |
| 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/ArticleSalesPrices" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=sales_order_header_id,sales_order_line_id,sales_order_line_status_id,quantity,price,price_difference' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ArticleSalesPrices');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'sales_order_header_id,sales_order_line_id,sales_order_line_status_id,quantity,price,price_difference');
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/ArticleSalesPrices" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("sales_order_header_id,sales_order_line_id,sales_order_line_status_id,quantity,price,price_difference"),
"$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/ArticleSalesPrices(administration_id=1,sales_order_header_id='{sales_order_header_id}',sales_order_line_id={sales_order_line_id},sales_order_line_status_id={sales_order_line_status_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
sales_order_header_idkey | String | Verkoopordernummer |
sales_order_line_idkey | Int32 | Regelnummer |
sales_order_line_status_idkey | Int32 | Volgnummer |
quantity | Decimal | Aantal |
financial_year | Int32 | Boekjaar |
price | Decimal | Prijs |
price_difference | Decimal | Prijsverschil |
status | Boolean | Status |
status_quantity | Boolean | Aantal gevuld (ja/nee) |
status_price | Boolean | Prijs gevuld |
is_price_difference_filled | Boolean | PV gevuld: Prijsverschil gevuld |
instalment_invoice | Boolean | Termijnorder (ja/nee) |
is_price_processed | Boolean | Waarderingsprijs verwerkt |
is_price_difference_processed | Boolean | PV verwerkt: Prijsverschil verwerkt |
valuation | Int32 | Waarderingsmethode: 0 = geen waardering; 1 = inkoopwaardering; 2 = productiewaardering |
valuation_price | Decimal | Waarderingsprijs |
change_price | Boolean | Prijs wijzigen: Mag de prijs gewijzigd worden |
purchase_order_header_id | String | Ordernummer |
purchase_order_line_id | Int32 | Regelnummer |
creditor_id | Int32 | Crediteurnummer |
financial_period_id | Int32 | Periode nummer |
production_order_header_id | String | Order nummer |
production_order_assembly_id | Int32 | Schrapnummer |