Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Customer Account API and Storefront API problem

Customer Account API and Storefront API problem

Kurczak
Shopify Partner
1 0 1

Hello All, 

We are developing a Headless app with Shopify as a commerce engine. We want to use the SSO and we are using the Customer Account API. In this API, after obtaining access token we can easily query to Customer Account API. 
Additionally we are trying to query and use Storefront API. We have noticed in documentation mutation: storefrontCustomerAccessTokenCreate. 

We believed that this mutation is to create the Storefront Access Token (to query Storefront API) based on the customer access token. We would like to use this access token to query customer orders from Storefront API (Not customer api - we know it is possible). To get customer from storefront API we need to have customerAccessToken, which in storefront is accessible passing username and password. Is it somehow possible to get the customer information from Storefront API using access token generated from storefrontCustomerAccessTokenCreate in Customer API? What storefrontCustomerAccessTokenCreate mutation is used for? 

Regards,
Kurczak

Replies 0 (0)