The Storefront API currently exposes these inventory-related fields on ProductVariant:
availableForSalecurrentlyNotInStockquantityAvailable
However, it’s missing inventoryPolicy, which is available in the Admin API. This field determines whether a variant allows “Continue selling when out of stock” (CONTINUE) or stops at zero inventory (DENY).
Why this is needed:
Without inventoryPolicy, there’s no way to properly fetch available variant quantities on the storefront.
For example, if a variant has quantityAvailable = 3 and a customer tries to add 5 units:
- If
inventoryPolicy = DENY, this should be prevented or at least warned - If
inventoryPolicy = CONTINUE, this should be allowed
Currently, there is no way to distinguish between these cases. We can see the quantity available, but not whether the variant allows overselling.
Request:
Could you please expose inventoryPolicy on ProductVariant ? Alternatively, exposing a specific boolean flag like continueSellingWhenOutOfStock would achieve the same goal.