GET:variant_inventory.json
Commerce APIGET:variant_inventory.json

GET:variant_inventory.json

Description

Get an inventory entry for a product variant.

Permission bit: "variant_inventory.read"

Topic: Inventory

Query Parameters

ids: Comma-separated array of String, required

List of variant ids. See also: Unique Identifiers

Example: ?ids=va_EQzGqWoY,va_EQzGqWoY


loose: Boolean

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

Example: ?loose=true


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Response Body

Array of VariantInventory

Response Body Type

Loading module