I developing mobile apps, that connect directly to woocommerce rest api. I use this plugin for authenticating, like registering, login, make an order, etc.
So the issue come, when I register new user (with default role is Customer), I try to make an order : http://123.456.789.910/lili_shop/wp-json/wc/v3/orders , it says :
{
"code": "woocommerce_rest_cannot_view",
"message": "Sorry, you cannot list resources.",
"data": {
"status": 403
}
}
Then I change user role of registered user to "Administrator", it works.
But, what I want is, a new registered user (with default role is Customer) can consume woocommerce API with JWT too, how can I achieve this?
Anyhelp will appreciate.
Thanks.
woocommerce_rest_cannot_create
, how? @JacobPeattie