Skip to main content

Deprecation of storefrontCustomerAccessTokenCreate Mutation

As of API version 2025-01, the storefrontCustomerAccessTokenCreate mutation is deprecated. This mutation, which was used to exchange the Customer Access Token in the Authorization header for a Storefront Customer Access Token, is no longer necessary. The Storefront API now directly supports Access Tokens from the Customer Accounts API via the @inContext BuyerInput#customerAccessToken, and can be used for cart creation and buyer updates.

Migration Path:

  1. Obtain an access token using the OAuth2 specification. Detailed steps are available here. These steps are identical to those for obtaining an access token for the Customer Accounts API.
  2. Use this access token directly with the Storefront API, replacing the deprecated storefrontCustomerAccessTokenCreate mutation.

This access token identifies your customer, enabling personalized features within the Storefront API.

For more information on the Customer Accounts API, visit Shopify.dev.

Was this section helpful?