Page 1 of 4
Add Order History
Posted: Thu Mar 10, 2016 3:14 am
by ismystore
when i press on order --> view --> Add Order History
i get this error: Warning: You do not have permission to access the API!
i have make clean install of Version 2.2.0.0.
i make a new api user, in setting i have choice this api i have created, in user group i have set permission and mark all in V.
and i do not find any answer for this problem, please help
Re: Add Order History
Posted: Thu Mar 10, 2016 4:57 am
by pm-netti
ismystore wrote:when i press on order --> view --> Add Order History
i get this error: Warning: You do not have permission to access the API!
i have make clean install of Version 2.2.0.0.
i make a new api user, in setting i have choice this api i have created, in user group i have set permission and mark all in V.
and i do not find any answer for this problem, please help
Are you added API to User > API ( this need also after upgrade from 2.0.x)?
Re: Add Order History
Posted: Thu Mar 10, 2016 5:58 am
by ismystore
as i say "i have choice this api i have created"
yes i have created and apply it in the setting
Re: Add Order History
Posted: Thu Mar 10, 2016 9:35 am
by Burt65
ismystore wrote:as i say "i have choice this api i have created"
yes i have created and apply it in the setting
I have a similar issue when I login in Admin and my IP number has changed. I, like you, have setup the API username in the setting, but if your server doesn't use static IP number, you will have to click add to API every time your IP number does change...
Re: Add Order History
Posted: Thu Mar 10, 2016 1:47 pm
by ismystore
My ip is static also my server is.
I have added my ip to api.
And in the api in session i see that is created session with my ip
So its using the api but dont give access to add order history
I follow all guide in the enternet nuthing help
Please if you have any suggestions i will like to try
And find a solution.
Re: Add Order History
Posted: Thu Mar 10, 2016 1:59 pm
by Burt65
This is not clear.. Can you click on Add IP red button with the + in the top right, when you get the message?
Then follow by the green message "Success: You have modified APIs!" ?
Re: Add Order History
Posted: Thu Mar 10, 2016 2:03 pm
by ismystore
Burt65 wrote:This is not clear.. Can you click on Add IP red button with the + in the top right, when you get the message?
Then follow by the green message "Success: You have modified APIs!" ?
ygalbrami
I already press the red button and i dont see it again after i have press it.
Re: Add Order History
Posted: Sat Mar 12, 2016 5:19 pm
by ismystore
any help please
Re: Add Order History
Posted: Tue Jun 21, 2016 7:29 pm
by labeshops
I am having this same issue with 2.2 - api user is set up but when I try to change order status I get: Warning: You do not have permission to access the API!
Have searched and not seeing a solution

Re: Add Order History
Posted: Tue Jun 21, 2016 9:04 pm
by straightlight
Depending on the server relative tracking path that you may have, most may believe that an IP address could be added into the database which may not be the case due to skipped thrown exception and due to page redirection. This topic provides a step-by-step correction codes regarding tracking path versus method names that needs to be properly addressed:
http://forum.opencart.com/viewtopic.php ... od#p621811
After applying these fixes, try to see if the IP address can either be added or edited. Aftwerwards, do you notice the same message regarding not having permissions via the API?
Re: Add Order History
Posted: Tue Jun 21, 2016 11:45 pm
by labeshops
Sorry but I do not understand your reply. Is there a way to fix this?
My ip address is in the api no problem. It is just that it will not let me update the order status. I can edit the status for an order I manually added to 2.2 via admin, but none of the others - the ones that were imported from 1.5.6.4 and new ones that customers placed directly in 2.2 I get the "you do not have permission...." api error when I try to update the status adn click save.
Re: Add Order History
Posted: Tue Jun 21, 2016 11:48 pm
by straightlight
labeshops wrote:Sorry but I do not understand your reply. Is there a way to fix this?
My ip address is in the api no problem. It is just that it will not let me update the order status. I can upload the status for an order I manually added to 2.2, but none of the others - the ones that were imported from 1.5.6.4 and new ones that customers placed directly in 2.2
While you may not understand my above reply, I also included the possible fix link along with it ...
Re: Add Order History
Posted: Wed Jun 22, 2016 3:32 am
by labeshops
straightlight wrote:labeshops wrote:Sorry but I do not understand your reply. Is there a way to fix this?
My ip address is in the api no problem. It is just that it will not let me update the order status. I can upload the status for an order I manually added to 2.2, but none of the others - the ones that were imported from 1.5.6.4 and new ones that customers placed directly in 2.2
While you may not understand my above reply, I also included the possible fix link along with it ...
Which I also did not understand.
Re: Add Order History
Posted: Sat Jun 25, 2016 8:58 pm
by labeshops
Really, really need to figure this out as its getting very confusing as to which orders I've shipped and which I haven't. Tried adding the lines in straightlights other post - it didn't fix it.
Anyone know how to solve it?
Re: Add Order History
Posted: Sat Jun 25, 2016 9:26 pm
by straightlight
labeshops wrote:Really, really need to figure this out as its getting very confusing as to which orders I've shipped and which I haven't. Tried adding the lines in straightlights other post - it didn't fix it.
Anyone know how to solve it?
By providing more details on what happened after the fix above was implemented.
Re: Add Order History
Posted: Sun Jun 26, 2016 7:09 am
by labeshops
nothing. no change. i get the same error.
Re: Add Order History
Posted: Sun Jun 26, 2016 9:12 am
by straightlight
Try this new solution, it has been published momentarily:
http://forum.opencart.com/viewtopic.php ... 20#p613358
Re: Add Order History
Posted: Sun Jun 26, 2016 8:19 pm
by labeshops
my ip is shown correctly in the database. every other check that uses the api works fine - I can add new orders, edit orders, etc. I can do anything and everything EXCEPT change the order status and update the order history. That's the only time I get " Warning: You do not have permission to access the API! "
Seems to me the problem is somewhere in the api check for order history, but I don't know anything about how ajax works to know how to fix it.
Re: Add Order History
Posted: Sun Jun 26, 2016 8:53 pm
by straightlight
labeshops wrote:
my ip is shown correctly in the database. every other check that uses the api works fine - I can add new orders, edit orders, etc. I can do anything and everything EXCEPT change the order status and update the order history. That's the only time I get " Warning: You do not have permission to access the API! "
Seems to me the problem is somewhere in the api check for order history, but I don't know anything about how ajax works to know how to fix it.
Do you use openbay by changing the order status?
Re: Add Order History
Posted: Sun Jun 26, 2016 9:04 pm
by straightlight
Technical steps removed due to undistinguished token query versus API ID query from the orders.