Shopware icon

Shopware

Shopware

Actions778

Promotion Sales Channel → Create Promotion Sales Channel

AI-generated

Overview

This node operation creates a Promotion Sales Channel in the Shopware system. It is useful for automating the addition of sales channels to specific promotions, allowing for targeted marketing and sales strategies. For example, a user can create a new promotion sales channel by specifying the promotion ID, sales channel ID, and priority, along with optional metadata such as creation and update timestamps, and detailed JSON objects representing the promotion and sales channel configurations.

Use Case Examples

  1. Creating a new promotion sales channel by providing the promotion ID, sales channel ID, and priority to automate marketing campaigns.
  2. Updating the priority of a promotion sales channel to control the order in which promotions are applied across sales channels.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the promotion sales channel.
Promotion Id Identifier of the promotion to which the sales channel is linked.
Sales Channel Id Identifier of the sales channel to be associated with the promotion.
Priority Priority level of the promotion sales channel, influencing its application order.
Created At Timestamp indicating when the promotion sales channel was created.
Updated At Timestamp indicating when the promotion sales channel was last updated.
Promotion JSON object representing the detailed configuration of the promotion.
Sales Channel JSON object representing the detailed configuration of the sales channel.
Request Options Additional request options such as batching, SSL handling, proxy, and timeout settings.

Output

JSON

  • id - Unique identifier of the created promotion sales channel.
  • promotionId - Identifier of the linked promotion.
  • salesChannelId - Identifier of the linked sales channel.
  • priority - Priority level of the promotion sales channel.
  • createdAt - Creation timestamp of the promotion sales channel.
  • updatedAt - Last update timestamp of the promotion sales channel.
  • promotion - Detailed JSON object of the promotion configuration.
  • salesChannel - Detailed JSON object of the sales channel configuration.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Promotion Id, Sales Channel Id, Priority) are provided to avoid validation errors.
  • Check API credentials and base URL configuration if authentication errors occur.
  • Verify JSON format correctness for 'Promotion' and 'Sales Channel' fields to prevent parsing errors.
  • Adjust request options like timeout and proxy settings if network issues arise.

Discussion