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

URLhttps://odata-api.fledge.nl/v2-8/PurchaseOrderLines
Keyadministration_idpurchase_order_header_idpurchase_order_line_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISURENPC
Write licensesINKOOP
ScopesFLEDGE_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

FieldTypeDescription
administration_idkeyInt32Administratienummer
purchase_order_header_idkeyStringOrdernummer
purchase_order_line_idkeyInt32Regelnummer
article_idStringArtikelcode
batch_idStringLotnummer/partijregistratie
benchmarkDecimalMaatstaf intrastat-aangifte
categoryStringRubriek BTW omzet aangifte
confirmed_dateDateBevestigde 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_reasonStringReden verschuiving
confirmed_delivery_date_confirmed_on_dateDateLeverdatum bevestigd op
cost_center_distribution_idInt32Verdeel oms nr: Kostenplaatsverdelingsnummer
cost_center_idInt32Kostenplaatsnummer
created_byInt32User aanmaak
creation_dateDateDatum aanmaak
creditor_group_idInt32Crediteurgroep nummer
creditor_idInt32Crediteurnummer
currency_code_idInt32Valutanummer
currency_unitInt32Eenheid valuta
date_confirmation_1DateDatum bevestiging
date_confirmation_2DateDatum bevestiging
delivery_dateDateDatum levering

The expected delivery date of this line (leverdatum verwacht). Required.

delivery_weekInt32Week levering
description_1StringOmschrijving
description_2StringOmschrijving: Omschrjving
description_3StringOmschrijving
discount_percentageDecimalKorting

The line's discount in percent, already in the net prices.

drawing_numberStringTekeningnummer
exchange_rateDecimalKoers

The rate the line was converted at, with currency_unit. Taken from the order on every change.

fiat_1BooleanFiat 1

Not documented.

fiat_2BooleanFiat 2

Not documented.

fiat_3BooleanFiat 3

Not documented.

gross_price_foreign_currencyDecimalBruto 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_currencyDecimalNetto prijs vv: Netto prijs vreemde valuta

The net price per unit in the foreign currency, without VAT.

function_of_lineInt32Functie van een regel (orderregel, tekstregel, subtotaalregel)
  • 1 Article line
  • 2 Text line
  • 3 Subtotal line
intrastat_idStringIntrastat goederencode

The goods code (IntrastatGoodsCodes).

intrastat_statistic_valueDecimalStatistische waarde voor intrastat-aangifte
intrastat_weightDecimalGewicht
invoice_valueDecimalFactuurwaarde voor intrastat-aangifte

The invoice value for the Intrastat declaration, not the invoiced amount.

is_confirmedBooleanBevestigd ja/nee
gross_price_local_currencyDecimalBruto prijs

The gross price per unit in the local currency, before the line's discount, without VAT.

net_price_local_currencyDecimalNetto 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_idStringMateriaalvorm code
memoStringMemo
modification_dateDateDatum wijzig
modified_byInt32User wijzig
order_codeStringBestelkode

The code the supplier knows the article by on this order (bestelcode).

order_dateDateDatum order

The line's order date.

order_priceDecimalBestelprijs

The gross price in the currency the order was priced in, as printed on the order instruction.

order_weekInt32Week order
parameter_1DecimalPar 1: Parameter 1
parameter_2DecimalPar 2: Parameter 2
parameter_3DecimalPar 3: Parameter 3
parameter_4DecimalPar 4: Parameter 4
parameter_5DecimalPar 5: Parameter 5
parameter_6DecimalPar 6: Parameter 6
pos_numberStringPos-nummer
purchase_quotation_header_idStringOffertenummer: 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_idInt32Offertregel: Regelnummer
quantityDecimalAantal

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_specialDecimalAantal
revisionStringRevisie
sales_group_idInt32Omzetgroep
sequenceInt32Volgorde

The order of the lines on the purchase order; sort by sequence, then purchase_order_line_id.

specialBooleanFixed lengte

A fixed-length line (special), ordered outside the article's order quantity; quantity_special is its special quantity.

vat_code_idInt32BTW nummer
warehouse_address_idInt32Adresnummer
warehouse_aisle_idInt32Magazijn
warehouse_shelf_idInt32Locatie
week_confirmation_1Int32Week bevestiging: Weeknummer bevestiging
week_confirmation_2Int32Week 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.

NavigationEntity set
AdministrationAdministrationsone
ArticleArticlesone
ArticleLocationArticleLocationsone
CostCenterCostCentersone
CostCenterDivisionDescriptionCostCenterDivisionDescriptionsone
CreditorCreditorsone
CreditorGroupCreditorGroupsone
IntrastatGoodsCodeIntrastatGoodsCodesone
PurchaseOrderHeaderPurchaseOrderHeadersone
RevenueGroupRevenueGroupsone
WarehouseAddressWarehouseAddressesone
WarehouseAisleWarehouseAislesone
WarehouseShelfWarehouseShelfsone
DocumentLinksDocumentLinksmany
PurchaseOrderLineStatusesPurchaseOrderLineStatusesmany
PurchaseOrderProductionOrderLinksPurchaseOrderProductionOrderLinksmany
Wingman