2

I know I can get a specific customer by running: curl -X GET "http://127.0.0.1:32769/index.php/rest/V1/customers/2" -H "Authorization: Bearer token" How do I get the list of ALL customers?.. GET "http://127.0.0.1:32769/index.php/rest/V1/customers" produces "{"message":"Request does not match any route.","trace":null}"

asked Apr 25, 2017 at 14:46
1
  • what is the Magento version you are using? Commented Apr 25, 2017 at 14:53

1 Answer 1

5

Try following

curl -X GET -g "http://127.0.0.1:32769/index.php/rest/V1/customers/search?searchCriteria[sortOrders][0][field]=email&searchCriteria[sortOrders][0][direction]=asc" -H "Authorization: Bearer token"

Rest API reference http://devdocs.magento.com/swagger/index_20.html

answered Apr 25, 2017 at 15:19

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.