Inventory > Inventory > variantInventory
Commerce APIInventoryInventoryvariantInventory
variantInventory
GET:variant_inventory.json

Description

Get an inventory entry for a product variant.

Permission bit: "variant_inventory.read"

Topic: Inventory

Arguments

ids: [String!]!

List of variant ids. See also: Unique Identifiers


loose: Boolean

When asking for multiple items, allow returning less than was asked (in case some are missing)


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Result

[VariantInventory!]

Preview (typescript)

Loading module