/availability
Get the Purple Dot stock levels for a product and all its variants. Useful for determining whether a particular variant has stock available in Purple Dot.
Request:
api_key
- Your Purple Dot store's public API keyproduct_id
- The ID of the product used by the connected store, e.g. Shopifyproduct.id
Response:
data
id
- The ID of the product used by the connected store, e.g. Shopifyproduct.id
product_code
- The product code used by the connected store, e.g. Shopifyproduct.handle
available
- Boolean indicating whether the product has any remaining Waitlist stockavailable_stock
- The number of units (across all variants) that are available on the Waitlistvariants
- An array containing all the product's variantsid
- The ID of the product used by the connected store, e.g. Shopifyvariant.id
sku
- The SKU used by the connected store, e.g. Shopifyvariant.sku
available
- Boolean indicating whether this variant has any remaining Waitlist stockavailable_stock
- The number of units available for this variant on the Waitlistavailable_in_stock
- Purple Dot's view of the number of units available for this variant in your Shopify storeoversell_enabled
- Boolean indicating Purple Dot's view if this variant has its inventory_policy set tocontinue
in Shopify. Should betrue
for any variant in a store using the Combined Cart checkout type if this variant has Waitlist stock and that Waitlist is livewaitlist_id
- Purple Dot's internal ID of the Waitlist that has stock of this variant, if any
Examples:
Last updated