I am using http://myurl/api/rest/customers and getting the below access denied error even I had set user role for the customer under SYSTEM > WEBSERVICES > REST ROLE and also give permission from SYSTEM>PERMISSION>USERS.

enter image description here

I am very confused how to get this error 403:

access denied as I had done each step to give permission from Magento backend.

  • Have you passed the token and key in the header when you hit the API? – Gideon Jun 11 '18 at 12:04
  • @Gideon hi, If i try to get customer list using REST API i am getting error -> screenshot -> snag.gy/3PSxvm.jpg -> URL -> and if i try to get products its working -> screenshot -> snag.gy/sePpyw.jpg -> url, can i get help regard customer API error? – zus Oct 24 '18 at 7:55
  • @zus retrieving products don't need any access. However, if to see the list of customers, you must pass the token and key. Please try to use any API client like postman to pass the creds. – Gideon Oct 24 '18 at 9:05
  • @Gideon okay, correct my token and key value is right. Token -> snag.gy/KXzE5W.jpg key -> snag.gy/Mq2BZI.jpg, if right means how can i pass the token and key? – zus Oct 24 '18 at 9:49
  • 1
    @zus I think you should follow this: thepolyglotdeveloper.com/2015/01/… or this one stackoverflow.com/questions/28045800/… – Gideon Oct 24 '18 at 18:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.