You shouldn't use REST API Endpoint for that. Check GraphQL Reference and particularly look into Paginating results with GraphQL (https://shopify.dev/api/usage/pagination-graphql). Note it's not going to be one call and you have to keep in mind that there is a bucket with a limit, where each API call has its cost.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
114 @shopify/shopify-api nodejs - Set permanent access token for private app installed on only one store
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.