Actions778
- Acl Role Actions
- App Actions
- App Action Button Actions
- App Administration Snippet Actions
- App Cms Block Actions
- App Flow Action Actions
- App Flow Event Actions
- App Payment Method Actions
- App Script Condition Actions
- App Shipping Method Actions
- App Template Actions
- Category Actions
- Cms Block Actions
- Cms Page Actions
- Cms Section Actions
- Cms Slot Actions
- Country Actions
- Country State Actions
- Currency Actions
- Currency Country Rounding Actions
- Custom Entity Actions
- Custom Field Actions
- Custom Field Set Actions
- Custom Field Set Relation Actions
- Customer Actions
- Customer Address Actions
- Customer Group Actions
- Customer Recovery Actions
- Customer Wishlist Actions
- Customer Wishlist Product Actions
- Delivery Time Actions
- Document Actions
- Document Base Config Actions
- Document Base Config Sales Channel Actions
- Document Type Actions
- Flow Actions
- Flow Sequence Actions
- Flow Template Actions
- Import Export File Actions
- Import Export Log Actions
- Import Export Profile Actions
- Integration Actions
- Landing Page Actions
- Language Actions
- Locale Actions
- Log Entry Actions
- Mail Header Footer Actions
- Mail Template Actions
- Mail Template Type Actions
- Main Category Actions
- Media Actions
- Media Default Folder Actions
- Media Folder Actions
- Media Folder Configuration Actions
- Media Thumbnail Actions
- Media Thumbnail Size Actions
- Newsletter Recipient Actions
- Notification Actions
- Number Range Actions
- Number Range Sales Channel Actions
- Number Range State Actions
- Number Range Type Actions
- Order Actions
- Order Customer Actions
- Order Delivery Actions
- Order Delivery Position Actions
- Order Line Item Actions
- Order Line Item Download Actions
- Order Transaction Actions
- Order Transaction Capture Actions
- Order Transaction Capture Refund Actions
- Order Transaction Capture Refund Position Actions
- Payment Method Actions
- Plugin Actions
- Product Actions
- Product Configurator Setting Actions
- Product Cross Selling Actions
- Product Cross Selling Assigned Products Actions
- Product Download Actions
- Product Export Actions
- Product Feature Set Actions
- Product Keyword Dictionary Actions
- Product Manufacturer Actions
- Product Media Actions
- Product Price Actions
- Product Review Actions
- Product Search Config Actions
- Product Search Config Field Actions
- Product Search Keyword Actions
- Product Sorting Actions
- Product Stream Actions
- Product Stream Filter Actions
- Product Visibility Actions
- Promotion Actions
- Promotion Discount Actions
- Promotion Discount Prices Actions
- Promotion Individual Code Actions
- Promotion Sales Channel Actions
- Promotion Setgroup Actions
- Property Group Actions
- Property Group Option Actions
- Rule Actions
- Rule Condition Actions
- Sales Channel Actions
- Sales Channel Analytics Actions
- Sales Channel Domain Actions
- Sales Channel Type Actions
- Salutation Actions
- Scheduled Task Actions
- State Machine Transition Actions
- System Config Actions
- Tag Actions
- Tax Actions
- Tax Provider Actions
- Tax Rule Actions
- Tax Rule Type Actions
- Theme Actions
- Unit Actions
- User Actions
- User Access Key Actions
- User Config Actions
- User Recovery Actions
- Webhook Actions
- Webhook Event Log Actions
- System Info Health Check Actions
- Bulk Operations Actions
- Document Management Actions
- Asset Management Actions
- Mail Operations Actions
- System Operations Actions
- Customer Impersonation Actions
- Order Management Actions
- Order Address Actions
- Authorization Authentication Actions
Tax Rule → Create Tax Rule
AI-generatedOverview
This node operation creates a new Tax Rule in the Shopware system. It is useful for automating the addition of tax rules based on various parameters such as tax rule type, country, tax rate, and associated tax details. For example, it can be used to programmatically set tax rules for different countries or regions in an e-commerce platform to ensure correct tax calculations.
Use Case Examples
- Creating a tax rule for a specific country with a defined tax rate and tax rule type.
- Adding tax rules that include detailed JSON data about states, country, and tax configurations.
Properties
| Name | Meaning |
|---|---|
| Response | Specifies the data format for the response, either basic or detailed. |
| Id | Unique identifier for the tax rule. |
| Tax Rule Type Id | Identifier for the type of tax rule. |
| Country Id | Identifier for the country to which the tax rule applies. |
| Tax Rate | The tax rate percentage for the tax rule. |
| Data | Additional JSON data related to the tax rule, such as states information. |
| Tax Id | Identifier for the associated tax. |
| Active From | The date from which the tax rule is active. |
| Created At | The creation date of the tax rule. |
| Updated At | The last update date of the tax rule. |
| Type | Complex JSON structure describing the type details and nested rules related to the tax rule. |
| Country | Complex JSON structure describing the country details and nested related entities. |
| Tax | Complex JSON structure describing the tax details and nested related entities. |
| Request Options | Node settings for request options such as batching, SSL issues, proxy, and timeout. |
Output
JSON
id- The unique identifier of the created tax rule.taxRuleTypeId- The type identifier of the created tax rule.countryId- The country identifier associated with the tax rule.taxRate- The tax rate set in the tax rule.data- Additional data related to the tax rule, typically JSON with states information.taxId- The tax identifier associated with the tax rule.activeFrom- The activation date of the tax rule.createdAt- The creation timestamp of the tax rule.updatedAt- The last update timestamp of the tax rule.type- Detailed JSON structure describing the type and nested rules of the tax rule.country- Detailed JSON structure describing the country and related nested entities.tax- Detailed JSON structure describing the tax and related nested entities.
Dependencies
- An API key credential for Shopware Admin API
Troubleshooting
- Ensure all required fields (Id, Tax Rule Type Id, Country Id, Tax Rate, Tax Id) are provided to avoid validation errors.
- If the API returns authentication errors, verify that the Shopware Admin API credentials are correctly configured and valid.
- For JSON fields (Data, Type, Country, Tax), ensure the JSON is well-formed to prevent parsing errors.
- Timeouts can occur if the server is slow; adjust the timeout setting in Request Options accordingly.
Links
- Shopware Admin API - Create Tax Rule - Official documentation for creating a tax rule using the Shopware Admin API.