wc-api-php
wc-api-php copied to clipboard
Get all orders for the logged in customer
Hi,
I'm trying to get all orders for the logged in customer, using this /wp-json/wc/v3/orders however I keep getting this error message
{ "code": "woocommerce_rest_cannot_view", "message": "Sorry, you cannot list resources.", "data": { "status": 403 } }
It only works when I use the username/password of an Admin user, I know that woocommerce requires REST API keys, however i'm using an App with the woocommerce and I just want to get all orders of the logged in customer without having to go through and create an API key each time a new user registers.