Skip to main content

The inventory available object

Each row represents an available quantity for a variant on an inventory location, optionally split by batch. Rows with type inventory / inventory_bundle are physical stock. Rows with type incoming / incoming_bundle are expected quantities from production orders and carry a production_order_id and an expected_delivery date.

Inventory available

ParameterData typeDefaultDescription
idint
variant_idintThe variant
product_idintThe product
typestringPossible values: inventory, inventory_bundle, incoming, incoming_bundle
inventory_location_idintThe inventory location of the quantity
batch_idintNULLThe batch of the quantity. NULL when the quantity is not batch tracked
batchstringNULLThe name of the batch
quantityintThe available quantity
b2c_quantityintNULLThe available quantity for B2C channels. NULL when no B2C reserve is configured
production_order_idintNULLThe production order the quantity is incoming from. Only set on incoming and incoming_bundle rows
production_order_delivery_note_idintNULLThe production order delivery note the quantity is incoming on
expected_deliverydateNULLWhen the incoming quantity is expected to arrive. Only set on incoming and incoming_bundle rows
created_atdatetime
updated_atdatetime
inventory_locationIf eager loadedAn object inventory location
productIf eager loadedAn object product
variantIf eager loadedAn object variant

Inventory location

ParameterData typeDefaultDescription
idint
namestringThe name of the inventory location
codestringNULLThe code of the inventory location
defaultbooleanfalseIs this the default inventory location?
location_typestringnormalPossible values: normal, consignment, virtual
activebooleantrueIs the inventory location active?

Product

ParameterData typeDefaultDescription
idint
item_numberstringThe item number of the product. This is unique accross your account
namestringThe name of the product
attributesobjectAn object with {"key": "value"} with the attributes of the product
metaobject{}An object with {"key": "value"} with custom meta data of the product. This is used for storing custom fields

Variant

ParameterData typeDefaultDescription
idint
skustringThe SKU of the variant. This is unique accross your account
eanstringNULLThe barcode for this variant
attributesobjectAn object with {"key": "value"} with the attributes of the variant. This will be Colors, Sizes, etc.
metaobject{}An object with {"key": "value"} with custom meta data of the variant. This is used for storing custom fields