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

URLhttps://odata-api.fledge.nl/v2-8/HistoricPurchaseStatuses
Keyadministration_idpurchase_order_header_idpurchase_order_line_idpurchase_order_line_status_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASIS
Write licensesINKOOPBEHEER
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/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

FieldTypeDescription
administration_idkeyInt32Administratienummer
purchase_order_header_idkeyStringOrdernummer
purchase_order_line_idkeyInt32Regelnummer
purchase_order_line_status_idkeyInt32Volgnummer
actionStringActie
article_idStringArtikelcode
article_location_idStringLotnummer/partijregistratie

Despite its name, the lot number.

date_createdDateTimeOffsetAangemaakt: Aanmaakdatum en -tijd

When the row was made.

date_deletedDateTimeOffsetAangemaakt: Aanmaakdatum en -tijd

When the row was moved to history.

descriptionStringOpmerkings tekst

The receipt's remark, the same as remark.

display_descriptionBooleanOpmerking meenemen als dispuut?

Whether the remark is a dispute, the same as is_dispute.

has_descriptionBooleanOpmerking aanwezig (ja/nee)
is_completeBooleanAfgewerkt

The same as PurchaseOrderLineStatuses.is_finished.

parentInt32Parent

The same as parent_status_id.

priceDecimalPrijs
purchase_delivery_noteStringPakbonnummer

The receipt number, the same as delivery_note_number.

purchase_invoice_header_financial_yearInt32Boekjaar
purchase_order_invoice_header_idStringFactuurnummer
purchase_invoice_line_idInt32Volgnummer
purchase_order_instruction_header_idInt32Volgnummer
purchase_order_instruction_line_idInt32Regelnummer
purchase_order_receipt_line_idInt32Regelnummer

The receipt line, the same as receipt_id.

quantityDecimalAantal
serial_number_idInt32Serienummer autom.: Serienummer automatisch
statusInt32Status
user_createdInt32User aanmaak

Who made the row.

user_deletedInt32User aanmaak
warehouse_address_idInt32Adresnummer
warehouse_aisle_idInt32Magazijn
warehouse_shelf_idInt32Locatie

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
PurchaseOrderHeaderPurchaseOrderHeadersone
Wingman