Shopware icon

Shopware

Shopware

Actions778

Tax → Create Tax

AI-generated

Overview

This node operation allows creating a new Tax entity in the Shopware system. It is useful for automating the addition of tax rates with detailed configurations such as tax rate, name, position, associated products, rules, and shipping methods. For example, it can be used in e-commerce workflows to dynamically add tax information based on region or product category.

Use Case Examples

  1. Creating a new tax rate for a specific region with associated products and shipping methods.
  2. Automating tax setup during product import or store configuration.

Properties

Name Meaning
Response Data format for response, either basic or detailed.
Id Unique identifier for the tax entity.
Tax Rate The tax rate percentage to apply.
Name Name of the tax entity.
Position Position or order of the tax entity.
Custom Fields Custom fields in JSON format for additional data.
Created At Creation timestamp of the tax entity.
Updated At Last update timestamp of the tax entity.
Products JSON array of products associated with the tax.
Rules JSON array of rules defining tax applicability.
Shipping Methods JSON array of shipping methods related to the tax.
Request Options Settings for batching, SSL, proxy, and timeout for the request.

Output

JSON

  • id - Unique identifier of the created tax entity.
  • taxRate - The tax rate percentage of the created tax.
  • name - Name of the created tax entity.
  • position - Position or order of the created tax entity.
  • customFields - Custom fields associated with the created tax.
  • createdAt - Creation timestamp of the created tax.
  • updatedAt - Last update timestamp of the created tax.
  • products - List of products associated with the created tax.
  • rules - List of rules defining tax applicability for the created tax.
  • shippingMethods - List of shipping methods related to the created tax.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Tax Rate, Name) are provided to avoid validation errors.
  • Verify JSON format correctness for fields like Products, Rules, and Shipping Methods to prevent parsing errors.
  • Check API credentials and endpoint URL configuration to avoid authentication or connection issues.
  • Adjust request options such as timeout and proxy settings if network-related errors occur.

Discussion