Inventory > Inventory > storefrontVariantInventory
Storefront APIInventoryInventorystorefrontVariantInventory
storefrontVariantInventory
GET:storefront/variant_inventory.json

Description

Get an inventory entry for a product variant.

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

[StorefrontVariantInventory!]

Preview (typescript)

Loading module