A finished production order (productiehistorie), moved here when its root assembly was processed. The key is the order's number. Its assemblies, with the final pre- and post-calculation, are in HistoricProductionOrderAssemblies.

Label in Fledge: Hist. productieorderheaders: Historische productieorderheaders

URLhttps://odata-api.fledge.nl/v2-8/HistoricProductionOrderHeaders
Keyadministration_idhistoric_production_order_header_id
AdministrationRows belong to one administration: always filter on administration_id.
OperationsGET listGET onePOSTPATCHDELETE
Read licensesBASISBASISAPP
Write licensesPRODUCTIEBEHEER
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/HistoricProductionOrderHeaders" \
  --data-urlencode '$filter=administration_id eq 1' \
  --data-urlencode '$select=historic_production_order_header_id,debtor_id,historical_date,date_created' \
  --data-urlencode '$top=50' \
  -H "Authorization: Bearer $TOKEN"
const url = new URL('https://odata-api.fledge.nl/v2-8/HistoricProductionOrderHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'historic_production_order_header_id,debtor_id,historical_date,date_created');
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/HistoricProductionOrderHeaders" + "?" + string.Join("&",
    "$filter=" + Uri.EscapeDataString("administration_id eq 1"),
    "$select=" + Uri.EscapeDataString("historic_production_order_header_id,debtor_id,historical_date,date_created"),
    "$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/HistoricProductionOrderHeaders(administration_id=1,historic_production_order_header_id='{historic_production_order_header_id}')

Fields

FieldTypeDescription
administration_idkeyInt32Administratienummer
historic_production_order_header_idkeyStringOrdernummer
article_idStringArtikel
business_segment_idInt32Nummer
created_byInt32User aanmaak van de order
customer_referenceStringUw referentie
date_createdDateDatum aanmaak van de order
debtor_idStringDebiteur gekoppelde verkoop

The customer of the linked sales order.

description_1StringOmschrijving
description_2StringOmschrijving
description_3StringOmschrijving
drawing_numberStringTekeningnr.: Tekeningnummer
financial_yearInt32Boekjaar
historical_dateDateDatum historie

When the order moved to history.

memoStringMemo
order_dateDateDatum order
order_type_idInt32Ordersoort
our_referenceStringOnze referentie
overrun_machine_time_post_calculationDecimalOpslag machine uren NC
overrun_manual_time_post_calculationDecimalOpslag man uren NC
overrun_material_post_calculationDecimalOpslag materiaal NC
overrun_material_pre_calculationDecimalOpslag materiaal VC
overrun_operation_pre_calculationDecimalOpslag bewerking VC
overrun_outsourcing_post_calculationDecimalOpslag uitbesteding NC
overrun_outsourcing_pre_calculationDecimalOpslag uitbesteding VC
overrun_purchase_part_post_calculationDecimalOpslag koopdeel NC
overrun_purchase_part_pre_calculationDecimalOpslag koopdeel VC
planning_dateDateDatum planning
production_leaderInt32Mannummer
production_order_status_idInt32Status
project_steps_idInt32Projectstapnummer
relation_idInt32Relatienr. deb.: Relatienummer debiteur
revisionStringRevisie
subsidy_regulation_idStringCode
user_historyInt32User historie
warehouse_address_idInt32Adres
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
ArticleArticlesone
BusinessSegmentBusinessSegmentsone
ProductionOrderStatusProductionOrderStatusesone
ProjectLeaderEmployeesone
ProjectStepProjectStepsone
SubsidySchemeSubsidySchemesone
DocumentLinksDocumentLinksmany
HistoricSalesOrderLineStatusesHistoricSalesOrderLineStatusesmany
HistoricSalesOrdersHistoricSalesOrdersmany
ProductionOrderAssembliesHistoricProductionOrderAssembliesmany
SalesOrderLineStatusesSalesOrderLineStatusesmany
Wingman