I Registered a account on opencart
my domain is : https://ayushpateldemostore.opencart.shop/
when i try to acess login api via this doc of api refernence
https://docs.opencart.com/en-gb/system/users/api/
i am not able to call the login url that generated a session token
code snippet
import requests
s = requests.Session()
username = ''
key=''
response = s.post(
'https://ayushpateldemostore.opencart.sh ... =api/login',
data={'username':username, 'key':key}
).text
print(response)
i get following response
403 Forbidden
{"error":"You do not have permission to access this page."}
i have followed basic trouble shooting of whitelisting ip address but its still gives same error
kindly help me out
Guess you mean OpenCart Cloud ?ayushpatel wrote: ↑Fri Sep 05, 2025 5:43 pmThe issue i am facing is as follows
I Registered a account on opencart
my domain is : https://ayushpateldemostore.opencart.shop/
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
OSWorX wrote: ↑Fri Sep 05, 2025 7:17 pmGuess you mean OpenCart Cloud ?ayushpatel wrote: ↑Fri Sep 05, 2025 5:43 pmThe issue i am facing is as follows
I Registered a account on opencart
my domain is : https://ayushpateldemostore.opencart.shop/
i had basically created a trial account via
https://www.opencart.com/index.php?route=common/home
see image attached
I don't know what you're trying to do ... but I probably wouldn't do it.ayushpatel wrote: ↑Fri Sep 05, 2025 5:43 pmi have followed basic trouble shooting of whitelisting ip address but its still gives same error
kindly help me out
However, if you insist on taking this wacky path, then you should contact OpenCart support: https://www.opencart.com/index.php?rout ... rt/contact
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
That IS the OPenCart Cloud .. you really should know what you're doing!ayushpatel wrote: ↑Fri Sep 05, 2025 7:22 pmOSWorX wrote: ↑Fri Sep 05, 2025 7:17 pmGuess you mean OpenCart Cloud ?ayushpatel wrote: ↑Fri Sep 05, 2025 5:43 pmThe issue i am facing is as follows
I Registered a account on opencart
my domain is : https://ayushpateldemostore.opencart.shop/
i had basically created a trial account via
https://www.opencart.com/index.php?route=common/home
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Sorry for being little ambigouspaulfeakins wrote: ↑Fri Sep 05, 2025 10:31 pmI don't know what you're trying to do ... but I probably wouldn't do it.ayushpatel wrote: ↑Fri Sep 05, 2025 5:43 pmi have followed basic trouble shooting of whitelisting ip address but its still gives same error
kindly help me out
However, if you insist on taking this wacky path, then you should contact OpenCart support: https://www.opencart.com/index.php?rout ... rt/contact
After creating my opencart store i want to admin panel
from there i went to System->Users->API
i created an api key there, added ip in allowed ip (see image)
and from there i am trying to use this that key and user as per API given in this documentation
https://docs.opencart.com/en-gb/system/users/api/
but i keep getting error
You do not have permission to access this page.
yes opencart version is 4.x to be specific : 4.1.0.3ADD Creative wrote: ↑Mon Sep 08, 2025 3:33 pmWhat version of OpenCart is used? If 4.x then it won't have api/login.
is there any updated api reference available?
NOTE : Opencart 4 in any version is not recommended for a live site - you should consider 3.0.4.1
If you are using the Cloud - as we suspect you are - please contact their support for assistance
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Exact same thing is happening in localhost as well
i have installed opencart 4.1.0.3 on my local
from : https://www.opencart.com/index.php?route=cms/download
followed the process of setup, works correctly in local except for api part
gives same error as i mentioned first time
Are you even paying attention to what you been told for Opencart 4.x and what to expect?? Re-read above message clearly from the posted answer!ayushpatel wrote: ↑Mon Sep 08, 2025 4:47 pmExact same thing is happening in localhost as well
i have installed opencart 4.1.0.3 on my local host
Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy.
Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com
https://www.opencart.com/index.php?rout ... ad/historyayushpatel wrote: ↑Mon Sep 08, 2025 4:47 pmfrom : https://www.opencart.com/index.php?route=cms/download
From here you can download 3.0.4.1
I appreciate that it might be a little confusing , and I suspect that the issue is with coding of the page - but actually the latest release is 3.0.4.1 and it is because OC4 has so many issues - even when a new OC4 is released it is unlikely to be recommended until it has been tested - that is Opencart and always has been - Opencart does not release stable toughly tested versions - it releases for testing by the community -
Download 3.0.4.1 and start again.
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Thanks man, installed 3.0.4.1 and API works nowby mona wrote: ↑Mon Sep 08, 2025 5:30 pmhttps://www.opencart.com/index.php?rout ... ad/historyayushpatel wrote: ↑Mon Sep 08, 2025 4:47 pmfrom : https://www.opencart.com/index.php?route=cms/download
From here you can download 3.0.4.1
I appreciate that it might be a little confusing , and I suspect that the issue is with coding of the page - but actually the latest release is 3.0.4.1 and it is because OC4 has so many issues - even when a new OC4 is released it is unlikely to be recommended until it has been tested - that is Opencart and always has been - Opencart does not release stable toughly tested versions - it releases for testing by the community -
Download 3.0.4.1 and start again.
Unfortunately the OpenCart documentation hasn't been updated for version 4.x (another reason for sticking with 3.0.x). There may be some comments in the code or on GitHub.ayushpatel wrote: ↑Mon Sep 08, 2025 4:00 pmyes opencart version is 4.x to be specific : 4.1.0.3
is there any updated api reference available?
https://github.com/opencart/opencart/discussions/14815
good luck with your site
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Users browsing this forum: No registered users and 1 guest