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
Promotion Discount → Create Promotion Discount
AI-generatedOverview
This node operation creates a new Promotion Discount in the Shopware system. It is useful for automating the addition of discounts to promotions, allowing users to specify various discount parameters such as the discount type, value, scope, and associated promotion ID. This can be applied in e-commerce workflows to dynamically manage promotional discounts based on business rules.
Use Case Examples
- Automatically create a percentage discount for a specific promotion during a marketing campaign.
- Add a fixed value discount to a promotion when certain conditions are met in an order processing workflow.
Properties
| Name | Meaning |
|---|---|
| Response | Data format for the response, either basic or detailed information about the created promotion discount. |
| Id | Unique identifier for the promotion discount to be created. |
| Promotion Id | Identifier of the promotion to which this discount belongs. |
| Scope | Scope of the discount, defining where or how it applies. |
| Type | Type of the discount, e.g., percentage or fixed amount. |
| Value | Numeric value of the discount. |
| Consider Advanced Rules | Boolean flag to consider advanced rules in discount application. |
| Max Value | Maximum value the discount can reach. |
| Sorter Key | Key used for sorting discounts. |
| Applier Key | Key used to apply the discount. |
| Usage Key | Key defining usage constraints or identifiers. |
| Picker Key | Key used for picking or selecting the discount. |
| Created At | Timestamp when the discount was created. |
| Updated At | Timestamp when the discount was last updated. |
| Promotion | JSON object representing the promotion details associated with the discount. |
| Discount Rules | JSON array defining the rules that govern the discount application. |
| Promotion Discount Prices | JSON array defining prices related to the promotion discount. |
Output
JSON
id- Identifier of the created promotion discount.promotionId- Identifier of the associated promotion.scope- Scope of the discount.type- Type of the discount.value- Value of the discount.considerAdvancedRules- Flag indicating if advanced rules are considered.maxValue- Maximum discount value.sorterKey- Sorting key for the discount.applierKey- Applier key for the discount.usageKey- Usage key for the discount.pickerKey- Picker key for the discount.createdAt- Creation timestamp.updatedAt- Last update timestamp.promotion- Promotion details JSON object.discountRules- Discount rules JSON array.promotionDiscountPrices- Promotion discount prices JSON array.
Dependencies
- An API key credential for Shopware Admin API
Troubleshooting
- Ensure all required fields (Id, Promotion Id, Scope, Type, Value) are provided to avoid validation errors.
- If the API returns authentication errors, verify the Shopware Admin API credentials are correctly configured.
- For JSON fields (Promotion, Discount Rules, Promotion Discount Prices), ensure the JSON is well-formed to prevent parsing errors.