Actions10
Overview
This node integrates with the Shopware Admin API to manage products, orders, and customers within a Shopware e-commerce system. Specifically for the Product - Create operation, it allows users to create new product entries by providing relevant product details such as name, description, price, and stock quantity.
Common scenarios where this node is beneficial include:
- Automating product catalog updates by programmatically adding new products.
- Integrating external product management systems or spreadsheets with Shopware.
- Bulk importing products into Shopware from other data sources.
For example, an e-commerce manager could use this node in a workflow to automatically add new products received from suppliers into their Shopware store without manual entry.
Properties
Name | Meaning |
---|---|
Product Data | A collection of fields describing the product to create. Includes: |
- Name: Name of the product | |
- Description: Description of the product | |
- Price: Price of the product (number) | |
- Stock: Stock quantity available (number) |
Output
The node outputs JSON data representing the response from the Shopware Admin API after creating the product. This typically includes the newly created product's details such as its unique ID, name, description, price, stock, and any other metadata returned by the API.
If the API returns binary data (not typical for product creation), it would be included accordingly, but this node primarily deals with JSON responses.
Dependencies
- Requires connection to the Shopware Admin API via an API key credential configured in n8n.
- The node uses the base URL (
apiUrl
) from the provided credentials to construct API requests. - No additional external dependencies beyond the Shopware Admin API and proper authentication.
Troubleshooting
- Authentication errors: Ensure that the API key credential is correctly set up and has sufficient permissions to create products.
- Validation errors: If required product fields are missing or invalid (e.g., negative price), the API may reject the request. Verify all input fields before execution.
- Network issues: Connectivity problems to the Shopware API endpoint will cause failures; check network access and API availability.
- Error messages: The node surfaces API error messages in the output. Common errors include "Unauthorized", "Bad Request" due to invalid data, or "Not Found" if resource paths are incorrect.
To resolve errors:
- Double-check input property values.
- Confirm API credentials and permissions.
- Review API documentation for required fields and constraints.