In this blog, we will call rest api for get customer list in magento2.

First we need to generate admin token to get customer.
You can refer blog for generate admin token
https://www.magedad.com/magento-2-how-to-generate-admin-token-using-rest-api/


Rest API endpoint = https://domain.test/rest/V1/customers/search
Method = GET
Content type = Content-Type:application/json
Header = Authorization: Bearer xxxx_token_xxxx
Params =
searchCriteria[sortOrders][0][field]=entity_id
searchCriteria[sortOrders][0][direction]=asc


Example:
The following image shows a get customer list using a REST client.

How to get customer list using REST API in Magento 2?


I hope this blog is useful to get customer list using Rest API. In case, I missed anything or need to add some more information, Don’t heisted to leave a comment in this blog, I’ll get back with some positive approach.

Keep liking 👍 Keep sharing 📣 Keep loving ❤️ Keep inspiring 🤩

9 Comments

  1. if you are looking whatsapp bulk message sender , web scraper, social leads extractor for free with original license for 1 year. join our telegram channel by clicking my name.

  2. If you want to get whatsapp Bulk sender For Free , Join our telegram Channel to get 1 year free license. in our channel there has many more premium tools for completely free.

  3. If you are looking for Bulk email sending software with allow unlimited smtp,subject,body messsage,attachments then Qualify Bulk Mailer is the Best Bulk email sender software.

  4. if you work as freelancer if any buyer message you on fiverr, upwork, freelancer or anywhere Quick Alert for Freelancers and Entrepreneurs Software will instantly notified you by Phone call.

  5. Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?

Write A Comment