Shopware icon

Shopware

Shopware

Actions778

Promotion Individual Code → Search Promotion Individual Code

AI-generated

Overview

This node operation allows searching for Promotion Individual Codes within the Shopware platform. It is useful for retrieving specific promotion codes based on various search criteria such as pagination, filtering, sorting, and field selection. Practical applications include managing promotional campaigns, analyzing promotion usage, or integrating promotion data into other systems.

Use Case Examples

  1. Retrieve a paginated list of promotion individual codes with specific filters applied.
  2. Sort promotion codes by creation date and limit the number of results per page.
  3. Search for promotion codes by a list of IDs and include specific associated data.

Properties

Name Meaning
Page The page number of the search results to retrieve.
Limit The number of items to return per page in the search results.
Filter A JSON array of filters to restrict the search results based on specific criteria.
Sort A JSON array defining the sorting order of the search results.
Post Filter Filters applied after aggregations that do not affect the aggregation results.
Associations JSON object defining related entities to include in the search results.
Aggregations JSON array specifying aggregations to perform on the search results.
Grouping JSON array defining groupings over certain fields in the search results.
Fields 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 JSON array of specific IDs to search for.
Includes 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 search results containing the promotion individual codes matching the query.
  • total - The total number of matching promotion individual codes based on the search criteria.

Dependencies

  • Requires Shopware API credentials for authentication.

Troubleshooting

  • Ensure the Shopware API credentials are correctly configured and have the necessary permissions.
  • Verify that JSON inputs for filters, sorting, and other parameters are correctly formatted to avoid parsing errors.
  • If using batching, adjust batch size and interval to avoid rate limiting or timeouts.
  • Check network settings such as proxy and SSL options if requests fail due to connectivity issues.

Links

Discussion