Shopware icon

Shopware

Shopware

Actions778

Promotion Sales Channel → Update Promotion Sales Channel

AI-generated

Overview

This node updates a Promotion Sales Channel in the Shopware system. It is useful for scenarios where you need to modify details of an existing promotion sales channel, such as changing its priority, associated promotion or sales channel details, or timestamps. For example, it can be used to update the priority of a promotion sales channel or to modify its linked promotion or sales channel JSON data.

Use Case Examples

  1. Updating the priority of a promotion sales channel to change its order of application.
  2. Modifying the associated promotion or sales channel details by providing updated JSON data for these fields.

Properties

Name Meaning
Id Identifier for the promotion_sales_channel, required to specify which promotion sales channel to update.
Response Data format for response, used as a query parameter to specify the response format.
Promotion Id Identifier for the promotion associated with the sales channel, required for update.
Sales Channel Id Identifier for the sales channel associated with the promotion, required for update.
Priority Priority of the promotion sales channel, required for update.
Created At Timestamp for when the promotion sales channel was created, optional.
Updated At Timestamp for when the promotion sales channel was last updated, optional.
Promotion JSON object representing the promotion details, can be used to update nested promotion data.
Sales Channel JSON object representing the sales channel details, can be used to update nested sales channel data.
Request Options Node settings for request options such as batching, SSL issues, proxy, and timeout configurations.

Output

JSON

  • id - Identifier of the updated promotion sales channel.
  • promotionId - Identifier of the associated promotion.
  • salesChannelId - Identifier of the associated sales channel.
  • priority - Priority value 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 associated with the sales channel.
  • salesChannel - Detailed JSON object of the sales channel associated with the promotion.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (id, promotionId, salesChannelId, priority) 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 SSL issues, consider enabling the 'Ignore SSL Issues' option if you trust the endpoint.
  • If requests time out, increase the timeout setting or check network connectivity.

Discussion