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
| URL | https://odata-api.fledge.nl/v2-8/PurchaseOrderInvoiceLines |
|---|---|
| Key | administration_idfinancial_yearpurchase_order_invoice_header_idpurchase_order_invoice_line_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | INKOOPFINANCIEEL |
| Write licenses | INKOOPFINANCIEELBEHEER |
| 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/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
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
financial_yearkey | Int32 | Boekjaar |
purchase_order_invoice_header_idkey | String | Factuurnummer |
purchase_order_invoice_line_idkey | Int32 | Volgnummer |
article_id | String | Artikel |
company_name_1 | String | Bedrijfsnaam |
company_name_2 | String | Bedrijfsnaam |
company_name_3 | String | Bedrijfsnaam |
creditor_id | Int32 | Leverancier |
delivery_date | Date | Datum levering |
delivery_note | String | Pakbonnummer The receipt number (PurchaseOrderReceiptHeaders.purchase_order_receipt_header_id), not a receipt line. |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving: Omschrjving |
description_3 | String | Omschrijving: Omschrjving |
drawing_number | String | Tekeningnummer |
function | Int32 | Funktie (artikel/tekst/subtotaal) |
is_fixed_length | Boolean | Fixed lengte |
lot_number | String | Lotnummer/partijregistratie |
manufacturer_code | String | Fabrikantcode |
material_shape_id | String | Materiaalvorm code |
memo | String | Memo |
order_code | String | Bestelkode |
order_date | Date | Datum order |
order_line_number | Int32 | Regelnummer The order line. |
order_number | String | Ordernummer 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_description | String | Omschrijving besteleenheid |
order_unit_factor | Decimal | Factor besteleenheid |
order_unit_operator | String | Operator 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 | Prijs 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_currency | Decimal | Prijs in vv: Prijs in vreemde valuta |
purchase_invoice_price | Decimal | Prijs 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_currency | Decimal | Prijs van de inkoopfactuur vv |
purchase_invoice_unit_description | String | Omschrijving ink.fact.eenheid: Omschrijving inkoopfactuureenheid |
purchase_invoice_unit_factor | Decimal | Factor ink.fact.eenheid: Factor inkoopfactuureenheid |
purchase_invoice_unit_operator | String | Operator ink.fact.eenheid: Operator inkoopfactuureenheid |
purchaser | String | Naam inkoper |
quantity | Decimal | Aantal The quantity invoiced. |
receiving_unit_description | String | Omschrijving ontvangsteenheid |
receiving_unit_factor | Decimal | Factor ontvangsteenheid |
receiving_unit_operator | String | Operator ontvangsteenheid |
revenue_group_id | Int32 | Omzetgroep |
revision | String | Revisie |
special_quantity | Decimal | Aantal |
vat_number | Int32 | BTW nr.: BTW nummer |
vat_rubric | String | Rubriek 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.
| Navigation | Entity set | |
|---|---|---|
Administration | Administrations | one |
Article | Articles | one |
PurchaseOrder | PurchaseOrderHeaders | one |
PurchaseOrderInvoiceHeader | PurchaseOrderInvoiceHeaders | one |
PurchaseOrderLine | PurchaseOrderLines | one |
PurchaseOrderReceipt | PurchaseOrderReceiptHeaders | one |
RevenueGroup | RevenueGroups | one |
HistoricPurchaseOrders | HistoricPurchaseOrders | many |