// Fetch all orders
Dictionary<string, string> parameters = new Dictionary<string, string>
{
{ "status", "processing" }
};
List<Order> orders = await wc.Order.GetAll(parameters);
I have noticed that when I call the GetAll() function, it excludes the latest order or even the first order sometimes.
Example:
Order 1 | Processing
Order 2 | Processing
Order 3 | Processing
Order 4 | Processing
The function returns Order 1, Order 2, and Order 3, excluding order 4.
Also vice versa, sometimes it returns Order 2, and Order 3, and Order 4, excluding order 1.
Have anyone else experienced this issue? Is there a way to prevent this from happening? I also noticed when I added the parameter "order", "asc", that was causing issue with excluding the last order as well.
Thank you!