41 minutes ago
I created customer using this api - POST /admin/customers.json(https://help.shopify.com/api/reference/customer#index), and I am not sure how to login with that credentials(email and password). There is an api to get the customer info with customer id.
I tried to find a solution, but nothing yet..
Is it possible to login with email and password using admin api?
Yes it would be possible with the Storefront API, though I don't have direct experience with doing so : https://help.shopify.com/api/storefront-api/guides/updating-customers
I don't think a customer login would fit within the scope of actions we would want taking place via the Admin API.
What you're looking to do here would be a customerAccessTokenCreate mutation in the storefront graphql API. This lets you provide an email/password and will give you a valid access token. The usual use case for this is a native mobile app to do a login. Once you have that access token, you can use that in a couple ways - to associate that customer with the checkouts you create, and also if you use some webviews in your app, you can pass that access token as a certain header in your embedded browser so that the shopify site will also register them as logged-in.