A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Tried to use the 'Retrieves a list of all users/Retrieves a single user' api in postman but getting not found error(404)
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.
I want to get the user or the agent who creates the order not the customer