---
title: "POST /salesOrder/id/{id}/createProductionOrders"
method: POST
path: "/salesOrder/id/{id}/createProductionOrders"
tags: ["salesOrder"]
---

# POST /salesOrder/id/{id}/createProductionOrders

`POST /salesOrder/id/{id}/createProductionOrders`

## Request

- Base URL: `https://www.weclapp.com/api/nullapi/v2`
- URL: `https://www.weclapp.com/api/nullapi/v2/salesOrder/id/{id}/createProductionOrders`
- Auth: API key in header `AuthenticationToken`
- TypeScript: <https://skmtc.dev/weclapp/apis/weclapp-api/docs/salesOrder/id/:id/createProductionOrders/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- object
  - `orderItemIds` string[]
  - `customAttributes` CustomAttribute[]
    - `attributeDefinitionId` string
    - `booleanValue` boolean
    - `dateValue` integer
    - `entityId` string
    - `entityReferences` EntityReference[]
      - `entityId` string
      - `entityName` string
    - `numberValue` string, number
    - `selectedValueId` string
    - `selectedValues` OnlyId[]
      - `id` string
    - `stringValue` string

## Response `200`

createProductionOrders response

- object
  - `result` ProductionOrder[]
    - `id` string
    - `version` string
    - `actualEndDate` integer
    - `actualQuantity` string, number
    - `actualStartDate` integer
    - `articleId` string, required
    - `assemblyStoragePlaceId` string
    - `createdDate` integer
    - `customAttributes` CustomAttribute[]
      - `attributeDefinitionId` string
      - `booleanValue` boolean
      - `dateValue` integer
      - `entityId` string
      - `entityReferences` EntityReference[]
        - `entityId` string
        - `entityName` string
      - `numberValue` string, number
      - `selectedValueId` string
      - `selectedValues` OnlyId[]
        - `id` string
      - `stringValue` string
    - `lastModifiedDate` integer
    - `pickingInstructions` string
    - `picksComplete` boolean
    - `productionOrderItems` ProductionOrderItem[]
      - `id` string
      - `version` string
      - `actualPickDate` integer
      - `actualQuantity` string, number
      - `articleId` string
      - `createdDate` integer
      - `customAttributes` CustomAttribute[]
        - `attributeDefinitionId` string
        - `booleanValue` boolean
        - `dateValue` integer
        - `entityId` string
        - `entityReferences` EntityReference[]
          - `entityId` string
          - `entityName` string
        - `numberValue` string, number
        - `selectedValueId` string
        - `selectedValues` OnlyId[]
          - `id` string
        - `stringValue` string
      - `lastModifiedDate` integer
      - `note` string
      - `picks` ItemPick[]
        - `id` string
        - `version` string
        - `batchNumber` string
        - `bookedDate` integer
        - `confirmedByUserId` string
        - `confirmedDate` integer
        - `createdDate` integer
        - `customAttributes` CustomAttribute[]
          - `attributeDefinitionId` string
          - `booleanValue` boolean
          - `dateValue` integer
          - `entityId` string
          - `entityReferences` EntityReference[]
            - `entityId` string
            - `entityName` string
          - `numberValue` string, number
          - `selectedValueId` string
          - `selectedValues` OnlyId[]
            - `id` string
          - `stringValue` string
        - `internalTransportReferenceId` string
        - `lastModifiedDate` integer
        - `orderItemId` string
        - `quantity` string, number, required
        - `serialNumbers` string[], required
        - `sourceInternalTransportReferenceId` string
        - `sourceStoragePlaceId` string
        - `storagePlaceId` string, required
        - `transportationOrderId` string
      - `positionNumber` integer
      - `quantity` string, number
      - `targetPickDate` integer
      - `targetQuantity` string, number
    - `productionOrderNumber` string
    - `purchaseOrderItemId` string
    - `salesOrderItemId` string
    - `status` 'CANCELLED' | 'CLOSED' | 'DOCUMENTS_PRINTED' | 'ENTRY_IN_PROGRESS' | 'INTERRUPTED' | 'NEW' | 'STARTED', required
    - `statusHistory` ProductionOrderStatusHistory[]
      - `status` 'CANCELLED' | 'CLOSED' | 'DOCUMENTS_PRINTED' | 'ENTRY_IN_PROGRESS' | 'INTERRUPTED' | 'NEW' | 'STARTED'
      - `statusDate` integer
      - `userId` string
    - `targetEndDate` integer, required
    - `targetQuantity` string, number, required
    - `targetStartDate` integer, required
    - `warehouseId` string
    - `workItems` ProductionOrderWorkItem[]
      - `id` string
      - `version` string
      - `book` boolean
      - `createdDate` integer
      - `customAttributes` CustomAttribute[]
        - `attributeDefinitionId` string
        - `booleanValue` boolean
        - `dateValue` integer
        - `entityId` string
        - `entityReferences` EntityReference[]
          - `entityId` string
          - `entityName` string
        - `numberValue` string, number
        - `selectedValueId` string
        - `selectedValues` OnlyId[]
          - `id` string
        - `stringValue` string
      - `description` string
      - `lastModifiedDate` integer
      - `manualItem` boolean
      - `positionNumber` integer
      - `shortDescription` string
      - `status` 'BOOKED' | 'CLOSED' | 'OPEN', required
      - `targetEndDate` integer
      - `targetOrderTime` integer
      - `targetStartDate` integer
      - `timeType` 'SINGLE_TIME' | 'TIME_PER_UNIT', required
      - `unitTime` string, number

## Other responses

- `default`: error response

## Changes

- **2026-11-07** `0e021229755d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/weclapp/apis/weclapp-api/changes/salesOrder/id/:id/createProductionOrders/post.md)

---

[API](https://skmtc.dev/weclapp/apis/weclapp-api.md) - [All operations](https://skmtc.dev/weclapp/apis/weclapp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/weclapp/apis/weclapp-api/revisions/0e021229755d?raw)
