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
Rule → Create Rule
AI-generatedOverview
This node operation allows users to create a new Rule resource in the Shopware system. It is useful for automating the creation of business rules that can control various aspects of the Shopware platform, such as pricing, promotions, shipping, and payment methods. Users can specify detailed rule attributes including ID, name, priority, description, validity, and complex nested configurations like conditions, product prices, shipping method prices, payment methods, promotions, and more. This operation is beneficial for e-commerce administrators and developers who want to programmatically manage rules in their Shopware environment.
Use Case Examples
- Create a pricing rule that applies discounts based on customer groups and product categories.
- Automate the creation of shipping rules that vary by delivery method and geographic area.
- Set up promotional rules that trigger specific discounts or offers during checkout.
Properties
| Name | Meaning |
|---|---|
| Response | Data format for response, either basic or detailed. |
| Id | Unique identifier for the rule. |
| Name | Name of the rule. |
| Priority | Priority level of the rule. |
| Description | Description of the rule. |
| Invalid | Indicates if the rule is invalid (true or false). |
| Areas | JSON array defining the areas where the rule applies. |
| Custom Fields | JSON object for custom fields associated with the rule. |
| Module Types | JSON object specifying module types related to the rule. |
| Created At | Timestamp string for when the rule was created. |
| Updated At | Timestamp string for when the rule was last updated. |
| Conditions | JSON array defining the conditions under which the rule applies. |
| Product Prices | JSON array specifying product price configurations for the rule. |
| Shipping Method Prices | JSON array specifying shipping method price configurations for the rule. |
| Shipping Method Price Calculations | JSON array specifying shipping method price calculation configurations for the rule. |
| Shipping Methods | JSON array specifying shipping methods associated with the rule. |
| Payment Methods | JSON array specifying payment methods associated with the rule. |
| Persona Promotions | JSON array specifying persona promotions linked to the rule. |
| Flow Sequences | JSON array specifying flow sequences related to the rule. |
| Tax Providers | JSON array specifying tax providers linked to the rule. |
| Tags | JSON array specifying tags associated with the rule. |
| Order Promotions | JSON array specifying order promotions linked to the rule. |
| Cart Promotions | JSON array specifying cart promotions linked to the rule. |
| Promotion Discounts | JSON array specifying promotion discounts linked to the rule. |
| Promotion Set Groups | JSON array specifying promotion set groups linked to the rule. |
Output
JSON
id- Unique identifier of the created rule.name- Name of the created rule.priority- Priority level of the created rule.description- Description of the created rule.invalid- Indicates if the created rule is invalid.areas- Areas where the rule applies.customFields- Custom fields associated with the rule.moduleTypes- Module types related to the rule.createdAt- Creation timestamp of the rule.updatedAt- Last update timestamp of the rule.conditions- Conditions under which the rule applies.productPrices- Product price configurations for the rule.shippingMethodPrices- Shipping method price configurations for the rule.shippingMethodPriceCalculations- Shipping method price calculation configurations for the rule.shippingMethods- Shipping methods associated with the rule.paymentMethods- Payment methods associated with the rule.personaPromotions- Persona promotions linked to the rule.flowSequences- Flow sequences related to the rule.taxProviders- Tax providers linked to the rule.tags- Tags associated with the rule.orderPromotions- Order promotions linked to the rule.cartPromotions- Cart promotions linked to the rule.promotionDiscounts- Promotion discounts linked to the rule.promotionSetGroups- Promotion set groups linked to the rule.
Dependencies
- Shopware API with appropriate credentials
Troubleshooting
- Ensure all required fields (Id, Name, Priority) are provided to avoid validation errors.
- Verify JSON format correctness for complex fields like conditions, productPrices, and promotions to prevent parsing errors.
- Check API credentials and permissions to ensure the node can create rules in the Shopware system.
- If the response is empty or unexpected, try switching the Response property between 'basic' and 'detail' to get more information.
Links
- Shopware API Documentation - Official documentation for Shopware API endpoints and data structures.