Skip to main content

Inventory

ION tracks parts by serial number or lot number. You can also leave a part untracked and record only its quantity. Part inventory holds information about a part and sets it up so you can track it in runs and aBOM construction.

Inventory tracking types

Query part inventories

List part inventory with a filter:
Set the filter variables:
Get a single part inventory record by ID:

Create part inventories

When you specify no quantity, the inventory object has a quantity of 0. You can also autogenerate the serial number or lot number. Create the inventory with this mutation:
A serialized part can also belong to a lot, so the input can include a lot number. A serial-tracked part cannot have a quantity greater than 1. Set the variables for a serialized part:
Set the variables for a lot-tracked part:
Autogenerate a serial or lot number with these variables:

Update inventory items

You can change almost all the fields on an inventory object except its relation to the part it is an instance of. All the quantity and tracking-type validations enforced on creation are also enforced on update. Update the inventory with this mutation:
Set the variables:

Delete part inventories

Delete the inventory with this mutation:
Set the variables:

Issue parts to runs

Part kits

Part kits let you allocate specific parts and quantities for a run. To create a part kit, you must already have a run. See the Runs example for how to create one. To remove parts from inventory and attach them to the run that consumes them, use a part kit object. Create a kit with this mutation:
Set the variables:

Issue inventory to kits

To move parts from inventory into the part kit, use the issueItemToKit mutation. Whether a part is serial-tracked, lot-tracked, or untracked, you reference its partInventoryId and, when the item is not serial-tracked, the quantity you want to issue to that kit: Issue an item to the kit with this mutation:
Set the variables:
Issuing serials, lots, or untracked parts uses the same issueItemToKit mutation. When you issue parts to a kit, the kit shows the quantity of that required part fulfilled as issuedQuantity. The quantity is decremented from the original inventory object.

Move parts back to inventory

Once a serial-tracked part is built, move it back to inventory for use on a higher-level assembly. Move an item back to inventory with this mutation:
Set the variables:
You must include the quantity you are moving back to inventory. For a lot-tracked or untracked item, this quantity can be less than the full amount originally issued.

Query part kits

List part kits with a filter:
Set the filter variables: