---
title: "Creates a new production order."
method: POST
path: "/v2/production-orders/create"
tags: ["ProductionOrdersCommand"]
---

# Creates a new production order.

`POST /v2/production-orders/create`

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Request body

- JTLPPSProductionOrdersPublicApiDataTransferObjectsV2ProductionOrdersCreateProductionOrderCommandRequest — Creates a new production order. - Request
  - `input` JTLPPSProductionOrdersPublicApiDataTransferObjectsV2ProductionOrdersCreateProductionOrderInput — Represents the input for creating a new production order, including references to the production item, the bill of materials as well as the lot configuration and scheduling details.
    - `productionItemId` string, uuid — Der Schlüssel eines Produktionsartikels.
    - `billOfMaterialsId` string, uuid
    - `lotCount` integer — The number of lots to be produced.
    - `lotSize` number — The size of each lot to be produced.
    - `targetTotalQuantity` number — The planned total quantity to be produced.
    - `isTargetTotalQuantityBelowLotSizeAllowed` boolean — Indicates whether it is allowed for this order to have a target total quantity below the lot size (true) or not (false). Defaults to false.
    - `referenceNumber` string — The reference number associated with the production order.
    - `projectNumber` string — The project number associated with the production order.
    - `notice` string — Additional note on the order that will be displayed during production.
    - `targetStartTimestamp` string, date-time — The planned start time of the production order.
    - `targetCompletionTimestamp` string, date-time — The planned completion time of the production order.

## Response `201`

Successfully created a production order.

---

[API](https://skmtc.net/jtl-software/apis/scx-authentication-api.md) · [All operations](https://skmtc.net/jtl-software/apis/scx-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jtl-software/scx-authentication-api/revisions/f979b1ea6951/schema)
