Access a community of over 900,000 Shopify Merchants and Partners and engage in meaningful conversations with your peers.
Hello!
I am looking to create an app that is integrated with the Shopify Rest API. I took a look at the customers endpoint, but was not able to find any information regarding how to check whether or not a user has an active account with my Shopify Store. If they already have a customer account with my store, I would like to allow them to login with those same credentials within my app. Is this possible? Thank you for any tips or suggestions!
Hey @jiraffeThreads, you're looking for the `state` property on the customer object. You can see more on the GraphQL Customer object here:https://help.shopify.com/en/api/graphql-admin-api/reference/object/customer. You can see more information on the CustomerState type here: https://help.shopify.com/en/api/graphql-admin-api/reference/enum/customerstate.
Cheers.
Alex | 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 the Shopify Help Center or the Shopify Blog
Hey @Alex, how to tell the difference between non registered users and those who are disabled by admins?
For example i'm making the registration of the customers through the API and i need to ensure that customers which are only subscribed to newsletter can register. If i rely on the "disabled" state, that means that customers which are manually disabled would be able to register - and that makes no sense.
Only thing i'm thinking about now is to check the state and find a way if customer has password defined, if not, than i guess i can say that customer has never registered.
Best wishes
User | RANK |
---|---|
4 | |
4 | |
4 | |
3 | |
3 |