# Luminous API Documentation: API Reference Manufacturing ## Manufacturing ### Work Orders - [List work orders](https://docs.joinluminous.com/api-reference/work-orders/list-work-orders.md): Return a paginated list of work orders, with optional filtering, sorting, and search. - [Create a work order](https://docs.joinluminous.com/api-reference/work-orders/create-a-work-order.md): Create a new work order. - [Get a work order](https://docs.joinluminous.com/api-reference/work-orders/get-a-work-order.md): Retrieve a single work order by its ID. - [Update a work order](https://docs.joinluminous.com/api-reference/work-orders/update-a-work-order.md): Update an existing work order. All fields are optional; only the provided fields are updated. - [Delete a work order](https://docs.joinluminous.com/api-reference/work-orders/delete-a-work-order.md): Delete a work order. Only work orders in the draft status can be deleted. - [Bulk create work orders](https://docs.joinluminous.com/api-reference/work-orders/bulk-create-work-orders.md): Create multiple work orders in a single request, optionally auto-generating related purchase orders, transfer orders, and steps. The work orders are grouped into one production batch; send `production_batch` to name it and set its vendor, dates and warehouses. - [Bulk delete work orders](https://docs.joinluminous.com/api-reference/work-orders/bulk-delete-work-orders.md): Delete multiple work orders in a single request. - [Bulk update work order status](https://docs.joinluminous.com/api-reference/work-orders/bulk-update-work-order-status.md): Update the status of multiple work orders in a single request. - [Bulk quick-complete work orders](https://docs.joinluminous.com/api-reference/work-orders/bulk-quick-complete-work-orders.md): Quick-complete multiple work orders in a single request (up to 100 at a time). - [Plan a work order](https://docs.joinluminous.com/api-reference/work-orders/plan-a-work-order.md): Plan a work order. Triggers BOM explosion for the produced SKU and generates the work order's production steps. Returns the updated work order. - [Start a work order](https://docs.joinluminous.com/api-reference/work-orders/start-a-work-order.md): Start a work order, transitioning it to the in_progress status. Returns the updated work order. - [Complete a work order](https://docs.joinluminous.com/api-reference/work-orders/complete-a-work-order.md): Complete a work order, transitioning it to the completed status. Set force to true to complete the work order even when validation checks (such as outstanding steps) would otherwise prevent completion. Returns the updated work order. If the account's work order setting to block completing without pr… - [Cancel a work order](https://docs.joinluminous.com/api-reference/work-orders/cancel-a-work-order.md): Cancel a work order, transitioning it to the cancelled status. An optional reason can be supplied. Returns the updated work order. - [Hold a work order](https://docs.joinluminous.com/api-reference/work-orders/hold-a-work-order.md): Place a work order on hold. An optional reason can be supplied. Returns the updated work order. - [Release a work order from hold](https://docs.joinluminous.com/api-reference/work-orders/release-a-work-order-from-hold.md): Release a work order from hold, returning it to its prior status. Returns the updated work order. - [Refresh a work order](https://docs.joinluminous.com/api-reference/work-orders/refresh-a-work-order.md): Refresh a work order, re-evaluating its plan and recalculating derived data. Returns a result describing the outcome of the refresh and, when available, the updated work order. ### Work Order Steps & Production - [List work order steps](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-steps.md): Return the ordered list of production steps for a work order. - [Complete a work order step](https://docs.joinluminous.com/api-reference/work-orders/complete-a-work-order-step.md): Mark a work order step as completed, recording the quantity produced and optionally the warehouse the output is produced into. - [Skip a work order step](https://docs.joinluminous.com/api-reference/work-orders/skip-a-work-order-step.md): Mark a work order step as skipped. - [Generate work order steps](https://docs.joinluminous.com/api-reference/work-orders/generate-work-order-steps.md): Generate the production steps for a work order based on its routing or bill of materials. Returns the updated work order. - [Regenerate work order steps](https://docs.joinluminous.com/api-reference/work-orders/regenerate-work-order-steps.md): Discard the existing production steps for a work order and regenerate them from its routing or bill of materials. Returns the updated work order. - [List work order step completions](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-step-completions.md): Return the step completion records logged against a work order. - [List production entries](https://docs.joinluminous.com/api-reference/work-orders/list-production-entries.md): Return the production entries recorded against a work order. - [Create a production entry](https://docs.joinluminous.com/api-reference/work-orders/create-a-production-entry.md): Record a production entry against a work order. Production entries can only be added to work orders that are in progress. - [Delete a production entry](https://docs.joinluminous.com/api-reference/work-orders/delete-a-production-entry.md): Delete a single production entry from a work order. - [Get status history](https://docs.joinluminous.com/api-reference/work-orders/get-status-history.md): Return the status change history for a work order. - [Get work order events](https://docs.joinluminous.com/api-reference/work-orders/get-work-order-events.md): Return the event log for a work order. - [Update custom fields](https://docs.joinluminous.com/api-reference/work-orders/update-custom-fields.md): Update the custom field values on a work order. Entries are merged into the work order's existing values by custom field ID, so fields omitted from the payload keep their current value. Each entry must be an object with an integer `custom_field` (the custom field definition ID) and a `value`; any ot… - [Update notes](https://docs.joinluminous.com/api-reference/work-orders/update-notes.md): Update the notes on a work order. - [Set service fee](https://docs.joinluminous.com/api-reference/work-orders/set-service-fee.md): Set the per-unit service fee (`service_unit_price`) on a draft, planned or in-progress work order. Returns the work order. - [Update alternate IDs](https://docs.joinluminous.com/api-reference/work-orders/update-alternate-ids.md): Replace a work order's alternate IDs. Works on a work order in any status. The list you send replaces the existing one; send an empty array to clear them. - [Update expected completion date](https://docs.joinluminous.com/api-reference/work-orders/update-expected-completion-date.md): Set the expected completion date on a draft, planned or in-progress work order. The date is used for planning only: changing it does not commit stock or change the work order's steps. - [Update destination warehouse](https://docs.joinluminous.com/api-reference/work-orders/update-destination-warehouse.md): Set the destination warehouse on a draft, planned or in-progress work order. Output reported after the change is received into the new warehouse; output already received stays where it is. The change is refused once a shipment is planned for the work order, since that shipment is already headed to t… - [List extra costs](https://docs.joinluminous.com/api-reference/work-orders/list-extra-costs.md): List the assembly cost lines on a work order (the work order's COGS tab), including lines created by cost rules. Each line rolls into the finished item's cost when production is reported. - [Add an extra cost](https://docs.joinluminous.com/api-reference/work-orders/add-an-extra-cost.md): Add one assembly cost line to a draft, planned or in-progress work order. Other lines are unchanged. - [Update an extra cost](https://docs.joinluminous.com/api-reference/work-orders/update-an-extra-cost.md): Change one assembly cost line on a draft, planned or in-progress work order. All three fields are required. Only lines with `source` `work_order` or `null` can be changed; a line created by a cost rule, or a line id that isn't on this work order, returns `404`. - [Delete an extra cost](https://docs.joinluminous.com/api-reference/work-orders/delete-an-extra-cost.md): Remove one assembly cost line from a draft, planned or in-progress work order. Only lines with `source` `work_order` or `null` can be removed; a line created by a cost rule, or a line id that isn't on this work order, returns `404`. Assembly orders that already exist keep the line. ### Work Order Materials & Orders - [List work order raw materials](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-raw-materials.md): Return the raw material requirements for a work order. - [List work order BOM items](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-bom-items.md): Return the bill of materials (BOM) items for a work order. - [Get work order sub-assembly stock](https://docs.joinluminous.com/api-reference/work-orders/get-work-order-sub-assembly-stock.md): Return stock information for the sub-assemblies (RFQs) of a work order. The rfq_ids query parameter is required and must be a comma-separated list of RFQ IDs. - [Receive finished goods](https://docs.joinluminous.com/api-reference/work-orders/receive-finished-goods.md): Receive finished goods for a work order, recording the completed quantity. - [Quick complete a work order](https://docs.joinluminous.com/api-reference/work-orders/quick-complete-a-work-order.md): Quickly complete a work order, optionally specifying the quantity to complete. If no quantity is provided, the full work order quantity is used. - [Adjust committed stock](https://docs.joinluminous.com/api-reference/work-orders/adjust-committed-stock.md): Adjust the committed stock quantity for a specific RFQ (sub-assembly) on a work order. - [List work order purchase order links](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-purchase-order-links.md): Return the purchase order links associated with a work order. - [Add a purchase order link to a work order](https://docs.joinluminous.com/api-reference/work-orders/add-a-purchase-order-link-to-a-work-order.md): Link a purchase order to a work order as a raw material or subcontract source. - [Remove a purchase order link from a work order](https://docs.joinluminous.com/api-reference/work-orders/remove-a-purchase-order-link-from-a-work-order.md): Remove an existing purchase order link from a work order. - [Allocate incoming stock to a work order](https://docs.joinluminous.com/api-reference/work-orders/allocate-incoming-stock-to-a-work-order.md): Allocate quantities from incoming purchase orders to a work order's RFQ requirements. Returns 422 with the message "Incoming stock cannot be allocated to a completed or cancelled work order" when the work order is completed or cancelled. - [List work order assembly order links](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-assembly-order-links.md): Return the assembly order links associated with a work order. - [List work order receiving reports](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-receiving-reports.md): Return the receiving reports associated with a work order. - [Generate purchase orders for a work order](https://docs.joinluminous.com/api-reference/work-orders/generate-purchase-orders-for-a-work-order.md): Generate purchase orders for a work order's raw material and/or subcontract requirements. - [Generate purchase orders from a work order BOM](https://docs.joinluminous.com/api-reference/work-orders/generate-purchase-orders-from-a-work-order-bom.md): Generate purchase orders for a work order based on its bill of materials, optionally with edited groups. - [Generate transfer orders from a work order BOM](https://docs.joinluminous.com/api-reference/work-orders/generate-transfer-orders-from-a-work-order-bom.md): Generate transfer orders for a work order based on its bill of materials. - [Generate a finished goods transfer order for a work order](https://docs.joinluminous.com/api-reference/work-orders/generate-a-finished-goods-transfer-order-for-a-work-order.md): Generate a transfer order moving finished goods produced by a work order to a destination warehouse. - [Create a draft assembly order for a work order](https://docs.joinluminous.com/api-reference/work-orders/create-a-draft-assembly-order-for-a-work-order.md): Create a new draft assembly order for the work order. - [Create a draft assembly order from a work order BOM item](https://docs.joinluminous.com/api-reference/work-orders/create-a-draft-assembly-order-from-a-work-order-bom-item.md): Create a new draft assembly order for a work order based on a specific bill of materials item. - [Create draft assembly orders from work order BOM items](https://docs.joinluminous.com/api-reference/work-orders/create-draft-assembly-orders-from-work-order-bom-items.md): Create draft assembly orders for a work order based on its bill of materials items. - [Assembly orders](https://docs.joinluminous.com/api-reference/assembly-orders/assembly-orders.md): Get a paginated list of assembly orders, newest first. Disassembly orders are not included. - [Create a draft assembly order](https://docs.joinluminous.com/api-reference/assembly-orders/create-a-draft-assembly-order.md): Create a **Draft** assembly order from a finished SKU and one of its BOMs, the same way Inventory > Assembly Orders > Create Assembly Order does. No work order is needed. - [Get an assembly order](https://docs.joinluminous.com/api-reference/assembly-orders/get-an-assembly-order.md): Get a single assembly order by ID. Disassembly orders return 404. - [Preview an assembly order ledger correction](https://docs.joinluminous.com/api-reference/assembly-orders/preview-an-assembly-order-ledger-correction.md): Previews correcting the produced and component quantities of a **completed** assembly or disassembly order, without writing anything. Takes the same fields as `POST /assembly-orders/{assemblyOrderId}/ledger-correction` (except `reason`) as query parameters, for example: `?produced_quantity=12&lines[… - [Correct a completed assembly order's quantities](https://docs.joinluminous.com/api-reference/assembly-orders/correct-a-completed-assembly-orders-quantities.md): Corrects a **completed** assembly or disassembly order. You can set the produced quantity and each component line's actual quantity independently. The original quantity logs are rewritten in place, later running balances on each stock shift by the on-hand change, and the stock total and bin always m… - [Preview a posted quantity correction](https://docs.joinluminous.com/api-reference/assembly-orders/preview-a-posted-quantity-correction.md): Previews rewriting the posted finished-good quantity of one completed historical transaction, without writing anything. Returns the same shape as `POST /posted-quantity-corrections`, minus `correction_id`. - [Correct a posted quantity](https://docs.joinluminous.com/api-reference/assembly-orders/correct-a-posted-quantity.md): Rewrites the posted finished-good quantity of one completed historical transaction in place, scales the order's planned quantity by the same ratio, and **by default posts a balancing adjustment so today's on-hand does not move** (a historical fix). The rewritten quantity log is rematerialized into C… ### Work Order Comments & Shipments - [List work order comments](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-comments.md): Return all comments for the given work order, including the authoring user and any attachments. - [Create a work order comment](https://docs.joinluminous.com/api-reference/work-orders/create-a-work-order-comment.md): Add a new comment to the given work order. The authenticated user is recorded as the author. - [Delete a work order comment](https://docs.joinluminous.com/api-reference/work-orders/delete-a-work-order-comment.md): Delete a comment from the given work order. - [Upload a work order comment attachment](https://docs.joinluminous.com/api-reference/work-orders/upload-a-work-order-comment-attachment.md): Upload a file attachment to a comment on the given work order. The comment is returned refreshed with its attachments. - [Download a work order comment attachment](https://docs.joinluminous.com/api-reference/work-orders/download-a-work-order-comment-attachment.md): Download the binary file for an attachment on a work order comment. - [Delete a work order comment attachment](https://docs.joinluminous.com/api-reference/work-orders/delete-a-work-order-comment-attachment.md): Delete an attachment from a work order comment. - [List work order material scrap](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-material-scrap.md): Return all material scrap entries recorded against the given work order, including the component SKU, step requirement, and authoring user. - [Record work order material scrap](https://docs.joinluminous.com/api-reference/work-orders/record-work-order-material-scrap.md): Record a material scrap entry against the given work order. Scrap cannot be recorded for draft work orders. - [List work order shipments](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-shipments.md): Return the shipments recorded against a work order. Each item is a raw shipment record. - [Create a work order shipment](https://docs.joinluminous.com/api-reference/work-orders/create-a-work-order-shipment.md): Record a new shipment against a work order. Not allowed for draft work orders. - [Update a work order shipment](https://docs.joinluminous.com/api-reference/work-orders/update-a-work-order-shipment.md): Update mutable fields on an existing work order shipment. - [Receive a work order shipment](https://docs.joinluminous.com/api-reference/work-orders/receive-a-work-order-shipment.md): Record receipt of a previously created work order shipment. Returns a 422 if the shipment has already been received. - [List work order shipment receipts](https://docs.joinluminous.com/api-reference/work-orders/list-work-order-shipment-receipts.md): Return the shipment receipts recorded against a work order. Each item is a raw shipment receipt record. - [Create a work order shipment receipt](https://docs.joinluminous.com/api-reference/work-orders/create-a-work-order-shipment-receipt.md): Record a new shipment receipt against a work order. Not allowed for draft work orders. - [Delete a work order shipment receipt](https://docs.joinluminous.com/api-reference/work-orders/delete-a-work-order-shipment-receipt.md): Delete a shipment receipt from a work order. ### Production Batches - [List production batches](https://docs.joinluminous.com/api-reference/production-batches/list-production-batches.md): Return a paginated list of production batches. - [Create a production batch](https://docs.joinluminous.com/api-reference/production-batches/create-a-production-batch.md): Create a new production batch, optionally linking work orders. - [Get a production batch](https://docs.joinluminous.com/api-reference/production-batches/get-a-production-batch.md): Return a single production batch, including its linked work orders, vendor, and production/destination warehouses. - [Update a production batch](https://docs.joinluminous.com/api-reference/production-batches/update-a-production-batch.md): Update the name, vendor, production/destination warehouses, notes, payment terms, expected completion date, or custom fields of a production batch. Only the fields you send are changed. - [Delete a production batch](https://docs.joinluminous.com/api-reference/production-batches/delete-a-production-batch.md): Delete a production batch. - [Bulk update production batch status](https://docs.joinluminous.com/api-reference/production-batches/bulk-update-production-batch-status.md): Update the status of multiple production batches at once. - [Bulk remove work orders from batches](https://docs.joinluminous.com/api-reference/production-batches/bulk-remove-work-orders-from-batches.md): Remove work orders from one or more production batches in a single request. - [List production batches available for linking](https://docs.joinluminous.com/api-reference/production-batches/list-production-batches-available-for-linking.md): Return production batches that are available to be linked to work orders. - [Add work orders to a production batch](https://docs.joinluminous.com/api-reference/production-batches/add-work-orders-to-a-production-batch.md): Link one or more work orders to a production batch. - [Remove a work order from a production batch](https://docs.joinluminous.com/api-reference/production-batches/remove-a-work-order-from-a-production-batch.md): Unlink a single work order from a production batch. - [Update fields on all work orders in a batch](https://docs.joinluminous.com/api-reference/production-batches/update-fields-on-all-work-orders-in-a-batch.md): Apply the same field edits to every open work order in a production batch. Only the fields you send are changed, and you must send at least one. - [Get production batch summary](https://docs.joinluminous.com/api-reference/production-batches/get-production-batch-summary.md): Return summary statistics for a production batch. - [Sync production batch status](https://docs.joinluminous.com/api-reference/production-batches/sync-production-batch-status.md): Recalculate and sync the status of a production batch based on its work orders. - [Update production batch status](https://docs.joinluminous.com/api-reference/production-batches/update-production-batch-status.md): Set the status of a production batch. - [List purchase order links for a production batch](https://docs.joinluminous.com/api-reference/production-batches/list-purchase-order-links-for-a-production-batch.md): Return the purchase order (PO) links associated with the given production batch. - [List assembly order links for a production batch](https://docs.joinluminous.com/api-reference/production-batches/list-assembly-order-links-for-a-production-batch.md): Return the assembly order (AO) links associated with the given production batch. - [List receiving reports for a production batch](https://docs.joinluminous.com/api-reference/production-batches/list-receiving-reports-for-a-production-batch.md): Return the receiving reports associated with the given production batch. - [List status history for a production batch](https://docs.joinluminous.com/api-reference/production-batches/list-status-history-for-a-production-batch.md): Return the status change history for the given production batch. - [List events for a production batch](https://docs.joinluminous.com/api-reference/production-batches/list-events-for-a-production-batch.md): Return the events recorded for the given production batch. - [Export a production batch](https://docs.joinluminous.com/api-reference/production-batches/export-a-production-batch.md): Export a production batch (production run) as a file download: the run document as a PDF, or the flat data export as CSV or XLSX shaped by a Production Run data template (CS-10167). - [Generate transfer orders for a production batch](https://docs.joinluminous.com/api-reference/production-batches/generate-transfer-orders-for-a-production-batch.md): Generate transfer orders for the brand-supplied BOM items of each work order in the given production batch that does not already have transfer orders. Completed and cancelled work orders are left out entirely (they are not attempted and are not counted as skipped), matching the batch's BOM view. Ret… - [List sub-assemblies for a production batch](https://docs.joinluminous.com/api-reference/production-batches/list-sub-assemblies-for-a-production-batch.md): Return the sub-assemblies associated with the given production batch. - [Export production batch sub-assemblies](https://docs.joinluminous.com/api-reference/production-batches/export-production-batch-sub-assemblies.md): Export the selected sub-assemblies for the given production batch as a binary PDF document. - [Bulk create assembly orders for sub-assemblies](https://docs.joinluminous.com/api-reference/production-batches/bulk-create-assembly-orders-for-sub-assemblies.md): Create assembly orders in bulk for the sub-assemblies of the given production batch. - [Refresh a production batch](https://docs.joinluminous.com/api-reference/production-batches/refresh-a-production-batch.md): Recalculate and refresh the given production batch. ## OpenAPI Specs - [build](/api-reference/build.yaml)