One article bought on a purchase order, with the quantity ordered and its price. Where that quantity is now (approved, ordered, received, invoiced) is on its status rows, PurchaseOrderLineStatuses.
Label in Fledge: Inkooporderregels
| URL | https://odata-api.fledge.nl/v2-8/PurchaseOrderLines |
|---|---|
| Key | administration_idpurchase_order_header_idpurchase_order_line_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISURENPC |
| Write licenses | INKOOP |
| 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/PurchaseOrderLines" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=purchase_order_header_id,purchase_order_line_id,confirmed_date,delivery_date,discount_percentage' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseOrderLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'purchase_order_header_id,purchase_order_line_id,confirmed_date,delivery_date,discount_percentage');
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/PurchaseOrderLines" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("purchase_order_header_id,purchase_order_line_id,confirmed_date,delivery_date,discount_percentage"),
"$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/PurchaseOrderLines(administration_id=1,purchase_order_header_id='{purchase_order_header_id}',purchase_order_line_id={purchase_order_line_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
purchase_order_header_idkey | String | Ordernummer |
purchase_order_line_idkey | Int32 | Regelnummer |
article_id | String | Artikelcode |
batch_id | String | Lotnummer/partijregistratie |
benchmark | Decimal | Maatstaf intrastat-aangifte |
category | String | Rubriek BTW omzet aangifte |
confirmed_date | Date | Bevestigde leverdatum The delivery date the supplier confirmed for this line, with is_confirmed. Often empty: a delay is usually reported on the order's confirmed_date. |
confirmed_date_shift_reason | String | Reden verschuiving |
confirmed_delivery_date_confirmed_on_date | Date | Leverdatum bevestigd op |
cost_center_distribution_id | Int32 | Verdeel oms nr: Kostenplaatsverdelingsnummer |
cost_center_id | Int32 | Kostenplaatsnummer |
created_by | Int32 | User aanmaak |
creation_date | Date | Datum aanmaak |
creditor_group_id | Int32 | Crediteurgroep nummer |
creditor_id | Int32 | Crediteurnummer |
currency_code_id | Int32 | Valutanummer |
currency_unit | Int32 | Eenheid valuta |
date_confirmation_1 | Date | Datum bevestiging |
date_confirmation_2 | Date | Datum bevestiging |
delivery_date | Date | Datum levering The expected delivery date of this line (leverdatum verwacht). Required. |
delivery_week | Int32 | Week levering |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving: Omschrjving |
description_3 | String | Omschrijving |
discount_percentage | Decimal | Korting The line's discount in percent, already in the net prices. |
drawing_number | String | Tekeningnummer |
exchange_rate | Decimal | Koers The rate the line was converted at, with currency_unit. Taken from the order on every change. |
fiat_1 | Boolean | Fiat 1 Not documented. |
fiat_2 | Boolean | Fiat 2 Not documented. |
fiat_3 | Boolean | Fiat 3 Not documented. |
gross_price_foreign_currency | Decimal | Bruto prijs vv: Bruto prijs vreemde valuta The gross price per unit in the order's foreign currency; 0 on an order in the local currency. |
net_price_foreign_currency | Decimal | Netto prijs vv: Netto prijs vreemde valuta The net price per unit in the foreign currency, without VAT. |
function_of_line | Int32 | Functie van een regel (orderregel, tekstregel, subtotaalregel)
|
intrastat_id | String | Intrastat goederencode The goods code (IntrastatGoodsCodes). |
intrastat_statistic_value | Decimal | Statistische waarde voor intrastat-aangifte |
intrastat_weight | Decimal | Gewicht |
invoice_value | Decimal | Factuurwaarde voor intrastat-aangifte The invoice value for the Intrastat declaration, not the invoiced amount. |
is_confirmed | Boolean | Bevestigd ja/nee |
gross_price_local_currency | Decimal | Bruto prijs The gross price per unit in the local currency, before the line's discount, without VAT. |
net_price_local_currency | Decimal | Netto prijs The net price per unit in the local currency: after the line's discount and without VAT. It is per price unit, as quantity is: line value = quantity times this. |
material_shape_id | String | Materiaalvorm code |
memo | String | Memo |
modification_date | Date | Datum wijzig |
modified_by | Int32 | User wijzig |
order_code | String | Bestelkode The code the supplier knows the article by on this order (bestelcode). |
order_date | Date | Datum order The line's order date. |
order_price | Decimal | Bestelprijs The gross price in the currency the order was priced in, as printed on the order instruction. |
order_week | Int32 | Week order |
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 |
pos_number | String | Pos-nummer |
purchase_quotation_header_id | String | Offertenummer: Offerte nummer With purchase_quotation_line_id the purchase quotation line the line was ordered from: together they are the key of PurchaseQuotationLines (there is no navigation). |
purchase_quotation_line_id | Int32 | Offertregel: Regelnummer |
quantity | Decimal | Aantal The quantity ordered, in the article's price unit (Articles.calculation_unit); the app shows it in the order unit. Lines saved in 2026.15 or 2026.16 for an article with a different order unit can hold the order-unit quantity. Not what is still to be received: that is on the open status rows. |
quantity_special | Decimal | Aantal |
revision | String | Revisie |
sales_group_id | Int32 | Omzetgroep |
sequence | Int32 | Volgorde The order of the lines on the purchase order; sort by sequence, then purchase_order_line_id. |
special | Boolean | Fixed lengte A fixed-length line (special), ordered outside the article's order quantity; quantity_special is its special quantity. |
vat_code_id | Int32 | BTW nummer |
warehouse_address_id | Int32 | Adresnummer |
warehouse_aisle_id | Int32 | Magazijn |
warehouse_shelf_id | Int32 | Locatie |
week_confirmation_1 | Int32 | Week bevestiging: Weeknummer bevestiging |
week_confirmation_2 | Int32 | Week bevestiging: Weeknummer bevestiging |
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 |
ArticleLocation | ArticleLocations | one |
CostCenter | CostCenters | one |
CostCenterDivisionDescription | CostCenterDivisionDescriptions | one |
Creditor | Creditors | one |
CreditorGroup | CreditorGroups | one |
IntrastatGoodsCode | IntrastatGoodsCodes | one |
PurchaseOrderHeader | PurchaseOrderHeaders | one |
RevenueGroup | RevenueGroups | one |
WarehouseAddress | WarehouseAddresses | one |
WarehouseAisle | WarehouseAisles | one |
WarehouseShelf | WarehouseShelfs | one |
DocumentLinks | DocumentLinks | many |
PurchaseOrderLineStatuses | PurchaseOrderLineStatuses | many |
PurchaseOrderProductionOrderLinks | PurchaseOrderProductionOrderLinks | many |