Actions26
- Product Actions
- Order Actions
- Customer Actions
- Category Actions
- Stock Actions
Overview
This node integrates with the PrestaShop API to retrieve detailed information about a specific order. It is designed to fetch order data by its unique ID, supporting various output formats and filtering options. This node is beneficial in e-commerce automation workflows where you need to:
- Retrieve order details for processing or analysis.
- Integrate order data into other systems like CRMs or ERPs.
- Automate customer notifications based on order status.
- Extract customized subsets of order data for reporting.
For example, you could use this node to get an order's full details in JSON format to update your inventory system or fetch only selected fields like id, name, and price for a lightweight summary report.
Properties
| Name | Meaning |
|---|---|
| Order ID | The unique numeric identifier of the order to retrieve. This is required. |
| Advanced Options | A collection of optional parameters to customize the request: |
| - Output Format | Choose the response format: JSON (recommended) or XML. |
| - Language ID | Numeric ID to filter localized fields by language (default is 1, the default language). |
| - Display Fields | Control which fields are returned: Full (All Fields) returns all available fields; Custom Fields allows specifying a comma-separated list of fields to include. |
| - Custom Fields | When Custom Fields is selected, specify which fields to return as a comma-separated string (e.g., "id,name,price,reference"). |
| - Shop Context | Defines the shop context in multishop environments: All Shops, Specific Shop, or Shop Group. |
| - Shop ID | If Specific Shop is selected, provide the numeric ID of that shop. |
| - Shop Group ID | If Shop Group is selected, provide the numeric ID of the shop group. |
| - Enable Debug Mode | Boolean flag to add debug information (such as URL, HTTP method, and parameters) to the response to assist troubleshooting. |
Output
The node outputs JSON data representing the order details retrieved from PrestaShop. The structure depends on the selected display fields and output format:
- JSON format (default): Returns an object or array containing order properties such as order ID, customer info, products, prices, status, and more.
- XML format: Returns the raw XML response from the API if selected.
- Debug mode enabled: Additional metadata including request URL, HTTP method, and parameters will be included in the output for troubleshooting purposes.
If custom fields are specified, only those fields will appear in the output JSON.
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.
- The node dynamically imports operation-specific code internally but does not require additional external libraries beyond standard HTTP requests.
- Multishop environment support requires correct shop or shop group IDs.
Troubleshooting
Common issues:
- Invalid or missing Order ID will cause the API call to fail.
- Incorrect API credentials or insufficient permissions can result in authentication errors.
- Selecting an unsupported output format or invalid custom fields may cause unexpected responses.
- Using wrong shop context or IDs in multishop setups can lead to empty or incorrect data.
Error messages:
- Errors from the PrestaShop API will typically include HTTP status codes and messages indicating the problem (e.g., "Order not found", "Unauthorized").
- Enabling debug mode helps identify request URLs and parameters to verify correctness.
- Network connectivity issues or timeouts will also surface as errors.
Resolution tips:
- Double-check the Order ID and ensure it exists in the PrestaShop store.
- Verify API credentials and permissions.
- Use debug mode to inspect the actual API request.
- Confirm shop context settings match your PrestaShop configuration.