Create Work Order from Existing

View as Markdown
Creates a kitting work order based on an existing shipment, including steps, line items, fulfillment center, and product details.

Authentication

AuthorizationBearer

Authentication using Personal Access Token (PAT) token

OR
AuthorizationBearer
OAuth2 authentication using JWT tokens

Request

Request containing the details for creating the work order
fulfillment_center_idintegerRequired1-2147483647
The fulfillment center id associated with the work order.
shipment_idintegerRequired1-2147483647
Id of the shipment to copy line items and details from when creating the kitting work order.
end_kitted_quantityinteger or nullOptional1-2147483647

Number of end-kitted units to produce. When provided, overrides both the quantity and expected quantity from the original shipment. If not provided, the original shipment’s quantity and expected quantity are used.

line_item_lotslist of objects or nullOptional

Optional per-component lot overrides. Each entry’s inventory_id must match a component on the source shipment, and inventory_id must not repeat across entries. Entries with a lot_number are validated against GlobalInventory before the request is accepted; entries with only an inventory_id are a no-op. A lot_date without a lot_number is rejected. Components not listed here use the default lot-selection strategy.

lot_datedatetime or nullOptional
Lot expiration date to be associated with the work order.
lot_numberstring or nullOptional
Lot number to be associated with the work order.

Response

Success
shipment_idintegerOptional
Id of the created shipment

Errors

500
Internal Server Error