Shopify just released a targeted enhancement to the Storefront API that lets you surface walk‑in storefront locations in addition to traditional pickup points. In version 2027‑01, the ProductVariant.storeAvailability field now accepts a physicalStorefront argument, giving merchants and developers granular control over which locations appear in their storefront UI. This post breaks down the new arguments, who should care, and step‑by‑step code you can drop into your theme or app right now.
What’s New in Storefront API 2027‑01
The 2027‑01 version introduces two optional boolean arguments on ProductVariant.storeAvailability: pickUpEnabled (default true) and physicalStorefront (default false). At the same time, the StoreAvailability type gains two matching fields, pickUpEnabled and physicalStorefront, so the response tells you exactly why a location was returned. The logic uses an “or” combination – a location appears if it satisfies any argument you set to true.
New Arguments and Fields Explained
• pickUpEnabled (Boolean, default true) – Keeps the familiar behavior of returning locations that support local pickup. When true, the API includes pickup‑enabled stores regardless of stock status, marking them unavailable (available: false) if they’re out of stock. • physicalStorefront (Boolean, default false) – When true, the API also returns locations the merchant has flagged as a physical storefront, even if they don’t offer pickup. A storefront entry is only returned if the variant is in stock there or if the merchant allows selling without inventory. The response now includes pickUpEnabled and physicalStorefront flags for each node, letting you tailor UI elements such as “Pick up” buttons or “Visit store” links.
How It Affects Developers and Merchants
Developers building custom storefronts, mobile apps, or third‑party integrations are the primary audience. Existing queries that omit the new arguments continue to work exactly as before, returning only pickup locations. This means you can adopt the feature incrementally – no breaking changes. Merchants benefit indirectly: once their storefront displays walk‑in locations, shoppers can see nearby stores they can simply walk into, potentially boosting foot traffic. No merchant‑side configuration is required beyond marking a location as a “Physical storefront” in Shopify admin.
Implementation Guide – Querying Physical Storefronts
Below is a minimal GraphQL query that pulls both pickup and walk‑in locations for a product variant. The query requests the new flags so you can differentiate the UI presentation.
{\n product(handle: \"example\") {\n selectedOrFirstAvailableVariant {\n storeAvailability(first: 10, physicalStorefront: true) {\n nodes {\n location { name }\n available\n pickUpEnabled\n physicalStorefront\n }\n }\n }\n }\n}
Key takeaways from the response:
- If pickUpEnabled is true, render a “Pick up” button and respect the available flag (show “Out of stock for pickup” when available is false).
- If physicalStorefront is true, show a “Visit Store” link or map, regardless of pickup settings. You may still check the available flag to warn about out‑of‑stock items.
Best‑Practice Tips for UI and Data Handling
Next Steps and Checklist
- Upgrade your Storefront API version to 2027‑01 (or later).\n- Add physicalStorefront: true to any storeAvailability queries where you want walk‑in locations.\n- Update your UI components to read pickUpEnabled and physicalStorefront fields.\n- Run QA against a store that has a mix of pickup‑only, storefront‑only, and hybrid locations.\n- Monitor GraphQL response sizes; adding the extra fields increases payload by ~10 % per location.
Conclusion
The Storefront API 2027‑01 update gives you the flexibility to showcase both pickup points and traditional walk‑in stores without disrupting existing implementations. By simply toggling the physicalStorefront argument, you can enrich the shopper experience, drive foot traffic, and keep your codebase stable. Ready to bring your storefront into the physical world? Update your API version, add the new flag, and watch your location listings come alive.
