I am using C # to search for orders from last month (last 30 days). Magento version 2 using REST, I am using the call as follows:
The remote server returned an error: (401) Unauthorized.
If the call is:
http://magentoserver/index.php/rest/V1/orders?searchCriteria=
The server returns all orders.
It's not an authorization error, I really don't find the right way to build the search criteria. I don't find any documentation that explains how to do it
Best Answer
I'm building the code like this:
The call it's made like:
This single call only with pageSize and currentPage gives me the answer: