Shopware icon

Shopware

Shopware

Actions778

Promotion Individual Code → Get Promotion Individual Code List

AI-generated

Overview

This node operation retrieves a list of individual promotion codes from the Shopware platform. It supports pagination and query filtering, allowing users to specify the maximum number of codes to return per page, the page number to retrieve, and an encoded query in SwagQL JSON format to filter the results. This is useful for marketing teams or e-commerce managers who want to analyze or manage promotion codes programmatically.

Use Case Examples

  1. Retrieve the first 50 individual promotion codes to display in a dashboard.
  2. Fetch promotion codes on page 2 with a custom query to filter codes by status or usage.

Properties

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

Output

JSON

  • data - Array of promotion individual code objects returned from the API.
  • meta - Metadata about the response such as pagination details.

Dependencies

  • An API key credential for Shopware Admin API authentication

Troubleshooting

  • Ensure the API credentials are correctly configured and have the necessary permissions to access promotion individual codes.
  • Check the query parameter for correct SwagQL JSON encoding to avoid query errors.
  • If using batching, verify batch size and interval settings to prevent request throttling issues.
  • If SSL errors occur, consider enabling the option to ignore SSL certificate validation, but only if safe to do so.

Discussion