Shopware icon

Shopware

Shopware

Actions778

Unit → Get Unit List

AI-generated

Overview

This node operation retrieves a paginated list of units from the Shopware API. It allows users to specify the maximum number of units to return per page, the page number to fetch, and an optional SwagQL query to filter or customize the results. This operation is useful for scenarios where you need to fetch and process unit data in batches, such as inventory management, reporting, or integration with other systems.

Use Case Examples

  1. Fetch the first 50 units to display in a dashboard.
  2. Retrieve units on page 2 with a custom SwagQL query to filter by specific criteria.

Properties

Name Meaning
Limit Maximum number of units to be returned in a single page of results.
Page The page number of the results to retrieve, enabling pagination.
Query An encoded SwagQL query in JSON format to filter or customize the unit list results.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and request timeout.

Output

JSON

  • units - Array of unit objects returned from the API representing the units retrieved.
  • pagination
    • page - The current page number of the results.
    • limit - The maximum number of units returned per page.
    • total - The total number of units available across all pages.

Dependencies

  • Shopware API credentials (API key or token)

Troubleshooting

  • Ensure the API credentials are correctly configured and have the necessary permissions to access unit data.
  • Check that the 'limit' and 'page' parameters are set to valid numbers; invalid values may cause errors or empty results.
  • If using a custom SwagQL query, verify the query syntax is correct and properly encoded in JSON.
  • Network issues or SSL certificate problems can be mitigated by adjusting the 'Ignore SSL Issues' option or configuring a proxy if needed.

Discussion