How to enable different role than administrator to access /wp-json/wc/v3/products #82
Unanswered
SoplicaIndustries
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm using your plugin to download products to a desktop version of my application. It works from admin account, but if i try to access /wp-json/wc/v3/products with token that belongs to customer account, it gives:
{ "code": "rest_authentication_error", "message": "Sorry, you do not have permission to make REST API requests.", "data": { "status": 401 } }
. When i switch the same account to admin it works. Customer role has granted read permission (members plugin). Is there any way to fix this / give a specyfic role access to that endpoint?Beta Was this translation helpful? Give feedback.
All reactions