Can I filter the GET Orders request by additional parameters ?

Yes – most of the WooCommerce REST API endpoints accept additional parameters to filter the returned set of Orders. We have an example of this in the fmEcommerce Link file when filtering the Orders between 2 dates. The request $url for this looks like this:

https://www.acme.com/wp-json/wc/v1/orders?after=2017-02-01T00:00:00Z&before=2017-02-28T23:59:59Z&page=1

If you would like to filter by date modified your request would look like this:

https://www.acme.com/wc-api/v1/orders?filter[updated_at_min]=2017-02-22&filter[updated_at_max]=2017-03-25

To filter Orders by Status your request should look like this:

https://www.acme.com/wp-json/wc/v1/orders?status=processing

This website has some further examples and tips on using parameters and filtering WooCommerce Orders using the REST API.

Still need help? Contact Us Contact Us