Skip to main content

Storefront API 2027-01: ask storeAvailability for physical storefronts with physicalStorefront: true

Storefront API version 2027-01 lets you ask ProductVariant.storeAvailability for walk-in storefront locations with a new physicalStorefront argument, without changing existing pickup behavior. Apps that query storeAvailability can now include or exclude storefronts explicitly, and no one needs to update existing queries.

What changed

In Storefront API 2027-01, ProductVariant.storeAvailability has two new optional arguments, and StoreAvailability has two new fields:

  • pickUpEnabled: Boolean, default true: include locations that offer local pickup.
  • physicalStorefront: Boolean, default off: also include locations the merchant has marked as a physical storefront, even when they don’t offer pickup. A variant is returned for one of these only when it is in stock there, or can be sold without stock.
  • The StoreAvailability fields pickUpEnabled and physicalStorefront tell you which kind each returned location entry is.

The arguments combine with “or”: a location is returned if it matches any argument you set to true.

A location that doesn’t offer pickup is still not returned when the variant is sold out there, or when the location is closed. A location that offers pickup stays in the list when the variant is sold out, with available: false, as it does today.

Who is affected

Apps that call ProductVariant.storeAvailability on Storefront API 2027-01 (or later versions that include this change) can opt in to filtering by walk-in storefronts.

You don’t have to change anything. If you don’t pass any arguments, you still get only pickup locations, exactly as in 2026-10 and earlier. Only clients that want walk-in storefronts need to add arguments.

What to do

To also show physical storefronts alongside pickup locations, pass physicalStorefront: true:

{
product(handle: "example") {
selectedOrFirstAvailableVariant {
storeAvailability(first: 10, physicalStorefront: true) {
nodes {
location { name }
available
pickUpEnabled
physicalStorefront
}
}
}
}
}

Use this pattern in your storefront queries when you want to surface walk-in locations, and read pickUpEnabled and physicalStorefront to show the right UI for each location.

To list only walk-in storefronts and pickup stores that are also storefronts, pass pickUpEnabled: false, physicalStorefront: true. Use the returned pickUpEnabled to show a pickup button only where it is true.

Example

A shop has pickup at Leeds, pickup at Manchester (also marked as a storefront), and a walk-in storefront in Camden with pickup off. The variant is in stock at all three.

You sendYou get
nothingLeeds, Manchester
physicalStorefront: trueLeeds, Manchester, Camden
pickUpEnabled: false, physicalStorefront: trueManchester, Camden
pickUpEnabled: falsenothing

A walk-in storefront without pickup where the variant is sold out, or that is closed, isn’t returned. For Camden, pickUpEnabled is false and pickUpTime is an empty string.

A store that offers pickup stays in the list when the variant is sold out there, with available: false, as it does today. This is also true for a pickup store that is a storefront (like Manchester), whichever argument selects it. If you want only stores that have the item, keep the entries where available is true.

Notes

  • Sending null for either argument is the same as leaving it out.
  • If you switch both arguments off (for example pickUpEnabled: false and no other argument), the list is empty. This isn’t an error.
  • available keeps its meaning. For a location that doesn’t offer pickup, stock that would have to be moved to the location doesn’t count.

Related docs

Was this page helpful?