Link to home
Start Free TrialLog in
Avatar of Burzhuin
Burzhuin

asked on

WooCommerce REST API question.

I do not know if anybody experienced the following problem. I am using WooCommerce REST API to retrieve data from our eCommerce website. The problem I came across is very peculiar one. I am using two filters: one order status and completion date. Order status is always "completed" and Completion date must be yesterday. Here is my call:
https://apibuild.giving.massgeneral.org/wc-api/v2/orders?consumer_key=KEY&consumer_secret=KEY&filter%5completed_at%5d=2015-02-08&filter%5bpost_status%5d=completed. I should get NO data but I received bunch of past orders. It seems to me that my filter completed_at does not work. Can you help?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Oliver Russell
Oliver Russell

Check out this tutorial on creating dashboard using WooCommerce rest api. It is based on a similar issue as you are experiencing.