I testing the REST API with the Fire Fox Rest API Client. But I am getting 403 Access Denined. I have checked with all the permissions as mentioned in the other answers but could not get through. I am new to REST API.

enter image description here

UPDATE 1:

However, by looking at below API, I have not found any information regarding Login.

http://devdocs.magento.com/guides/m1x/api/rest/Resources/resource_customers.html

UPDATE 2:

I am able to get the Login screen as below.

enter image description here

Now the question is from where will I get oauth_token ?

bumped to the homepage by Community 18 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

Please ensure that your user->role has permission for customer if you are fetching customer

Please go to system->permission->role and add permission for your user role for access.

  • Thanks, I have given all the access. Also check my update – Magento Learner Nov 29 '16 at 13:35
  • my rest api : 127.0.0.1/anusthana/api/rest/customers return 403 access denied error, but products return wokring -> 127.0.0.1/anusthana/api/rest/products -> working. May i know what is the error? @Murtuza Zabuawala – zus Oct 24 at 6:12

The URL passed for authorization has to be over https, otherwise you get the error message.

https://magentohost/admin/oauth_authorize

From the screenshot provided, I can see you have not provided the OAuth 1.0 credentials (consumer key & secret, token key & secret) as RESTClient would have shown a red dropdown labelled OAuth 1.0 on the right of Request as in the screenshot below oauth parameters provided

To enter the OAuth 1.0 credentials, select Authentication from the top menu, then OAuth 1.0. You can then fill in the text boxes with their corresponding credentials and save it by checking Remember this signature

enter image description here

In the Settings tab, change the Signature method to HMAC-SHA1

Then you are good to go.

In case you do not have any OAuth credentials, follow this post by Joshua Austill

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.