Shopware icon

Shopware

Shopware

Actions778

Promotion Discount Prices → Search Promotion Discount Prices

AI-generated

Overview

This node performs a search operation for Promotion Discount Prices within the Shopware platform. It allows users to query and retrieve promotion discount price data based on various criteria such as pagination, filtering, sorting, and field selection. This is useful for scenarios where you need to analyze or process promotion discount prices programmatically, for example, to generate reports, synchronize data, or apply business logic based on discount prices.

Use Case Examples

  1. Retrieve the first page of promotion discount prices with a limit of 20 items per page.
  2. Search for promotion discount prices filtered by specific criteria such as discount type or validity period.
  3. Sort promotion discount prices by discount value or creation date.
  4. Fetch only specific fields of promotion discount prices to optimize data transfer and processing.

Properties

Name Meaning
Page The page number of the search result to retrieve, used for pagination.
Limit The number of items to return per page in the search result.
Filter A JSON array of filters to restrict the search results based on specific conditions.
Sort A JSON array defining the sorting order of the search results.
Post Filter A JSON array of filters applied after aggregations, which do not affect aggregation results.
Associations A JSON object defining related entities to include in the search results.
Aggregations A JSON array specifying aggregations to perform on the search results.
Grouping A JSON array defining groupings over certain fields in the search results.
Fields A JSON array specifying which fields should be returned in the search results.
Total Count Mode Option to determine how the total number of hits is calculated: none (disabled), exact (slow but accurate), or next-pages (fast for next page only).
Ids A JSON array of specific IDs to search for.
Includes A JSON object specifying fields to include for given entities, used to control returned data at the API level.
Request Options Settings for request behavior such as batching, SSL certificate validation, proxy usage, and timeout.

Output

JSON

  • data - The array of promotion discount price records returned by the search.
  • total - The total number of matching promotion discount price records, depending on total count mode.
  • aggregations - Aggregation results if aggregations were requested in the search.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the API credentials are correctly configured and have permissions to access promotion discount prices.
  • Verify that JSON inputs for filters, sorting, and other parameters are correctly formatted to avoid parsing errors.
  • If the total count mode is set to 'exact', expect slower response times for large datasets.
  • Check network settings if using proxy or if SSL issues occur, especially if 'Ignore SSL Issues' is disabled.

Links

Discussion