Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all orders for the logged in customer #341

Open
exhaler opened this issue Oct 27, 2023 · 0 comments
Open

Get all orders for the logged in customer #341

exhaler opened this issue Oct 27, 2023 · 0 comments

Comments

@exhaler
Copy link

exhaler commented Oct 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant