One production order (productieorder): what is made in house, for which customer or sales order, for when. What it makes is its root assembly (ProductionOrderAssemblies with level 1). Where it is in the flow is on the open status rows of that assembly, not on the header. Finished orders move to HistoricProductionOrderHeaders under the same number.
Label in Fledge: Productieorder header
| URL | https://odata-api.fledge.nl/v2-8/ProductionOrderHeaders |
|---|---|
| Key | administration_idproduction_order_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| Write licenses | PRODUCTIE |
| Scopes | FLEDGE_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/ProductionOrderHeaders" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=production_order_header_id,block_hour_booking,cost_total_post_calculation,cost_total_pre_calculation' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/ProductionOrderHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'production_order_header_id,block_hour_booking,cost_total_post_calculation,cost_total_pre_calculation');
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/ProductionOrderHeaders" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("production_order_header_id,block_hour_booking,cost_total_post_calculation,cost_total_pre_calculation"),
"$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/ProductionOrderHeaders(administration_id=1,production_order_header_id='{production_order_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
production_order_header_idkey | String | Order nummer |
agent_id | Int32 | verwijzing naar de tabel agnt (agent) |
appreciation | Int32 | Geeft aan of veer een prod.order waardering in gebruik is: 0 = onbepaald; 1 = waardering toegepast; 2 = geen waardering. |
article_id | String | Artikelcode |
backflush | Boolean | Backflushing (j/n) |
block_hour_booking | Boolean | Blokkeer uren: Uren boeken blokkeren (j/n) When true, no hours can be booked on the order. |
business_segment_id | Int32 | Nummer |
change_date | Date | Datum wijzig |
changed_by | Int32 | User wijzig |
cost_material_post_calculation | Decimal | Kostprijs mat. nc: Kostprijs materiaal nc |
cost_material_pre_calculation | Decimal | Kostprijs mat. vc: Kostprijs materiaal vc |
cost_operations_post_calculation | Decimal | Kostprijs bew. nc: Kostprijs bewerkingen nc |
cost_operations_pre_calculation | Decimal | Kostprijs bew. vc: Kostprijs bewerkingen vc |
cost_order_price_post_calculation | Decimal | Kostprijs ovk. nc: Kostprijs orderkosten nc |
cost_order_price_pre_calculation | Decimal | Kostprijs ovk. vc: Kostprijs orderkosten vc |
cost_outsourcing_post_calculation | Decimal | Kostprijs uitb. nc: Kostprijs uitbesteding nc |
cost_outsourcing_pre_calculation | Decimal | Kostprijs uitb. vc: Kostprijs uitbesteding vc |
cost_purchase_part_post_calculation | Decimal | Kostprijs kpd. nc: Kostprijs koopdeel nc |
cost_purchase_part_post_calculation_current_level | Decimal | Kostprijs kmdelen zelf nc: Kostprijs koop/maakdelen van de schrap zelf NC. |
cost_purchase_part_pre_calculation | Decimal | Kostprijs kpd. vc: Kostprijs koopdeel vc |
cost_purchase_part_pre_calculation_current_level | Decimal | Kostprijs kmdelen zelf vc: Kostprijs koop/maakdelen van de schrap zelf VC. |
cost_total_post_calculation | Decimal | Totaal kostprijs nc Stored total of the booked cost, shown on the margin tab of a historic order. Not always recalculated: for costs prefer the sum of the assemblies' post_calculation_total. |
cost_total_pre_calculation | Decimal | Totaal kostprijs vc Stored total of the planned cost, shown on the margin tab of a historic order. Not always recalculated: for costs prefer the assemblies (see the post-calculation skill). |
created_by | Int32 | User aanmaak |
creation_date | Date | Datum aanmaak |
customer_reference | String | Uw referentie |
debtor_id | Int32 | Debiteurnummer The customer; empty or 0 for an order made for stock. |
description_1 | String | Omschrijving |
description_2 | String | Omschrijving |
description_3 | String | Omschrijving |
drawing_number | String | Tekening nummer |
last_delivery | Date | Datum laatste gereedmelding The date of the last ready report (Datum laatste gereedmelding), not a planned delivery date. |
memo | String | Memo |
net_price_gross_price_manual_price | Int32 | Netto/Bruto/Handmatig |
order_date | Date | Datum order The intake date (intakedatum). |
our_reference | String | Onze referentie |
overrun_for_operation | Decimal | Opslag bewerking |
overrun_purchase_items_post_calculation | Decimal | Opslag kpd. NC: Opslag koopdelen NC |
overrun_machine_post_calculation | Decimal | Opslag machine NC |
overrun_manual_post_calculation | Decimal | Opslag man NC |
overrun_material | Decimal | Opslag materiaal |
overrun_material_post_calculation | Decimal | Opslag mat. NC: Opslag materiaal NC |
overrun_outsourcing | Decimal | Opslag uitbesteding |
overrun_outsourcing_post_calculation | Decimal | Opslag uitb. NC: Opslag uitbesteding NC |
overrun_purchase_items | Decimal | Opslag koopdeel |
planning | Boolean | Plannen: Geeft aan of de order automatisch geimporteerd moet worden in de planningsmodule (zodra de orderstatus dit toelaat). |
planning_date | Date | Datum planning The order's planned date (planningsdatum). The production orderflow's column Planningsdatum shows the assembly's external_delivery_date instead (since 2026.17). |
priority | Int32 | Prioriteit productieorder |
production_leader | Int32 | Mannummer The employee number of the production leader (navigation ProjectLeader). |
production_order_status_id | Int32 | Status A free list per administration (ProductionOrderStatuses), not the orderflow and not kept up to date by it. For where an order is, read the root assembly's open ProductionOrderAssemblyStatuses. |
production_order_type_id | Int32 | Soort order |
project_step_id | Int32 | Projectstapnummer |
relation_id | Int32 | Relatienr. deb.: Relatienummer debiteur |
repair_order | Boolean | Reparatieorder (j/n) |
revenue_group_id | Int32 | Omzetgroep |
revision | String | Revisie |
salesman_id | Int32 | Verkopernummer |
sales_order_header_id | String | Verkoopordernummer The sales order, when set. The app's sales flow links the sales status line instead (SalesOrderLineStatuses.production_order_header_id) and doesn't always fill this: check both. |
sales_order_line_id | Int32 | Regelnummer |
selection | String | Selectie A search string the backend builds; not user data. |
subsidy_scheme_id | String | Code |
total_hours_post_calculation | Int32 | Totaal uren nc A stored total the Fledge API doesn't maintain; compute booked hours from bookings. |
total_hours_pre_calculation | Int32 | Totaal uren vc A stored total the Fledge API doesn't maintain; compute planned hours from operations. |
warehouse_address_id | Int32 | Adresnummer |
warehouse_aisle_id | Int32 | Magazijn |
warehouse_shelf_id | Int32 | Locatie |
week_order | Int32 | Week order |
week_planning | Int32 | Week planning |
work_in_progress_muko | Decimal | OHW-muko: Nettobedrag onderhanden werk MUKO dat op de order aanwezig is |
work_in_progress_on_order | Decimal | OHW-bewerkingen: Nettobedrag onderhanden werk bewerkingen dat op de order aanwezig is |
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 |
Agent | Agents | one |
Articles | Articles | one |
BusinessSegment | BusinessSegments | one |
CreatedBy | Users | one |
Debtor | Debtors | one |
ModifiedBy | Users | one |
ProductionOrderStatus | ProductionOrderStatuses | one |
ProductionOrderType | ProductionOrderTypes | one |
ProjectLeader | Employees | one |
ProjectStep | ProjectSteps | one |
Relation | Relations | one |
RevenueGroup | RevenueGroups | one |
Salesman | Salesmen | one |
SalesOrderLine | SalesOrderLines | one |
SubsidyScheme | SubsidySchemes | one |
WarehouseAddress | WarehouseAddresses | one |
WarehouseAisle | WarehouseAisles | one |
WarehouseShelf | WarehouseShelfs | one |
DocumentLinks | DocumentLinks | many |
EmployeeOperationLinks | EmployeeOperationLinks | many |
PreCalculationSubOperations | PreCalculationSubOperations | many |
ProductionOrderAssemblies | ProductionOrderAssemblies | many |
ProductionOrderAssemblyStatuses | ProductionOrderAssemblyStatuses | many |
SalesOrderLinesStatuses | SalesOrderLineStatuses | many |
ServiceProductionLinks | ServiceProductionLinks | many |
Actions
nextId
GET https://odata-api.fledge.nl/v2-8/ProductionOrderHeaders/nextId(…)Returns ProductionOrderHeaderNextIdResultDto
Licenses: BASIS, BASISAPP, PRODUCTIE