Page 1 of 4

Warning: You do not have permission to access the API! OC2

Posted: Wed Nov 19, 2014 5:49 am
by edster353
When going into sales and editing a sale I get "Warning: You do not have permission to access the API!". This is when I click continue on the customer details page of an order.

Any ideas on what is going on?

I am running Opencart 2 with default theme.

Under user groups I have made the admin able to view and modify all the options. I am also using the admin account when trying to edit the order.

Thanks in advance if anyone knows how to fix it :)

Re: Warning: You do not have permission to access the API! O

Posted: Thu Nov 20, 2014 1:49 am
by OpenCart Addons
Make sure you have applied all Access and Modify permissions to your user group.

To do this, go to:

Admin CP > System > Users > User Groups > Administrator [edit] > Select all Access and Permissions and click save.


Regards,
Joel.

Re: Warning: You do not have permission to access the API! O

Posted: Tue Nov 25, 2014 8:15 am
by edster353
Hi and thanks for the reply. The admin already has access to all options in both tabs. Any other suggestions?

Regards,
Ed.

Re: Warning: You do not have permission to access the API! O

Posted: Tue Nov 25, 2014 7:52 pm
by pm-netti
edster353 wrote:Hi and thanks for the reply. The admin already has access to all options in both tabs. Any other suggestions?

Regards,
Ed.
And Add API User in page Systems > Users > API

Re: Warning: You do not have permission to access the API! O

Posted: Tue Apr 14, 2015 7:50 pm
by jfer3
hi All,
all permissions are enabled to the user Administrator.

API is added.

No modifications done to the backend.

I am running a multi store, when i click to access the order of the secondary store. Not the default I get the error message:

Warning: You do not have permission to access the API!

Is there any place i need to go to assign the user group to the secondary store ? i cant find it yet.

Any help would be greatly appreciated.

Re: Warning: You do not have permission to access the API! O

Posted: Wed May 27, 2015 11:49 pm
by dbrooksuk
I have exactly the same problem with a single store setup - I'm currently investigating

Re: Warning: You do not have permission to access the API! O

Posted: Thu Jun 25, 2015 7:42 am
by mattalt
Hi all! I´m having the same problem. Has anyone solved it?

Re: Warning: You do not have permission to access the API! O

Posted: Thu Jun 25, 2015 11:08 am
by deepvision
Also make sure to choose a valid API user under
Sysytem -> Settings -> Option -> API User

Re: Warning: You do not have permission to access the API! O

Posted: Mon Jul 06, 2015 4:30 pm
by richardstock1
I am having this issue, did anyone solve it?

Re: Warning: You do not have permission to access the API! O

Posted: Thu Sep 17, 2015 6:43 pm
by olegbc
system->users->API->[edit]->add your IP adress

worked for me

Re: Warning: You do not have permission to access the API! O

Posted: Thu Oct 08, 2015 1:45 am
by nkolet
I have installed version 2.1.0.1 and have the same issue. I have

Checked the API in options of the store
verified API is enabled
verified admin has all permissions
added my IP address

I am still unable to change the status of an order from pending to shipped. I get the error:

Warning: You do not have permission to access the API!

Anyone have any suggestions? I have looked all over the web.

Re: Warning: You do not have permission to access the API! O

Posted: Thu Oct 08, 2015 11:58 pm
by nkolet
I have narrowed this down. It seems to only happen when the order is placed from the same IP as the admin that is changing the status. Also happens when an invoice is not created. I have installed an extension to auto create the invoices and now the client doesn't have these issues as long as they don't enter an order themselves through the store front.


Hopefully this will help someone else with this issue.

Re: Warning: You do not have permission to access the API! O

Posted: Fri Oct 09, 2015 3:44 am
by mRC
I have a similar issue but I get a pop up saying access denied on any order I view.

but I have a test site and that's working fine. I have done all of the above but same

Re: Warning: You do not have permission to access the API! O

Posted: Tue Oct 27, 2015 4:01 am
by webbouk
I have the same issue as mRC

Version 2.1.0.1

When going to Sales>Orders>view any order

I get a pop up saying:

Message from Webpage
Error: Access denied
Access denied
undefined

I've been through all the settings and cannot find a way to gain access to edit an order or add order History

Any help would be appreciated

Re: Warning: You do not have permission to access the API! O

Posted: Mon Nov 09, 2015 8:26 pm
by ls3060
Has a solution been found for this as I can't modify the status of orders placed.

Re: Warning: You do not have permission to access the API! O

Posted: Sun Nov 15, 2015 2:44 am
by webtiger
Its very simple first go into System > User > API
1 Give Name To Your API Example : " Main IP "
2 Click on Generate API
3 Make it Enable

Click on API Addressees
Click on ADD IP
Copy paste your IP

Click on Save

Then Go to System > Setting > Edit Your main Store > Click on Option
See here : API User
Select Your API USER Which was created in last Stage
For Example Select " main IP "

Regards ;D

Re: Warning: You do not have permission to access the API! O

Posted: Sun Nov 15, 2015 6:22 pm
by ls3060
I don't have a tab for the api ip address. Is there a setting somewhere that disables it. Ty

Re: Warning: You do not have permission to access the API! O

Posted: Mon Nov 16, 2015 8:29 am
by playstation4world
you ip has prob chnaged there is a little red button says add ip

try that

Re: Warning: You do not have permission to access the API! O

Posted: Tue Nov 17, 2015 12:11 am
by popencart
I upgraded to 2.1.0.1 from 2.0.3.1 yesterday.

I am getting the same message reported earlier in this forum by many users...

Also the solution mentioned have also been chaecked and is found to be ok ...... but in I have a classic case to report...

In my case API user is not getting added.... I tried n no of times.... the aded user is getting lost ..... where i dont know.... you the oopencart ppl should know....

i want solution urgently.... unable to process the orders....

otherwise i will have to revert back to old version.... i have a backup.... but not sure whether the oders placed after shifting to 2.1.0.1 will be available or will be lost....????

I am in big trouble because of this faulty upgrade....

I have seen the support from opencart is also not coming quickly....

else will have to move to prestashop... or something like that where support is available quickly...

Re: Warning: You do not have permission to access the API! O

Posted: Tue Nov 17, 2015 11:55 pm
by zlobec
Same problem for me as for popencart.

What I have found that API ID and IP are not passed in the javascript for ajax adding. I would add manually the API ID but what is it?

REgard