An inventory in Litium is like a real-life warehouse with an address, telephone number, e-mail address, etc.
Inventories are managed in Products > Inventory.

This is the code to create an inventory:
var item = new Inventory
{
Localizations =
{
["se"] = { Name = "lager"},
["en"] = { Name = "warehouse"},
},
Address =
{
Address1 = "address1",
Address2 = "address2"
}
};
_inventoryService.Create(item);
Inventory Item
An Inventory Item in Litium is a sub-entity of Inventory and Variant. Each variant can only have one Unit of Measurement.

Litium allows for a large number of inventories. For example, an international merchant with physical stores around the world may have 400-500 different ones. The system must keep track of all these inventories and present the current stock in each store to a customer.
To get all the inventory information every time a variant is needed to create a large usage of memory. It will take time to load everything from the database.
Inventory Item is a main entity handled by InventoryItemService. The option to handle an inventory item through the inventory or through a variant has been removed, and the previous unit-of-measurement connection with an inventory item has been moved to the variant. This makes the inventory entities cleaner and data transfer faster, which will reduce the amount of redundant data.
The inventory item for each variant is located under the Inventory tab of the product details page. Here you can update the quantity of a specific variant of an inventory item or remove it from the list.

To create a new inventory item, the variant id and original inventory item are required:
var address = new InventoryAddressInfo
{
Address1 = this.UniqueString()
};
var inventoryItem = new InventoryItem(Product1.Variant1.SystemId, inventory.SystemId)
{
CustomData = address,
InStockQuantity = 100,
};
_inventoryItemService.Create(inventoryItem);
Unit of Measurement
A Unit of Measurement (UoM) must have a name and a value must be set in the field for decimal digits (default is 0). UoM is used to determine the format of the product quantity figure. Look at the quantity field in the following image, which is shown when an order has been successfully placed:

The UoM management page is located in Cogwheel> Products> Unit of measurements and looks like this:

The set-up of a new UoM looks like this:

This is the code to create a new UoM:
var item = new UnitOfMeasurement(this.UniqueString())
{
Localizations =
{
["se"] = {Name = "styck"},
["en"] = {Name = "unit"},
},
DecimalDigits = 2,
};
_unitOfMeasurementServiceService.Create(item);
You can link the UoM to a variant. Go to the Inventory tab in the product details page product details screen and, then adjust the value of the UoM.