Log in to the PrestaShop Admin Panel
Step 1: Log in to the PrestaShop admin panel
1. Open your web browser and navigate to your PrestaShop admin URL (e.g., https://yourstore.com/admin).
2. Enter your admin username and password.
3. Click on the “Log in” button to access the admin panel.
Step 2: Enable the Webservice module
To use the API, you must first enable the Webservice module, which is required to generate and use API keys.
1. In the left-hand menu, go to Advanced Parameters.
2. Click on Webservice.
3. Ensure that the “Enable PrestaShop’s Webservice” option is set to “Yes.”
4. Click on the Save button to confirm the changes.
Step 3: Create a new API key
Now that the Webservice module is enabled, you can create a new API key.
1. In the Webservice section, click on the Add new Webservice key button (usually located at the top right).
2. In the “Key” field, you can either generate a random key by clicking on the “Generate” button or enter a custom key of your choice.
Step 4: Configure permissions for the API key
To define what the API key can access, you need to configure permissions:
1. In the “Permissions” section, you’ll see a list of available resources (such as customers, orders, products, etc.).
2. For each resource, select the appropriate permissions. Only the View (GET) permission is required to synchronize product data. Grant permission for these resources:
languages
currencies
categories
tags
manufacturers
products
stock_availables
content_management_system
combinations
product_options (both options and option values)
product_features (both features and feature values)
Step 5: Save the API key
Once you’ve configured the permissions:
1. Scroll down to the bottom of the page.
2. Click on the Save button to store your new API key.