Finish Production Run

Closes a production run and creates the inventory preparation event.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

The resulting state is DONE when every task is already DONE, otherwise PARTIALLY_DONE. This endpoint does not change task states — use Update Production Run Task Status first to mark tasks DONE.

Closing the run creates an inventory preparation event covering all stockable tasks, bringing the produced items into stock.

tasks

Per-task inventory metadata. The tasks array is required but may be empty — send [] to finish with no overrides. Every task referenced here must already be in DONE state and must be a stockable (recipe-based) task — submitting an IN_PROGRESS or TODO task, or a custom task, returns 400. For each entry, quantity overrides the planned quantity used on the inventory event, while lot_number and expiry_date are recorded on it.

Path Params
string
required

The ID of the production run.

Body Params
tasks
array of objects
required

Per-task inventory metadata. Only stockable (recipe-based) tasks may appear here.

tasks*
Responses

400

The production run has not been started yet or has already been finished, the payload references tasks that do not belong to this run, includes a custom task, includes a task not yet in DONE state, or contains a duplicate lot_number.

403

The user does not have permission to finish production runs.

404

Production run not found.

409

The production run is currently being modified by another request. Try again shortly.

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json