Shopware icon

Shopware

Shopware

Actions778

Main Category → Get Main Category List

AI-generated

Overview

This node operation retrieves a list of main categories from the Shopware API. It supports pagination and filtering through query parameters, allowing users to specify the maximum number of categories to return per page, the page number, and an encoded SwagQL query for advanced filtering. This operation is useful for workflows that need to fetch and process category data from a Shopware store, such as syncing categories with another system or generating reports.

Use Case Examples

  1. Fetch the first 50 main categories to display in a dashboard.
  2. Retrieve a specific page of categories filtered by certain criteria using a SwagQL query.

Properties

Name Meaning
Limit Specifies the maximum number of main category resources to be returned in a single page of results.
Page Specifies which page of the main category list to retrieve, useful for paginated results.
Query An encoded SwagQL query in JSON format to filter or customize the main category list results.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and request timeout.

Output

JSON

  • mainCategoryList - The list of main categories retrieved from the Shopware API.

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 main category data.
  • Check network connectivity and proxy settings if requests fail or time out.
  • If SSL errors occur, consider enabling the option to ignore SSL issues, but be aware of security risks.
  • Validate the SwagQL query syntax to avoid errors in filtering the main category list.

Discussion