BizKitHub
DocsAPI ReferenceWarehouse Production/bff/warehouse/production/order/create

/bff/warehouse/production/order/create

Snapshots the BOM scaled to the quantity. Status planned; nothing is reserved until start.

Warehouse productionpostBffWarehouseProductionOrderCreate

Parameters

JSON body

Request body

application/json
productCodestringRequired
productVariantCodestring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
quantitynumberRequired

Units to produce (≤ 3 decimals).

sourceWarehouseIdnumberRequired

Material is taken from this warehouse.

targetWarehouseIdnumberRequired

Finished goods are received here.

targetLocationIdnumber | nullOptional
One of 2:
Variant 1
number
Variant 2
null
targetLotCodestring | nullOptional

Lot of the finished goods. Lot-tracked products default to the order number.

One of 2:
Variant 1
string
Variant 2
null
notestring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
materialPicksobject[]Optional
Each array item:
productCodestringRequired
productVariantCodestring | nullOptional
One of 2:
Variant 1
string
Variant 2
null
lotCodestring | nullOptional

Take exactly this lot. Omit for automatic (oldest first).

One of 2:
Variant 1
string
Variant 2
null
sourceLocationIdnumber | nullOptional
One of 2:
Variant 1
number
Variant 2
null

Response schema

1 status code documented

200Success
success"true"Required
idnumberRequired
numberstringRequired

Response example

application/json
{
  "success": true,
  "id": 0,
  "number": "example_number"
}

Request example

POST /bff/warehouse/production/order/create

post
curl -X POST "https://api.bizkithub.com/bff/warehouse/production/order/create" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "productCode": "example_productCode",
  "quantity": 0,
  "sourceWarehouseId": 0,
  "targetWarehouseId": 0,
  "materialPicks": [
    {
      "productCode": "example_productCode"
    }
  ]
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key