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
planIdcompanyIdrunIdnamestatustotalBarstotalCutstotalWastePcttotalOffcutMmapprovedByapprovedByNameapprovedAtcreatedAtupdatedAtGet 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 and, in the same transaction, releases the stock reservations the plan's approval created (plan-owned links are deleted and their inventory returns to Available unless another reservation still holds it). Reservations that existed before approval are left untouched. Rejected with 400 if the plan has already advanced to InProgress/Completed or any bar has started.
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
Un-approve a production plan (Preview)
Preview: this operation may change or be removed without a new versioned route or notice period until it is announced as stable (see the API Versioning Policy). Returns an Approved plan to Draft and, in the same transaction, releases the stock reservations the plan's approval created (same release rules as discard). Bars go back to Proposed (Excluded bars stay Excluded), conflicts are cleared and cut review decisions are kept, so the plan can be reviewed and approved again. Only allowed before any bar has started; rejected with 400 otherwise.
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.
Un-approve a production plan (Preview) › Responses
Payload of ReleaseProductionPlanResult
planIdplanStatusreleasedLinkCount
