Actions26
- Product Actions
- Order Actions
- Customer Actions
- Category Actions
- Stock Actions
Overview
This node integrates with the PrestaShop API to update existing orders. It allows users to modify various order details such as the current state, delivery number, invoice number, and tracking number. This is particularly useful for e-commerce workflows where order statuses or shipment information need to be programmatically updated based on external events or internal processes.
Common scenarios:
- Automatically updating order status after payment confirmation.
- Adding or modifying shipment tracking numbers when packages are dispatched.
- Adjusting invoice numbers or delivery references in bulk operations.
- Synchronizing order updates from other systems into PrestaShop.
Example:
A fulfillment system can use this node to update the "Current State" of an order to "Shipped" and add a "Tracking Number" once the package leaves the warehouse.
Properties
| Name | Meaning |
|---|---|
| Order ID | The unique numeric identifier of the order to update (required). |
| Update Fields | Collection of fields to update on the order: - Current State (numeric ID of the order state) - Delivery Number (string) - Invoice Number (string) - Tracking Number (string) |
| Advanced Options | Additional settings controlling output and context: - Output Format: JSON (default) or XML - Language ID: Filter localized fields by language (default 1) - Display Fields: Full (all fields) or Custom (specify fields) - Custom Fields: Comma-separated list of fields to return if "Custom" display selected - Shop Context: All shops, specific shop, or shop group - Shop ID: Numeric ID of specific shop (if applicable) - Shop Group ID: Numeric ID of shop group (if applicable) - Enable Debug Mode: Include debug info like URL, method, and parameters in response |
Output
The node outputs the updated order data in the specified format (JSON by default, or XML if chosen). The json output field contains the order's updated details according to the selected display options:
- If "Full" display is selected, all available order fields are returned.
- If "Custom" display is selected, only the specified fields are included.
- When debug mode is enabled, additional metadata about the API request is appended for 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.
- The node depends on network access to the PrestaShop server.
- Proper permissions on the API key to update orders are necessary.
Troubleshooting
Common issues:
- Invalid or missing Order ID will cause the update to fail.
- Insufficient API permissions may result in authorization errors.
- Incorrect shop context or IDs can lead to updates not applying as expected.
- Providing invalid field values (e.g., non-numeric state ID) may cause API errors.
Error messages:
"Order not found": Verify the Order ID exists in PrestaShop."Unauthorized"or"Authentication failed": Check API credentials and permissions."Invalid parameter": Confirm that all update fields have valid formats and values.- Network timeouts or connection errors: Ensure the PrestaShop API endpoint is reachable.
Resolution tips:
- Double-check input parameters and their types.
- Use debug mode to get detailed request/response info.
- Validate API credentials and user permissions.
- Confirm the correct shop context is selected for multishop setups.
Links and References
- PrestaShop Webservice API Documentation
- PrestaShop Order States Guide
- n8n Documentation on HTTP Request Nodes (for understanding API calls)