Re: Not able to get success response for the api Retrieves a list of all users/Retrieves a single us

Not able to get success response for the api Retrieves a list of all users/Retrieves a single user

avi_geekfactory
Shopify Partner
2 0 0

Tried to use the 'Retrieves a list of all users/Retrieves a single user' api in postman but getting not found error(404)

Replies 2 (2)

lizk
Shopify Staff
246 58 78

Hi there! 

A 404 error means that the route you have specified is not available in the API. 

The admin API does not have a user's route, but it does have a customers route!

You can use this API call get a paginated list of all the customers.

curl -X GET "https://your-development-store.myshopify.com/admin/api/2022-04/customers.json" \
-H "X-Shopify-Access-Token: {access_token}"

For more information, and lists of the API endpoints available, make sure you check out the documentation on Shopify.dev! 

https://shopify.dev/api/admin-rest/2022-04/resources/customer#get-customers

To learn more visit the Shopify Help Center or the Community Blog.

avi_geekfactory
Shopify Partner
2 0 0

I want to get the user or the agent who creates the order not the customer