Actions26
- Product Actions
- Order Actions
- Customer Actions
- Category Actions
- Stock Actions
Overview
This node interacts with the PrestaShop API to retrieve detailed information about a specific customer. It is designed to fetch customer data by their unique Customer ID, supporting various output formats and filtering options. This node is beneficial in scenarios where you need to integrate customer data from PrestaShop into workflows for CRM updates, personalized marketing campaigns, or order processing automation.
For example, you can use this node to:
- Retrieve full customer details to sync with an external database.
- Fetch only selected fields of a customer to minimize data transfer.
- Get localized customer information based on language preferences.
- Operate within a specific shop context in multi-shop PrestaShop setups.
Properties
| Name | Meaning |
|---|---|
| Customer ID | The unique identifier (ID) of the customer to retrieve. Must be a positive integer (minimum 1). |
| Advanced Options | A collection of optional parameters to customize the request: |
| - Output Format | Choose the format of the response data: JSON (recommended) or XML. |
| - Language ID | Filter localized fields by language ID (default is 1, representing the default language). |
| - Display Fields | Control which fields are returned in the response: Full (All Fields) or Custom Fields. |
| - Custom Fields | If "Custom Fields" is selected, specify a comma-separated list of fields to return (e.g., "id,name,price,reference"). |
| - Shop Context | Define the shop context for multishop environments: All Shops, Specific Shop, or Shop Group. |
| - Shop ID | When "Specific Shop" is selected as the shop context, specify the ID of that shop (minimum 1). |
| - Shop Group ID | When "Shop Group" is selected as the shop context, specify the ID of that shop group (minimum 1). |
| - Enable Debug Mode | Enable debug mode to add detailed debug information such as URL, HTTP method, and parameters to the response, useful for troubleshooting. |
Output
The node outputs JSON data representing the requested customer information. The structure of the JSON depends on the selected display fields and output format:
- If "Full (All Fields)" is selected, all available customer fields are included.
- If "Custom Fields" is selected, only the specified fields are returned.
- The data respects the language filter if set.
- Debug information may be appended if debug mode is enabled.
No binary data output is produced by this node.
Dependencies
- Requires connection to a PrestaShop instance via its REST API.
- An API authentication token or key credential must be configured in n8n to authorize requests.
- The node supports multi-shop contexts, so appropriate shop or shop group IDs may be needed depending on your PrestaShop setup.
Troubleshooting
Common Issues:
- Invalid or missing Customer ID will cause the request to fail.
- Incorrect shop context or invalid shop/shop group IDs may result in empty or error responses.
- Selecting custom fields incorrectly (e.g., typos or non-existent fields) may lead to incomplete data or errors.
- Network or authentication issues with the PrestaShop API will prevent successful data retrieval.
Error Messages:
- Errors related to authorization typically indicate misconfigured API credentials.
- "Customer not found" errors suggest the provided Customer ID does not exist.
- Debug mode can be enabled to get detailed request info to help diagnose issues.