Label in Fledge: Planning orders header
| URL | https://odata-api.fledge.nl/v2-8/PlanningOrderHeaders |
|---|---|
| Key | administration_idplanning_order_header_idproduction_order_header_id |
| Administration | Rows belong to one administration: always filter on administration_id. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASIS |
| Write licenses | PRODUCTIE |
| 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/PlanningOrderHeaders" \
--data-urlencode '$filter=administration_id eq 1' \
--data-urlencode '$select=planning_order_header_id,production_order_header_id,date_valid,description,end_date' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/PlanningOrderHeaders');
url.searchParams.set('$filter', 'administration_id eq 1');
url.searchParams.set('$select', 'planning_order_header_id,production_order_header_id,date_valid,description,end_date');
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/PlanningOrderHeaders" + "?" + string.Join("&",
"$filter=" + Uri.EscapeDataString("administration_id eq 1"),
"$select=" + Uri.EscapeDataString("planning_order_header_id,production_order_header_id,date_valid,description,end_date"),
"$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/PlanningOrderHeaders(administration_id=1,planning_order_header_id={planning_order_header_id},production_order_header_id='{production_order_header_id}')Fields
| Field | Type | Description |
|---|---|---|
administration_idkey | Int32 | Administratienummer |
planning_order_header_idkey | Int32 | Ordernummer |
production_order_header_idkey | String | Order nummer |
date_valid | Date | Geldig t/m |
debtor_id | Int32 | Debiteurnummer |
description | String | Omschrijving order |
end_date | Date | Einddatum |
fixed | Int32 | Vastgezet |
is_finished | Int32 | Afgewerkt: Status van de order. |
is_planned | Int32 | Gepland |
is_simulation | Boolean | Simulatie order (ja/nee) |
planning_priority_id | Int32 | Prioriteitsnummer |
reference | String | Referentie |
source | Int32 | Bron van de planningsorder. (1 = productieorder; 2 = calculatie). |
start_date | Date | Begindatum |
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 |
PlanningPriority | PlanningPriorities | one |
ProductionOrderHeader | ProductionOrderHeaders | one |
PlanningOrderAssemblies | PlanningOrderAssemblies | many |
PlanningOrderOperationLinks | PlanningOrderOperationLinks | many |
PlanningOrderOperations | PlanningOrderOperations | many |
PlanningPlannedCapacities | PlanningPlannedCapacities | many |