> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.getmeadow.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Inventory

> How to work with product inventory

# Inventory Type

Products in Meadow can track their inventory in 1 of 2 ways that will be determined via their `inventoryType` property.

### `option` tracking

This is used for pre-packaged inventory. In some states like California, all compliant products are pre-packed so all products should be `option` tracking.

For these types of products, inventory and costs (`movingAverageCostPerUnit`) is attached to the product options as opposed to the product itself. With this case, the `option.amount` property is disregarded as everything is tracked by units. So the `quantity` of a line item in an order is exactly how much inventory will be subtracted from that product option.

### `product` tracking

This is used for weighing out inventory to be sold "deli style" and not in pre-packaged units.

Products have inventory and costs (`movingAverageCostPerUnit`) set at the product level as opposed to the product option level. An example of this would be flower product where there is a raw amount of inventory (I.E. 750 grams). When a product option is purchased, the amount of inventory used is `option.amount` \* `quantity`. For example, if you bought 2 eighths of a product option with amount 3.5, it would subtract 7 from the inventory.

### `none`

When `inventoryType` is set to `none`, it means that this product does not track inventory.
