One invoiced quantity of a purchase order line. It names the order line in order_number and order_line_number, and the receipt in delivery_note.

Label in Fledge: Inkoopfactuurregels

URLhttps://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceLines
Keyadministration_idfinancial_yearpurchase_order_invoice_header_idpurchase_order_invoice_line_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesINKOOPFINANCIEEL
Write licensesINKOOPFINANCIEELBEHEER
ScopesFLEDGE_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/PurchaseOrderInvoiceLines" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=financial_year,purchase_order_invoice_header_id,purchase_order_invoice_line_id,delivery_note,order_line_number,order_number' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceLines');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'financial_year,purchase_order_invoice_header_id,purchase_order_invoice_line_id,delivery_note,order_line_number,order_number');
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/PurchaseOrderInvoiceLines" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("financial_year,purchase_order_invoice_header_id,purchase_order_invoice_line_id,delivery_note,order_line_number,order_number"),
    "$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/PurchaseOrderInvoiceLines(administration_id=1,financial_year={financial_year},purchase_order_invoice_header_id='{purchase_order_invoice_header_id}',purchase_order_invoice_line_id={purchase_order_invoice_line_id})

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
financial_yearkeyInt32Boekjaar
purchase_order_invoice_header_idkeyStringFactuurnummer
purchase_order_invoice_line_idkeyInt32Volgnummer
article_idStringArtikel
company_name_1StringBedrijfsnaam
company_name_2StringBedrijfsnaam
company_name_3StringBedrijfsnaam
creditor_idInt32Leverancier
delivery_dateDateDatum levering
delivery_noteStringPakbonnummer

The receipt number (PurchaseOrderReceiptHeaders.purchase_order_receipt_header_id), not a receipt line.

description_1StringOmschrijving
description_2StringOmschrijving: Omschrjving
description_3StringOmschrijving: Omschrjving
drawing_numberStringTekeningnummer
functionInt32Funktie (artikel/tekst/subtotaal)
is_fixed_lengthBooleanFixed lengte
lot_numberStringLotnummer/partijregistratie
manufacturer_codeStringFabrikantcode
material_shape_idStringMateriaalvorm code
memoStringMemo
order_codeStringBestelkode
order_dateDateDatum order
order_line_numberInt32Regelnummer

The order line.

order_numberStringOrdernummer

The purchase order number. Filter on it to find an order's invoices. One invoice can hold lines of several orders of the same supplier.

order_unit_descriptionStringOmschrijving besteleenheid
order_unit_factorDecimalFactor besteleenheid
order_unit_operatorStringOperator besteleenheid
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
priceDecimalPrijs

The invoiced price in the local currency. Whether it is per unit or for the whole line isn't documented: check it against quantity and the invoice's amount_excluding_vat before using it as a value.

price_foreign_currencyDecimalPrijs in vv: Prijs in vreemde valuta
purchase_invoice_priceDecimalPrijs van de inkoopfactuur

The price as on the supplier's invoice. The app shows it as the line's invoiced amount, not a unit price; check it against the quantity before using it.

purchase_invoice_price_foreign_currencyDecimalPrijs van de inkoopfactuur vv
purchase_invoice_unit_descriptionStringOmschrijving ink.fact.eenheid: Omschrijving inkoopfactuureenheid
purchase_invoice_unit_factorDecimalFactor ink.fact.eenheid: Factor inkoopfactuureenheid
purchase_invoice_unit_operatorStringOperator ink.fact.eenheid: Operator inkoopfactuureenheid
purchaserStringNaam inkoper
quantityDecimalAantal

The quantity invoiced.

receiving_unit_descriptionStringOmschrijving ontvangsteenheid
receiving_unit_factorDecimalFactor ontvangsteenheid
receiving_unit_operatorStringOperator ontvangsteenheid
revenue_group_idInt32Omzetgroep
revisionStringRevisie
special_quantityDecimalAantal
vat_numberInt32BTW nr.: BTW nummer
vat_rubricStringRubriek BTW omzet aangifte

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
PurchaseOrderPurchaseOrderHeadersone
PurchaseOrderInvoiceHeaderPurchaseOrderInvoiceHeadersone
PurchaseOrderLinePurchaseOrderLinesone
PurchaseOrderReceiptPurchaseOrderReceiptHeadersone
RevenueGroupRevenueGroupsone
HistoricPurchaseOrdersHistoricPurchaseOrdersmany
Wingman