Preview Production Schedule
Beta/v1/operations/production-schedules/actions/previewThis endpoint is idempotent. Learn more
Runs the production scheduling solver and returns the plan without saving it.
This is the inspection surface for the scheduler: it takes the same path a generated schedule will take, minus the write, so a plan can be reviewed and compared before anything depends on it. Machines must be marked as the planning constraint in production schedule settings, otherwise there is nothing to schedule.
planning_as_ofoptional string (date-time)The instant to plan against. Defaults to now.
horizon_weeksoptional integerOverrides the configured horizon for this preview only.
demand_basisoptional stringenumValues:trailing_12seasonal_emaOverrides the configured demand basis for this preview only.
objectstringenumValues:production_schedule_previewResource type identifier.
solver_versionstringVersion of the solver that produced this plan.
planning_as_of_atstring (date-time)The instant the plan was calculated against.
The computed inventory policy per item, ordered by constraint run hours descending.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
null when the last page has been reached.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
null while on the first page.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of objectResources in this page.
itementitynullableThe item this policy is for.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
skustringSKU of the item.
annual_demandnumberDemand used for planning, annualized.
weekly_demandnumberDemand used for planning, per week.
seconds_per_unitnumberHow long one unit occupies the constraint.
unit_costnumberStandard cost per unit.
setup_costnumberCost of one changeover, used as the setup cost in the lot-size calculation.
holding_costnumberAnnual cost of holding one unit.
eoq_unitsnumberEconomic order quantity.
constraint_lead_time_weeksnumberObserved or default lead time at the constraint.
finish_lead_time_weeksnumberLead time from the constraint to sellable stock.
safety_stock_primarynumberBuffer held at the constraint, pooled across the finished goods it feeds.
safety_stock_downstreamnumberBuffer held as finished goods.
reorder_pointnumberStock position at which a campaign is triggered.
order_up_tonumberCeiling on how far ahead this item is built.
on_hand_echelonnumberStock on hand at the constraint plus everything downstream of it.
on_hand_greigenumberStock sitting at the constraint stage on its own.
average_greige_inventorynumberWhat the constraint stage holds on average: its buffer plus half a campaign.
max_greige_inventorynumberWhat the constraint stage holds at its peak: its buffer plus a whole campaign.
weeks_of_covernumberWeeks of demand the current stock covers.
abc_classstringnullableenumValues:abcABC class by share of constraint run hours.
annual_run_hoursnumberConstraint hours this item's annual demand consumes.
The planned production blocks.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
null when the last page has been reached.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
null while on the first page.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of objectResources in this page.
itementitynullableThe item to produce.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
skustringSKU of the item.
machineentitynullableThe machine assigned to the campaign.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
week_indexintegerZero-based week offset from the start of the horizon.
unitsnumberQuantity to produce.
lotsintegerWhole lots the quantity rounds to.
run_hoursnumberConstraint hours the campaign consumes.
Projected stock position per item across the horizon.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
null when the last page has been reached.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
null while on the first page.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of objectResources in this page.
itementitynullableThe item.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
on_hand_by_weekarray of numberProjected stock at the end of each week of the horizon.
diagnosticsobjectWhat the solver could not do.
eoq_capped_skusarray of stringItems whose economic lot size was reduced to fit one machine-week, meaning shorter and more frequent campaigns.
unschedulable_skusarray of stringItems that cannot fit even a single lot into a machine-week and are therefore never scheduled.
capacity_starved_skusarray of stringItems below their reorder point that never won a slot in the horizon. This is the signal that the plant is short of capacity.
items_without_run_ratearray of stringItems with no measured run rate, which cannot be scheduled because their machine time is unknown.
excluded_item_countintegerNumber of items the merchant has excluded from planning.
constraint_machine_countintegerMachines the constraint department contributed to this solve.
measured_batch_countintegerBatches found on those machines in the demand window. Zero means nothing has been scanned there, which is why a plan can be empty even with machines configured.
machines_without_stepintegerMachines in the constraint department with no production step. Their campaigns derive no downstream department work.
changeover_slope_minutesnumberCalibrated changeover minutes per additional input.
average_inputs_addednumberAverage inputs a product transition introduces, measured from history.
Every demand override that moved a number.
objectstringenumValues:listResource type identifier.
page_infoobjectPagination metadata.
next_page_urlstringnullableRelative URL that fetches the next page of results.
null when the last page has been reached.
previous_page_urlstringnullableRelative URL that fetches the previous page of results.
null while on the first page.
has_next_pagebooleanWhether more results exist after this page.
has_prev_pagebooleanWhether results exist before this page.
dataarray of objectResources in this page.
overrideentitynullableThe override that was applied.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
itementitynullableThe item whose demand changed.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
month_starts_atstring (date-time)The first instant of the month the override applied to.
beforenumberDemand before the override.
afternumberDemand after the override.
adjustmentstringenumValues:absolutedelta_unitsdelta_percentHow the override was expressed.
reasonstringnullableenumValues:new_customerlost_accountpromotionWhy the override exists.
Responses
Successful response for Preview Production Schedule