I am trying to pull the customer type info from Admin REST API. I can see this info on my shopify UI when I login (Screenshot Attached). Can anyone please let me know how can I do this? Or if there is any logic of calculating this?
Also, one more information that I am looking for is returns but can’t find in API.
To retrieve the customer type information from the Admin REST API, you can use the Customers API endpoint and include the customer_type field in the query parameters. Here is an example API request URL:
This will return a JSON response containing the id, email, and customer_type fields for all customers on your store.
Regarding returns, the Shopify API provides a Returns API endpoint that you can use to manage returns on your store. You can use this API to create, read, update, and delete returns. Here is the link to the Shopify Returns API documentation: