Create production run

POST/api/v1/inventory/production/runs

Create a new production run from a recipe. Costs are computed immediately.

Operation ID: create_run_api_v1_inventory_production_runs_post·View as markdown·OpenAPI slice

Authentication

Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.

Request body

recipe_idstringrequired

Recipe to base the run on.

namestring
total_unitsintegerrequired

Number of finished units to produce.

unit_sale_priceinteger

Expected sale price per unit in cents.

Responses

201Successful Response

successboolean
messagestring
codestring
dataRunResponse

400Bad Request - Invalid input

404Not Found - Resource does not exist

422Validation Error - Invalid data format