Customer Account GraphQL API2025-01
Deprecation of storefrontCustomerAccessTokenCreate
Mutation
storefrontCustomerAccessTokenCreate
MutationAs of API version 2025-01
, the 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 BuyerInput#customerAccessToken, and can be used for cart creation and buyer updates.
Migration Path:
- 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.
- Use this access token directly with the Storefront API, replacing the deprecated
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?