Docs
Dashboard

ProductVariantAvailability

Object

Fields returned for product variant availability.

#

Fields


availableForPurchase
Boolean!

Indicates whether the variant is available for purchase in the current channel. If Channel, isn’t specified, it will throw an exception.

availableQuantity
Int!

Number of items of the Product Variant that are in stock.

purchaseEnabled
Boolean!

Indicates whether purchasing is currently enabled for the product and variant in the current store’s distribution channels. This does not account for publication status, active status, or inventory.

stockPolicy
StockPolicy!

The stock policy for the inventory, which determines how stock is managed.

Possible enum values
  • NOT_TRACKED

    Inventory is not tracked, so availability is not limited by a stock count.

  • TRACKED

    Inventory is tracked, so availability depends on the recorded stock.