Actions26
- Product Actions
- Order Actions
- Customer Actions
- Category Actions
- Stock Actions
Overview
This node integrates with the PrestaShop API to create new orders in a PrestaShop e-commerce store. It is designed for automating order creation workflows, such as when an external system or form submission needs to generate orders programmatically.
Typical use cases include:
- Creating orders from custom checkout processes.
- Syncing orders from other sales channels into PrestaShop.
- Automating order creation based on external triggers or data feeds.
For example, you could use this node to create an order by specifying the customer ID and cart ID, along with detailed payment and shipping information, then send it to PrestaShop to register the order automatically.
Properties
| Name | Meaning |
|---|---|
| Customer ID | The unique identifier of the customer placing the order. |
| Cart ID | The unique identifier of the shopping cart associated with the order. |
| Order Details | A collection of optional fields describing the order specifics: - Payment Method: method used for payment. - Currency ID: currency identifier. - Language ID: language for the order. - Carrier ID: delivery carrier. - Address Delivery ID: delivery address. - Address Invoice ID: invoice address. - Total Paid: total amount paid. - Total Paid Tax Included: total including tax. - Total Paid Tax Excluded: total excluding tax. - Total Products: price of products. - Total Products with Tax: product price including tax. - Total Shipping: shipping cost. - Total Shipping Tax Included: shipping cost including tax. - Total Shipping Tax Excluded: shipping cost excluding tax. |
| Advanced Options | Additional settings to control output and context: - Output Format: JSON (recommended) or XML. - Language ID: filter localized fields. - Display Fields: full or custom selection. - Custom Fields: comma-separated list of fields to return. - Shop Context: all shops, specific shop, or shop group. - Shop ID: ID of specific shop (if applicable). - Shop Group ID: ID of shop group (if applicable). - Enable Debug Mode: add debug info to response. |
Output
The node outputs the response from the PrestaShop API after attempting to create the order. The main output is a JSON object containing details about the created order or error information if the operation failed.
- If "Output Format" is set to JSON (default), the response will be a JSON representation of the order data returned by PrestaShop.
- If set to XML, the response will be in XML format as returned by the API.
- When debug mode is enabled, additional metadata such as request URL, HTTP method, and parameters are included in the output 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.
- No other external services are required.
Troubleshooting
Common Issues:
- Invalid or missing customer or cart IDs will cause the API to reject the order creation.
- Incorrect or missing API credentials will result in authentication errors.
- Providing invalid field values (e.g., non-existent carrier or currency IDs) may cause the API to return errors.
- Network connectivity issues can prevent communication with the PrestaShop API.
Error Messages:
- Authentication failures typically indicate incorrect API keys or permissions.
- Validation errors from the API will specify which fields are invalid or missing.
- Enabling debug mode helps identify request details to diagnose problems.
Resolution Tips:
- Verify that customer and cart IDs exist in your PrestaShop database.
- Ensure API credentials are correctly configured and have sufficient permissions.
- Use debug mode to inspect the exact request sent to the API.
- Check network connectivity and firewall settings.