---
title: "Create Production Order"
method: POST
path: "/inventory/production/orders"
tags: ["Production Orders"]
---

# Create Production Order

`POST /inventory/production/orders`

Create a production order in DRAFT:
- Uses the recipe of item_id
- Calculates ingredient planned_qty from recipe yield
- Stores ingredient snapshot in production_order_ingredients

## Request body

- ProductionOrderCreate
  - `item_id` integer, required
  - `location_id` integer, required
  - `planned_qty` number, required
  - `uom` string, required
  - `production_date` string, nullable
  - `notes` string, nullable
  - `created_by` string, nullable

## Response `200`

Successful Response

- ProductionOrderOut
  - `id` integer, required
  - `number` string, required
  - `item_id` integer, required
  - `item_code` string, required
  - `item_name` string, required
  - `location_id` integer, required
  - `location_code` string, required
  - `location_name` string, required
  - `planned_qty` number, required
  - `actual_qty` number, nullable, required
  - `uom` string, required
  - `status` string, required
  - `notes` string, nullable, required
  - `created_by` string, nullable, required
  - `created_at` string, required
  - `production_date` string, required
  - `posted_by` string, nullable, required
  - `posted_at` string, nullable, required
  - `total_input_cost` number, nullable, required
  - `unit_output_cost` number, nullable, required
  - `ingredients` ProductionIngredient[], required
    - `id` integer, required
    - `component_item_id` integer, required
    - `component_code` string, required
    - `component_name` string, required
    - `planned_qty` number, required
    - `actual_qty` number, nullable, required
    - `uom` string, required
    - `note` string, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/bamboome/apis/contact-sync-api.md) · [All operations](https://skmtc.dev/bamboome/apis/contact-sync-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bamboome/contact-sync-api/revisions/56beadb81ad2/schema)
