Shopware icon

Shopware

Shopware

Actions778

Promotion Setgroup → Get Promotion Setgroup List

AI-generated

Overview

This node operation retrieves a list of Promotion Setgroups from the Shopware API. It is useful for scenarios where you need to fetch multiple promotion setgroups with control over pagination and filtering. For example, you can use it to display a paginated list of promotion setgroups in a dashboard or to process them in batches for further automation.

Use Case Examples

  1. Fetch the first 10 promotion setgroups to display in a UI.
  2. Retrieve promotion setgroups on page 2 with a custom query filter to analyze specific promotions.

Properties

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

Output

JSON

  • data - Array of promotion setgroup objects returned from the API.
  • total - Total number of promotion setgroups available.
  • page - Current page number of the returned results.
  • limit - Maximum number of promotion setgroups returned per page.

Dependencies

  • Shopware API with appropriate credentials

Troubleshooting

  • Ensure the API credentials are correctly configured and have permission to access promotion setgroup data.
  • Check network connectivity and proxy settings if requests fail or time out.
  • If SSL errors occur, consider enabling the option to ignore SSL issues, but only if safe to do so.
  • Validate the SwagQL query syntax to avoid errors in filtering data.

Discussion