getInventory
getInventory() → ProductInventory
Retrieves the product’s total supply and total number of purchases.
Returns: ProductInventory
Field
Type
Required
Description
totalSupply
number
✅
Total product supply. A value of -1 indicates unlimited supply.
totalPurchased
number
✅
Total product purchased
Last updated