201Successful Response
Schema: SuccessEnvelope_RecipeResponse_
successbooleanmessagestringcodestringdataRecipeResponse
/api/v1/inventory/production/recipesCreate a new production recipe with materials, output variants, and processing steps.
Bearer token authentication. Pass your DayZero API token in the Authorization header and the target business UUID in x-business-id.
Schema: RecipeCreateRequest
namestringrequireddescriptionstringoutput_unit_namestringoutput_unit_weightnumberoutput_unit_weight_unitstringconversion_paramsobjectmaterialsarray · RecipeMaterialBaseRecipeMaterialBasecategorystringGrouping label: raw_material, inclusion, packaging, or other.
namestringrequiredMaterial name.
quantity_typestringrequiredpct_of_weight | fixed_per_unit | per_n_units | fixed_per_run
quantity_valuenumberrequiredNumeric quantity parameter.
quantity_unitstringUnit of the quantity value (g, oz, ml, units …).
yield_factornumberDecimal yield 0-1.
cost_per_unitintegerCost in cents (or whole-currency units for bulk like $/MT).
cost_unitstringDenominator: per_lb, per_kg, per_mt, per_unit, per_oz, per_gal.
positionintegerDisplay ordering.
output_variant_idstringScope to a specific output variant (for inclusions).
variant_idstringOptional link to an inventory Variant.
vendor_idstringOptional link to a Vendor.
output_variantsarray · RecipeOutputVariantBaseRecipeOutputVariantBasenamestringrequiredVariant/SKU name.
allocation_pctnumberPercentage of the run.
is_remainderbooleanAuto-calc as 100% minus others.
positionintegervariant_idstringOptional link to inventory Variant.
processing_stepsarray · RecipeProcessingStepBaseRecipeProcessingStepBasenamestringrequiredStep / vendor name.
step_typestringLabel: Conversion, Co-Packing, Assembly …
allocation_typestringrequiredpct_of_total | by_output_variant | all_units
allocation_pctnumberPercentage if pct_of_total.
cost_per_unitintegerCost in cents.
cost_unitstringper_lb, per_unit, per_kg …
output_variant_idsarray · stringOutput variant IDs for by_output_variant.
positionintegervendor_idstringOptional link to Vendor.
Schema: SuccessEnvelope_RecipeResponse_
successbooleanmessagestringcodestringdataRecipeResponse