2021-07 API version release
The upcoming 2021-07 release of the Storefront API includes the following new features:
You can now retrieve subscription products from the
sellingPlans object, and enable a buyer to purchase a subscription with Shopify’s native checkout.
The prices that display in a storefront can vary based on a buyer's location. You can now offer localized buyer experiences reflecting international pricing, including percentage adjustments, fixed prices, currency conversion, and rounding rules. We've shipped a new GraphQL directive called
@inContext that enables you to optionally pass in country information when fetching products, as well as new optional inputs that specify the buyer's country when creating carts and checkouts. This functionality replaces the existing presentment currency connections.
You can now display whether a product is in stock and available for local pickup using the new
Location types in the Storefront API. This enables buyers to purchase a product online and pick it up from their desired location.
The Storefront API now supports metafields on the following additional resources:
Shop. You can retrieve metafields to access information from different types of resources to enhance your commerce experience. Previously metafields were only supported on the Product and ProductVariant resources.
Review the detailed release notes for this version release.
Unstable API version release
We have also added the following features to the unstable Storefront API version:
The cart enables buyers to collect the merchandise they intend to purchase, get the estimated cost of those items, and continue to a checkout once ready. It's optimized for performance and designed to scale without any store-wide rate limits.
You can support a number of buyer experiences by narrowing down your collections query by specifying which products to fetch. For example, you can filter search results based on a subset of data, such as product size, color, and vendor.
We invite you to participate in the discussion in our new Storefront API Feedback repository on GitHub where you can share feedback on these unstable features, and explore our new proposed schema evolution in the Storefront API. We look forward to engaging with you on GitHub!
To learn more about the Storefront API, check out the new tutorials for these features.