Possible to check if a customer has an account? REST API

Highlighted
New Member
2 0 0

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! 

0 Likes
Shopify Staff
Shopify Staff
1546 76 231

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.

0 Likes