Shopware icon

Shopware

Shopware

Actions778

Promotion Discount → Get Promotion Discount List

AI-generated

Overview

This node operation retrieves a list of promotion discounts from the Shopware platform. It supports pagination and filtering through query parameters, allowing users to specify the maximum number of results per page, the page number to retrieve, and an encoded SwagQL query for advanced filtering. This operation is useful for scenarios where users need to fetch and manage promotion discount data programmatically, such as in e-commerce automation workflows or reporting.

Use Case Examples

  1. Fetch the first 50 promotion discounts to display in a dashboard.
  2. Retrieve promotion discounts on page 2 with a custom SwagQL query to filter active discounts.

Properties

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

Output

JSON

  • data - Array of promotion discount objects returned from the API.
  • total - Total number of promotion discounts available.
  • page - Current page number of the returned promotion discount list.
  • limit - Maximum number of promotion discounts returned per page.

Dependencies

  • Shopware API credentials (API key or token)

Troubleshooting

  • Ensure the Shopware API credentials are correctly configured and have the necessary permissions to access promotion discount data.
  • Verify that the 'limit' and 'page' parameters are set to valid numbers to avoid request errors.
  • If using a custom SwagQL query, ensure the query is properly encoded and valid according to Shopware's query language.
  • Check network settings if using a proxy or if SSL certificate validation is disabled, as these can affect connectivity and security.

Discussion