Job Item To Make Operation

Completes a job operation, optionally recording a final completed quantity and scrap.

Closes any open timers on the operation, marks setup and run complete, readies downstream operations, and — when this is the item's final operation, or a split operation that produces finished goods — receives finished goods into inventory (unless addItemsToInventory is false), completing the item on its final operation and the job once every item is done. Quantity made is added on top of quantity recorded earlier, so a caller that already reported production via add-quantity-completed should pass zero here.

post/api/jobs/{jobId}/items-to-make/{itemToMakeId}/operations/{operationId}/complete

Path parameters

jobIdstring required

The ID of the job

itemToMakeIdstring required

The ID of the item to make

operationIdstring required

The ID of the operation

Request body

quantityMadenumber double

Additional quantity completed as part of this completion, added on top of any quantity already recorded on the operation. May be zero when all quantity was recorded earlier (for example via add-quantity-completed).

quantityScrappednumber double

Quantity scrapped on this operation.

scrapReasonIdstring nullable

Id of the scrap reason to record with the scrapped quantity. Optional.

locationIdstring nullable

Id of the inventory location to receive finished goods into when this completion finishes the item (last operation). Optional; when omitted the shop's default location is used.

lotNumberstring nullable

Lot number for finished goods when the item is lot tracked. Required when this completion finishes a lot-tracked item and inventory will be created; when omitted in that case for a completion that adds quantity, a lot number is generated.

expirationDatestring date-time nullable

Expiration date for the finished-goods lot. Optional.

addItemsToInventoryboolean

Whether finished goods are added to inventory when this completion finishes the item. Defaults to true.

Response

Operation completed

jobIdstring required

The ID of the job

itemToMakeIdstring required

The ID of the item to make

operationIdstring required

The ID of the completed operation

quantityMadeThisCompletionnumber double required

The quantity added by this completion

totalQuantityCompletednumber double required

The operation's total completed quantity after this completion

quantityScrappednumber double required

The quantity scrapped recorded by this completion

operationStatusstring required

The operation's status after this action

inventoryUpdatedboolean required

Whether finished goods were added to inventory by this completion

createdInventoryTransactionIdstring nullable

The ID of the inventory transaction created by this completion, when inventory was updated