ProductionPlans
List production plans
Lists production plans for the specified company, most recent first, paged.
path Parameters
companyIdThe company GUID.
query Parameters
offsetZero-based row offset for pagination. Example: 0
limitMaximum number of rows to return (capped at 200). Example: 50
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
List production plans › Responses
Payload of Array of ProductionPlanDto
planIdcompanyIdrunIdnamestatustotalBarstotalCutstotalWastePcttotalOffcutMmapprovedByapprovedAtcreatedAtupdatedAtGet a production plan
Retrieves a single production plan with its bars, cuts, and conflicts.
path Parameters
companyIdThe company GUID.
planIdThe production plan GUID.
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Get a production plan › Responses
Payload of ProductionPlanDetailsResponse
Accept or reject production plan cut pairings
Sets ReviewStatus (Accepted=20/Rejected=30) on one or more cuts within a plan.
path Parameters
companyIdThe company GUID.
planIdThe production plan GUID.
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Accept or reject production plan cut pairings › Request Body
cutIdreviewStatusAccept or reject production plan cut pairings › Responses
Payload of ReviewCutsResponse
updatedCountApprove a production plan
Atomic, first-approval-wins: creates OrderLineItemInventoryLinks for each Accepted cut's pairing where valid, records conflicts for failures. Returns 200 even when some bars conflict — conflicts are informational, not a request error.
path Parameters
companyIdThe company GUID.
planIdThe production plan GUID.
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Approve a production plan › Responses
Payload of ApproveProductionPlanResult
planIdplanStatusbarsApprovedbarsConflictDiscard a production plan
Marks a Draft or Approved plan as Discarded. Rejected with 400 if the plan has already advanced to InProgress/Completed.
path Parameters
companyIdThe company GUID.
planIdThe production plan GUID.
Headers
GoSmarter-Api-KeyThe GoSmarter-Api-Key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
Discard a production plan › Responses
No description

