Units of Measure
List Units of Measure
List every unit of measure, ordered by type then code. Includes both system-defined units (is_system=true, read-only) and custom units.
Create Unit of Measure
Create a custom unit of measure.
Get Unit of Measure
Get a single unit of measure by id.
Update Unit of Measure
Update a custom unit of measure. All fields are optional - only submitted fields change.
Delete Unit of Measure
Delete a custom unit of measure. System units cannot be deleted, and units still referenced by product configurations, BOM lines, or manufacturing order lines return 422 with the reference count.
List Product Units of Measure
List the unit-of-measure configuration for a product: which unit is the stock unit, which are used for purchasing and sales, and the conversion factor of each unit into stock units.
Update Product Units of Measure
Replace the product's full unit-of-measure configuration in one call. Exactly one row must be the stock unit with conversion_factor 1; at most one purchase unit and at most one sales unit are allowed.
Enable Product Unit of Measure
Idempotently enable a single unit of measure for a product so a bill-of-materials or manufacturing-order line referencing it can be saved without first configuring the full unit-of-measure set. The unit is added as a pending alternate with no conversion factor (0), which lets draft documents validate; a real conversion factor must still be set before the bill of materials can be activated. Calling this repeatedly for the same unit is safe and returns the existing configuration untouched.