Actions26
- Product Actions
- Order Actions
- Customer Actions
- Category Actions
- Stock Actions
Overview
This node integrates with the PrestaShop API to update customer information. It allows users to modify details of an existing customer in a PrestaShop store by specifying the customer's ID and the fields to update. This is useful for automating customer data management, such as correcting contact details, adding notes, or updating company information.
Practical examples:
- Automatically update a customer's email address after they submit a form.
- Add or modify private notes about customers based on interactions.
- Change customer company or website information from external CRM systems.
Properties
| Name | Meaning |
|---|---|
| Customer ID | The unique identifier of the customer to update (must be a positive integer). |
| Update Fields | Collection of fields to update for the customer: |
| - Email: Customer's email address (must be a valid email format). | |
| - First Name: Customer's first name. | |
| - Last Name: Customer's last name. | |
| - Company: Customer's company name. | |
| - Website: Customer's website URL (must start with http:// or https://). | |
| - Note: Private note about the customer (multi-line text). | |
| Advanced Options | Additional settings controlling output and context: |
| - Output Format: Choose between JSON (recommended) or XML response formats. | |
| - Language ID: Filter localized fields by language ID (default is 1). | |
| - Display Fields: Select which fields to return — full set or custom list. | |
| - Custom Fields: Comma-separated list of specific fields to display when "Custom Fields" is selected. | |
| - Shop Context: Define scope for multishop environments (all shops, specific shop, or shop group). | |
| - Shop ID: ID of the specific shop (shown if "Specific Shop" is selected). | |
| - Shop Group ID: ID of the shop group (shown if "Shop Group" is selected). | |
| - Enable Debug Mode: Include debug info (URL, method, parameters) in the response for troubleshooting. |
Output
The node outputs the updated customer data in the chosen format (JSON by default, or XML if selected). The main output is a JSON array where each item corresponds to the updated customer record, containing the fields as requested via the display options.
If debug mode is enabled, additional metadata such as the request URL, HTTP method, and parameters used will be included in the output to assist with troubleshooting.
No binary data output is produced by this node.
Dependencies
- Requires connection to a PrestaShop instance via its REST API.
- Needs an API key credential configured in n8n for authentication with the PrestaShop API.
- The node depends on network access to the PrestaShop server.
- No other external services are required.
Troubleshooting
- Invalid Customer ID: Ensure the Customer ID is a positive integer corresponding to an existing customer.
- Validation Errors: Email and Website fields have regex validation; entering invalid formats will cause errors.
- API Authentication Failures: Verify that the API key credential is correctly configured and has sufficient permissions.
- Multishop Context Issues: When using shop-specific contexts, ensure the correct shop or shop group IDs are provided.
- Debug Mode: Enable debug mode to get detailed request/response info if updates fail unexpectedly.
- Common Error Messages:
- "Customer not found": The specified Customer ID does not exist.
- "Invalid email format": The email does not match the required pattern.
- "Unauthorized" or "Authentication failed": Check API credentials.
Resolving these usually involves verifying input values, credentials, and API endpoint accessibility.