Reputation: 77
I want to get the orders by specific date using WooCommerce Rest Api. The Api provides orders method which accept only ID. But I want to get the specific order at specific date.
How can I achieve this?
Thanks.
Upvotes: 4
Views: 6344
Reputation: 345
For this you'll need to look at the WooCommerce orders endpoint. Specifically around the after and before filters.
Eg.
GET wp-json/wc/v3/orders?after=2016-06-22T00:00:00&before=2016-06-22T23:59:59per_page=100
Upvotes: 6