PrestaShop icon

PrestaShop

Interact with PrestaShop API

Overview

This node integrates with the PrestaShop API to create new products in a PrestaShop store. It is designed for e-commerce automation workflows where users want to programmatically add products with detailed attributes such as pricing, stock, dimensions, descriptions, images, and SEO metadata.

Common scenarios include:

  • Automatically adding new products from an external inventory system.
  • Bulk uploading product catalogs.
  • Syncing product data from other platforms or databases into PrestaShop.

Practical example:

  • A user can set up a workflow that triggers when a new product is added in their ERP system, then uses this node to create the corresponding product in their PrestaShop store with all relevant details like price, categories, images, and descriptions.

Properties

Name Meaning
Name The name of the product to be created (required).
Additional Product Fields Optional collection of additional product attributes:
- Reference Product reference or SKU (max 64 characters).
- Price Product price excluding tax.
- Wholesale Price Wholesale price of the product.
- Weight Product weight in kilograms.
- Width Product width in centimeters.
- Height Product height in centimeters.
- Depth Product depth in centimeters.
- Quantity Number of items in stock.
- Minimal Quantity Minimum quantity allowed for sale (default 1).
- Active Whether the product is active (true/false).
- Available for Order Whether the product can be ordered (true/false).
- Show Price Whether to display the price on the product page (true/false).
- Online Only Whether the product is only available online (true/false).
- Categories Comma-separated list of category IDs to assign the product to.
- Tax Rules Group ID ID of the tax rules group applied to the product.
- Manufacturer ID ID of the product manufacturer.
- Supplier ID ID of the product supplier.
- Description Full product description (multi-line text).
- Description Short Short product description (multi-line text).
- Meta Title SEO meta title (recommended max 70 characters).
- Meta Description SEO meta description (recommended max 160 characters).
- Meta Keywords SEO meta keywords.
- Link Rewrite Friendly URL slug for the product.
- State Product condition; options are New, Used, or Refurbished.
- Images Collection of images to upload with each image having:
- Image URL URL to download the image from.
- Image Binary Data Base64 encoded image data or reference to binary property.
- Is Cover Image Boolean to mark the image as the main cover image.
- Position Display order position of the image (1 = first).
Advanced Options Additional settings controlling output and context:
- Output Format Response format: JSON (recommended) or XML.
- Language ID Language ID to filter localized fields (default 1).
- Display Fields Control which fields are returned: full or custom.
- Custom Fields Comma-separated list of fields to return if "Custom Fields" is selected.
- Shop Context Scope of operation: all shops, specific shop, or shop group.
- Shop ID ID of the specific shop (if applicable).
- Shop Group ID ID of the shop group (if applicable).
- Enable Debug Mode Include debug information (request URL, method, parameters) in the response for troubleshooting.

Output

The node outputs the response from the PrestaShop API after creating the product. By default, the output is in JSON format containing the newly created product's data including its ID and all requested fields.

If XML output is selected, the response will be in XML format instead.

The json output field contains the structured product data as returned by PrestaShop, which may include:

  • Product identifiers
  • Names and descriptions
  • Pricing and stock information
  • Category assignments
  • Image references
  • SEO metadata

No binary data output is produced by this node.

Dependencies

  • Requires connection to a PrestaShop instance via its REST API.
  • An API key credential must be configured in n8n to authenticate requests.
  • Network access to the PrestaShop server is necessary.
  • Proper permissions on the PrestaShop API to create products.

Troubleshooting

  • Common issues:

    • Authentication failures due to incorrect or missing API credentials.
    • Validation errors if required fields like product name are missing or invalid.
    • Errors uploading images if URLs are inaccessible or binary data is malformed.
    • Permission errors if the API user lacks rights to create products.
    • Incorrect shop context leading to unexpected results or no product creation.
  • Error messages and resolutions:

    • "Authentication failed": Verify API key and endpoint URL.
    • "Missing required field 'name'": Ensure the product name is provided.
    • "Invalid image data": Check image URLs or base64 encoding correctness.
    • "Permission denied": Confirm API user has product creation rights.
    • "Shop context error": Validate shop or shop group IDs if using multishop features.

Enabling debug mode can help diagnose request parameters and responses.

Links and References

Discussion