I'm looking to differentiate between a customer who has created an account on my store and one that has declined my invitation to create an account. The API documentation says that that the 'state' field would assist with this but it has the same value for both scenarios.
The state of the customer's account with a shop. The state can be changed in the Shopify admin or by the customer, but not through the API. Default value:
disabled. Valid values:
Anyone got ideas?
I propose you to use this liqud customer object - https://help.shopify.com/themes/liquid/objects/customer
Hope it helps!)