StoreFront API

AI-generated summary

Using the Storefront API for a custom Shopify storefront, the main issue is how to retrieve a logged-in customer’s existing data after authentication with customerCreate and customerAccessTokenCreate.

Key point:

  • The need is not customer creation or updating data, but reading personal information tied to a customer access token.
  • The requested data includes profile details, addresses, and payment methods.

Current development:

  • A reply pointed to a tutorial for updating customer data through the Storefront API.
  • That response did not address the core question, and a clarification was posted stating that the problem is specifically about fetching customer information, not modifying it.

Status:

  • No concrete solution was provided in the discussion.
  • The question remains open and unresolved, with a follow-up asking whether retrieving customer data via the access token is supported and, if so, how to do it.

Hey! I’m building an e-commerce using Shopify’s API to consume data from my products and customers.

I’m using Shopify’s Storefront API to create new customers and authenticating them, using the customerCreate and customerAccessTokenCreate mutations respectively. So far, so good.

In like any other modern application, I need to show the user its personal information stored on the platform: personal details, addresses, payment methods, etc. But, so far, I haven’t found how to do this using the access token.

Can you please help me?

Thanks,
Tom.

Tutorial for updating customer data: https://shopify.dev/tutorials/update-customer-data-with-storefront-api

Hi Vix, perhaps I wasn’t too clear: the problem is not setting user’s information, but GETTING its information once its logged in and I have its access token.

Hey Vix, did you have the chance to check this? I’d really appreciate the help.

Thanks!