Working in the REST API and checking with the postman storeConfigs, storeViews, currency etc... API working fine but I am working on Add to Cart API and it's throwing in the below response.
"message": "The consumer isn't authorized to access %resources.",
"parameters": {
"resources": "self"
},
POST URL: http://test.com/rest/V1/carts/mine/items
Bhaumik Upadhyay
9031 gold badge9 silver badges18 bronze badges
asked Aug 13, 2019 at 6:39
-
I suppose you have used the account of a valid customer? And with that token you are trying the call? Because the error message is saying that the token you have is not ok to be used for that call. Maybe you are using the same you made with the admin credentials.vbak– vbak2019年08月13日 06:46:25 +00:00Commented Aug 13, 2019 at 6:46
-
I also tried to add authentication. But not working.Kirti Nariya– Kirti Nariya2019年08月13日 06:48:35 +00:00Commented Aug 13, 2019 at 6:48
1 Answer 1
This above step will generate a token for testing your rest APIs. In Authorization by selecting type to OAuth 2.0 you have to put above token in access token field.
default