2022-07 release notes

The API version release date and the date that the version is no longer supported
Release date Date version is no longer supported
July 1, 2022 July 1, 2023

The 2022-07 version of Shopify's APIs includes new ways to manage deferred purchase options and app discount types. This release also includes new ways to create and manage discounts with Function APIs.

What's new in 2022-07

The following features were added in version 2022-07 of Shopify's APIs.

GraphQL Admin API changes:

GraphQL Storefront API changes:

  • Query the Cart object to retrieve the total number of items in a cart (totalQuantity) as well as the CartLineEstimatedCost object.
  • HasMetafields now accepts a list of metafield namespaces and keys, and returns a list of associated metafields that match the given namespaces and keys. HasMetafields.metafields paginated connection is deprecated.
  • Set checkout charges for deferred purchase options to secure customers' commitments to orders before the orders are fulfilled.
  • Query the urlRedirect object to retrieve information about a URL redirect on an online store.

GraphQL Function API changes:

  • Create an order discount that's applied to all merchandise in the cart.
  • Create a product discount that's applied to a particular product or product variant in the cart.
  • Create a shipping discount that's applied to one or more shipping rates at checkout.

REST Admin API changes:

  • Use the /set_fulfillment_orders_deadline endpoint to set the latest date and time by which fulfillment orders need to be fulfilled.
  • Use the Rest Admin API to manage dispute evidence.
  • Use the Rest Admin API to permit a SKU to be stocked at multiple fulfillment services or merchant-managed locations.
  • The REST Admin API no longer supports XML-format responses and payloads. If you're using XML for REST Admin API requests and payloads, then you need to switch to using JSON format.