Shopware Admin icon

Shopware Admin

Consume Shopware Admin API

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 - Update operation, it updates existing product details such as name, description, price, and stock quantity.

Typical use cases include:

  • Automatically updating product information in Shopware when changes occur in an external inventory or ERP system.
  • Adjusting stock levels based on sales or restocking events.
  • Modifying product descriptions or prices as part of marketing campaigns or pricing strategies.

For example, you could use this node to update the price and stock of a product identified by its ID after receiving new data from a supplier.

Properties

Name Meaning
ID The unique identifier of the product to update.
Product Data A collection of fields to update on the product. Possible fields:
- Name: The new name of the product.
- Description: The new description text for the product.
- Price: The updated price value (number).
- Stock: The updated stock quantity (number).

Output

The node outputs JSON data representing the response from the Shopware Admin API after attempting to update the product. This typically includes the updated product object with its current state as stored in Shopware.

If the update is successful, the output JSON will contain the updated product details. If there is an error, the output will contain an error message describing what went wrong.

The node does not output binary data.

Dependencies

  • Requires connection to the Shopware Admin API via an API key credential configured in n8n.
  • The API URL and authentication credentials must be set up properly in the node's credentials configuration.
  • Network access to the Shopware instance is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing product ID: Ensure the ID corresponds to an existing product in Shopware.
    • Insufficient permissions: The API key used must have rights to update products.
    • Incorrect API URL or network issues: Verify connectivity and correct endpoint configuration.
    • Validation errors: For example, providing invalid data types for price or stock may cause the API to reject the request.
  • Error messages:

    • "Unknown error": Generic fallback if no specific message is returned; check API credentials and network.
    • API validation errors will be passed through; review the error details to adjust input data accordingly.

To resolve errors, verify all input parameters, ensure proper API credentials, and confirm that the Shopware instance is reachable.

Links and References

Discussion