GitHub

ShopifyStoreAvailability

interface

import { ShopifyStoreAvailability } from '@daffodil/driver/shopify'

The availability of a product variant at a particular location. Local pick-up must be enabled in the store's shipping settings, otherwise this will return an empty result.

interface ShopifyStoreAvailability {
  __typename: "StoreAvailability"
  available: boolean
  location: ShopifyLocation
  pickUpTime: string
  quantityAvailable: number
}

Properties

__typename
"StoreAvailability"
available
boolean

Whether the product variant is in-stock at this location.

location
ShopifyLocation

The location where this product variant is stocked at.

pickUpTime
string

Returns the estimated amount of time it takes for pickup to be ready (Example: Usually ready in 24 hours).

quantityAvailable
number

The quantity of the product variant in-stock at this location.