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.
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.