Trigger Queries from workflow with n number of user's m number of query

Hi,
Imagine I have list of users > for each user I call rest orders api > make paginated calls to get all orders > process order data > then call another paginated endpoints say refunds > process all refund data ...

can I make this types of flow in workflow. I am confused about the query/ pagination part

Thanks

saw: