customerActivate mutation is not in the scheme of my store

Solvasa
New Member
2 0 0

I am trying to activate the customer with the password entered through another form. I came across the Shopify GraphQL API customerActivate but when I tried to test it, it is giving me an error 

"message": "CustomerActivateInput isn't a defined input type (on $input)"

When I tried to find the customerActivate mutation in the schema documentation of my store I didn't get anything

Screenshot 2021-04-24 at 6.06.17 AM.png

but this customerActivate mutation is present in the official scheme documentation https://shopify.dev/graphiql/storefront-graphiql

Screenshot 2021-04-24 at 6.07.42 AM.png


Can anybody help with this? 

0 Likes
_JCC_
Shopify Staff
Shopify Staff
145 20 26

Hey @Solvasa ,

Happy to help you out with this.

In your testing using GraphiQL, what is the schema dropdown set to? customerActivate is part of our storefront api (not admin) so the schema dropdown should be set to storefront.

Regards,

John

John C | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Solvasa
New Member
2 0 0

I can't see any option on this page to change the schema https://prnt.sc/125pp7e

Somehow I managed to run in via postman, but the ID I need to pass for the customer is neither the Shopify customer ID nor the admin_graphql_api_id, So how can I get that customer ID for StoreFront APIs?

0 Likes