for(TrackOrderModel trackOrderModel : ordersList)
{
order_id = trackOrderModel.getOrder_id()
//this is the method which calls API service
getDetails(order_id);
}
A simple for loop to get order details of given order id. But I'm facing the issue that API is not calling in the loop it's calling after the completion of the loop.