Leverage the Stateset API to streamline and manage your manufacturing operations effectively.
async
/await
), REST APIs, and JSON data structures.sku
, name
.Product
. Lists required components
(other Products or raw materials identified by item_id
) and their quantity
and unit
of measure. Often version-controlled.quantity
of a Product
by a certain date. References the relevant BOM
and specifies production details like priority
and target site
. Acts as the high-level production plan.Work Order
or a portion of it. Tracks the actual production run, including start/end times, status
(e.g., planned
, in_progress
, completed
), resources used, and materials consumed. It’s the operational record of production. Often linked back to the source Work Order
via work_order_id
.inventory_item_id
s (representing actual stock) from storage locations to fulfill the material requirements of an MO
. Tracks requested vs. picked quantities.inventory_item_id
vs item_id
/part_number
):
item_id
or part_number
: Represents the type of item (e.g., ‘RESISTOR-10K’). Corresponds to a Product
or raw material definition.inventory_item_id
(or similar concept): Represents a specific batch/lot/instance of that item in stock, often with its own location, quantity, and cost layer. Picks operate on these specific inventory units. Inventory movements update the quantity of specific inventory_item_id
s.inventory
resource) to ensure data accuracy.logRuntime
) and Maintenance
is vital for OEE and reliability.item_id
) for easier consumption during final assembly. Managed via BOMs and Inventory.sku
or id
will be used to link BOMs and Orders.
item_id
for components refers to other Product
SKUs or raw material identifiers.
inventory_item_id
(specific stock) and item_id
(general part number) is vital here.
completeManufacturingOrder
or require a separate inventory transaction.
unit_cost
for these finished goods is a critical accounting step often involving cost roll-ups from the MO.
logMachineRuntime
), MO planned vs. actual times, and MO quantity_completed
vs. quantity_planned
(considering scrap) to measure Availability, Performance, and Quality.
wasteAndScrap
records by reason code, item, machine, or operator to identify root causes of material loss and target areas for process improvement or training.manufacturingorder.completed
: Trigger downstream processes like FG inventory receipt, shipping notifications, or ERP updates.inventory.quantity.low
: Alert purchasing or planning when component stock drops below a threshold.pick.completed
: Update shop floor dashboards or trigger material movement confirmations.machine.status.changed
: Monitor equipment state changes for immediate visibility.error.response.status
(HTTP status code) and error.response.data
(API error details) to determine the cause (e.g., 400 Bad Request, 401 Unauthorized, 404 Not Found, 429 Rate Limited, 5xx Server Error).product
, workorder
, inventory
, etc.).productId
, bomId
, woId
, moId
, inventory_item_id
). Ensure the referenced resource exists and hasn’t been deleted. Check for typos.error.response.data
for details. Confirm required fields are present, data types match API expectations (number vs. string), dates are in ISO 8601 format, and enum values (status
, type
) are valid. Check quantity/unit consistency.inventory_item_id
s are used.