Label in Fledge: Bestelopdrachtregels
| URL | https://odata-api.fledge.nl/v2-8/PurchaseOrderInstructionLines |
|---|---|
| Key | administration_idpurchase_order_header_idpurchase_order_instruction_header_idpurchase_order_instruction_line_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | INKOOPBEHEER |
| 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/PurchaseOrderInstructionLines" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=purchase_order_header_id,purchase_order_instruction_header_id,purchase_order_instruction_line_id,amount_returned,custom_field_price,delivery_date' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseOrderInstructionLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'purchase_order_header_id,purchase_order_instruction_header_id,purchase_order_instruction_line_id,amount_returned,custom_field_price,delivery_date');
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/PurchaseOrderInstructionLines" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("purchase_order_header_id,purchase_order_instruction_header_id,purchase_order_instruction_line_id,amount_returned,custom_field_price,delivery_date"),
"$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/PurchaseOrderInstructionLines(administration_id=1,purchase_order_header_id='{purchase_order_header_id}',purchase_order_instruction_header_id={purchase_order_instruction_header_id},purchase_order_instruction_line_id={purchase_order_instruction_line_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
purchase_order_instruction_header_idkey | Int32 | Volgnummer |
purchase_order_instruction_line_idkey | Int32 | Regelnummer |
purchase_order_header_idkey | String | Ordernummer |
amount_returned | Decimal | Aantal teruggemeld |
article_id | String | Artikel |
custom_field_price | Decimal | Netto prijs vv: Netto prijs vreemde valuta |
delivery_date | Date | Leverdatum |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
discount | Decimal | Korting |
drawing_number | String | Tekeningnummer |
foreign_currency_price | Decimal | Bruto prijs vv: Bruto prijs vreemde valuta |
function | Int32 | Funktie van de regel |
gross_price | Decimal | Bruto prijs |
manufacturer_code | String | Fabrikantcode |
material_shape_id | String | Materiaalvorm code |
memo | String | Memo |
order_code | String | Bestelkode |
order_price | Decimal | Bestelprijs |
order_unit_description | String | Omschrijving besteleenheid |
order_unit_operator | String | Operator besteleenheid |
order_unit_ratio | Decimal | Factor besteleenheid |
parameter_1 | Decimal | Par 1: Parameter 1 |
parameter_2 | Decimal | Par 2: Parameter 2 |
parameter_3 | Decimal | Par 3: Parameter 3 |
parameter_4 | Decimal | Par 4: Parameter 4 |
parameter_5 | Decimal | Par 5: Parameter 5 |
parameter_6 | Decimal | Par 6: Parameter 6 |
price | Decimal | Netto prijs |
purchase_order_line_confirmed_delivery_date | Date | Bevestigde leverdatum |
purchase_order_line_delivery_date_confirmed_at | Date | Leverdatum bevestigd op |
purchase_order_line_id | Int32 | Regelnummer |
purchase_order_line_is_confirmed | Boolean | Bevestigd ja/nee |
purchase_order_line_shift_reason | String | Reden verschuiving |
quantity | Decimal | Aantal |
revision | String | Revisie |
special | Boolean | Fixed lengte |
special_quantity | Decimal | Aantal |
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 |
PurchaseOrderHeader | PurchaseOrderHeaders | one |
PurchaseOrderInstructionHeader | PurchaseOrderInstructionHeaders | one |
PurchaseOrderLine | PurchaseOrderLines | one |