REST API sales report returns no data (all zeroes)
-
Hi!
We would like to programatically automate some sales reporting from WooCommerce, in order to build a report that returns sales metrics by date. We want to report on metrics like gross sales, net sales, returns, number of orders, shipping, tax etc.
To achieve this we are trying to use the REST API and the endpoint
wc/v3/reports/sales
(API reference: https://woocommerce.github.io/woocommerce-rest-api-docs/#retrieve-sales-report)We have generated orders data in our WooCommerce instance, and we can see the sales metrics correctly in the WooCommerce Analytics pages.
However the
wc/v3/reports/sales
endpoint only returns the value 0 for all the metrics in the API response.What could be the reason for not getting any data through this endpoint? Are there alternative ways we can fetch this data from the REST API?
- You must be logged in to reply to this topic.