Shopware icon

Shopware

Shopware

Actions778

Promotion Setgroup → Create Promotion Setgroup

AI-generated

Overview

This node operation creates a Promotion Setgroup in the Shopware system. It is useful for managing promotional campaigns by grouping promotions with specific rules and values. For example, a marketing team can automate the creation of promotion setgroups to apply discounts or special offers to products based on defined criteria.

Use Case Examples

  1. Creating a new promotion setgroup with specific promotion ID, packager key, sorter key, and value to automate discount application.
  2. Adding complex promotion rules and conditions to a setgroup to target specific customer segments or sales channels.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Identifier for the promotion setgroup.
Promotion Id Identifier for the associated promotion.
Packager Key Key used for packaging the promotion setgroup.
Sorter Key Key used for sorting the promotion setgroup.
Value Numerical value associated with the promotion setgroup.
Created At Timestamp for when the promotion setgroup was created.
Updated At Timestamp for when the promotion setgroup was last updated.
Promotion JSON object representing the promotion details and nested related data.
Set Group Rules JSON array defining rules and conditions for the promotion setgroup.

Output

JSON

  • id - Identifier of the created promotion setgroup.
  • promotionId - Identifier of the associated promotion.
  • packagerKey - Key used for packaging the promotion setgroup.
  • sorterKey - Key used for sorting the promotion setgroup.
  • value - Numerical value associated with the promotion setgroup.
  • createdAt - Timestamp when the promotion setgroup was created.
  • updatedAt - Timestamp when the promotion setgroup was last updated.
  • promotion - Detailed JSON object of the promotion associated with the setgroup.
  • setGroupRules - JSON array of rules applied to the promotion setgroup.

Dependencies

  • Shopware API with appropriate credentials

Troubleshooting

  • Ensure all required fields (Id, Promotion Id, Packager Key, Sorter Key, Value) are provided to avoid validation errors.
  • Check API credentials and base URL configuration to prevent authentication or connection issues.
  • If using JSON fields (Promotion, Set Group Rules), ensure the JSON is correctly formatted to avoid parsing errors.

Discussion