Status rows of purchase order lines moved to history, keyed like PurchaseOrderLineStatuses. The legacy ERP moves them here; the Fledge API only reads them. The same columns have other names here.
Label in Fledge: Inkoopstatussen historie
| URL | https://odata-api.fledge.nl/v2-8/HistoricPurchaseStatuses |
|---|---|
| Key | administration_idpurchase_order_header_idpurchase_order_line_idpurchase_order_line_status_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/HistoricPurchaseStatuses" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=purchase_order_header_id,purchase_order_line_id,purchase_order_line_status_id,article_location_id,date_created,date_deleted' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/HistoricPurchaseStatuses');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'purchase_order_header_id,purchase_order_line_id,purchase_order_line_status_id,article_location_id,date_created,date_deleted');
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/HistoricPurchaseStatuses" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("purchase_order_header_id,purchase_order_line_id,purchase_order_line_status_id,article_location_id,date_created,date_deleted"),
"$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/HistoricPurchaseStatuses(administration_id=1,purchase_order_header_id='{purchase_order_header_id}',purchase_order_line_id={purchase_order_line_id},purchase_order_line_status_id={purchase_order_line_status_id})Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
purchase_order_header_idkey | String | Ordernummer |
purchase_order_line_idkey | Int32 | Regelnummer |
purchase_order_line_status_idkey | Int32 | Volgnummer |
action | String | Actie |
article_id | String | Artikelcode |
article_location_id | String | Lotnummer/partijregistratie Despite its name, the lot number. |
date_created | DateTimeOffset | Aangemaakt: Aanmaakdatum en -tijd When the row was made. |
date_deleted | DateTimeOffset | Aangemaakt: Aanmaakdatum en -tijd When the row was moved to history. |
description | String | Opmerkings tekst The receipt's remark, the same as remark. |
display_description | Boolean | Opmerking meenemen als dispuut? Whether the remark is a dispute, the same as is_dispute. |
has_description | Boolean | Opmerking aanwezig (ja/nee) |
is_complete | Boolean | Afgewerkt The same as PurchaseOrderLineStatuses.is_finished. |
parent | Int32 | Parent The same as parent_status_id. |
price | Decimal | Prijs |
purchase_delivery_note | String | Pakbonnummer The receipt number, the same as delivery_note_number. |
purchase_invoice_header_financial_year | Int32 | Boekjaar |
purchase_order_invoice_header_id | String | Factuurnummer |
purchase_invoice_line_id | Int32 | Volgnummer |
purchase_order_instruction_header_id | Int32 | Volgnummer |
purchase_order_instruction_line_id | Int32 | Regelnummer |
purchase_order_receipt_line_id | Int32 | Regelnummer The receipt line, the same as receipt_id. |
quantity | Decimal | Aantal |
serial_number_id | Int32 | Serienummer autom.: Serienummer automatisch |
status | Int32 | Status |
user_created | Int32 | User aanmaak Who made the row. |
user_deleted | Int32 | User aanmaak |
warehouse_address_id | Int32 | Adresnummer |
warehouse_aisle_id | Int32 | Magazijn |
warehouse_shelf_id | Int32 | Locatie |
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 |