Hi everyone,
I am working on integrating PrestaShop (version 1.7.8.x) with Make (formerly Integromat) via the API, and I have encountered issues when working with product combinations.
Problem Description:
- I can successfully fetch products using the API, but retrieving product combinations seems to be problematic. Specifically:
- The “combinations” endpoint in the PrestaShop API (e.g.,
/api/combinations
) does not seem to respond as expected, or it returns a 401 Unauthorized error despite using valid credentials. - In some cases, the combinations linked to a product (via the product ID) are not retrieved properly.
- I attempted to configure the Make HTTP module with proper Basic Auth and correct API endpoints. Here is an example of an API call I made:
ruby
Kód másolása
GET https://accessories.hu/api/combinations/[combination_id]
However, the API returns an error with the following response:
- HTTP Status Code: 401 (Unauthorized)
- I confirmed that:
- The API credentials (username: API key) are correct.
- The API is enabled in the PrestaShop admin panel.
- The necessary permissions are granted for the API key.
Steps Taken:
- I tested the API manually using tools like Postman, but the same issues persist.
- I also reviewed the PrestaShop logs and found errors related to backward compatibility for some methods, but I’m unsure if they are directly related to the API issue.
Goal:
I need to retrieve the combinations of a specific product and map them into my Make scenario for automation purposes. For example, I need to fetch the combinations of a product (like size or color variants) for inventory synchronization and further processing.
Request:
Could anyone provide guidance on:
- Correctly retrieving product combinations using the PrestaShop API?
- Proper configuration of the Make HTTP module for handling combination-related API calls?
- Any known issues or workarounds for PrestaShop combination APIs?
Thank you for your help!