Not able to get WooCommerce orders via REST API [closed]

Question

I am trying to get the list of orders from my store via Woocommerce REST API.

http://wc.subratasarkar.com/wp-json/wc/v2/orders?consumer_key=xxxx&consumer_secret=xxxx

This is what I am getting.

{"code":"woocommerce_rest_cannot_view","message":"Sorry, you cannot list resources.","data":{"status":401}}

I created a Rest API key from Woocommerce > Settings > Advanced > REST API and using those values in the above URL.

Am I missing anything?
Is this because the site is not using https protocol?

0
, Subrata Sarkar 10 months 0 Answers 103 views 0

Leave an answer