Thursday, 29 September 2016

Fix API Issues on Opencart

For this tutorial, I will be showing you how to fix the problem 'Warning: Your IP is not allowed to access this API!' To fix this problem I will be using my opencart dashboard.

API Issue.

First, you will need to add you IP to your API, to do this you need to go on to your opencart dashboard. Click on settings on the left-hand panel, in the drop down menu click users and then API.

Dashboard - Settings [1] - Users [2] - API [3].

You need to add a new API (blue button with plus sign), there are three tabs but we will only be focusing on two:
General
  • API Name - Create a name to call your API (i have used my own name)
  • API Key - Under the large blank box is a blue button with the word generate, click this and the blank box will fill with the API Key.
  • Status - This needs to be enabled.
IP Addresses
  • IP - In this table you will need to add your IP address, click the add button and put your IP in the field provided. If you do not know your IP it will be showing in the box above the IP table.

If you refresh your dashboard the problem will still be showing, now you will need to access your settings (Dashboard - System - Settings).

Dashboard - System [1] - Settings [2].

Your store settings need editing, when you enter the settings there will be several tabs across the top of the page, you will need to click on the option tab. Scrolling through the options section you need to find checkout. Go to the bottom of the checkout section and find API User, in the box next to this option should be --- None --- , click on this and will show a drop down menu. In the drop down menu will be the API name that you created previously, select this. Save this change and you will not have the API issue again. 

Sam    



0 comments:

Post a Comment