Shopware icon

Shopware

Shopware

Actions778

Promotion → Get Promotion List

AI-generated

Overview

This node operation retrieves a list of promotions from the Shopware platform. It is useful for scenarios where you need to fetch promotional data, such as discounts or special offers, to display in an application or to process further in an automation workflow. For example, an e-commerce platform might use this to dynamically show current promotions to customers.

Use Case Examples

  1. Fetch a limited number of promotions to display on a marketing dashboard.
  2. Retrieve a specific page of promotions for batch processing or reporting.

Properties

Name Meaning
Limit Maximum number of promotion resources to be returned in a single page.
Page The page number of the promotion list to be returned.
Query Encoded SwagQL query in JSON format to filter or customize the promotion list retrieval.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and request timeout.

Output

JSON

  • promotions - Array of promotion objects returned from the Shopware API.

Dependencies

  • Shopware API credentials (API key or token)

Troubleshooting

  • Ensure the API credentials are correctly configured and have the necessary permissions to access promotion data.
  • Check network connectivity and proxy settings if requests fail or time out.
  • If SSL errors occur, consider enabling the option to ignore SSL certificate issues, but be aware of security risks.
  • Validate the SwagQL query syntax to avoid errors in filtering the promotion list.

Links

Discussion