Vendus icon

Vendus

Interact with Vendus API for invoicing and business management. Developed by Pixel Infinito (https://pixel.ao)

Product → Get Product Categories

AI-generated

Overview

This node interacts with the Vendus API, specifically to retrieve product-related data such as product categories. The "Get Product Categories" operation fetches a list of all product categories available in the Vendus system.

Common scenarios where this node is beneficial include:

  • Automating inventory management workflows by dynamically retrieving product categories.
  • Integrating Vendus product data into other systems or dashboards.
  • Populating dropdowns or selection lists in subsequent workflow steps based on live category data.

For example, a user might use this node to get all product categories and then loop through each category to perform further actions like fetching products within those categories or updating category details.

Properties

Name Meaning
Options Collection of optional settings:
- Enable Debug Logging Boolean flag to enable detailed debug logging for troubleshooting API calls. When enabled, the node logs detailed information about the request and response process.

Output

The node outputs an array of JSON objects, each representing a product category retrieved from the Vendus API. Each object typically contains fields such as:

  • id: The unique identifier of the category.
  • title or name: The name/title of the category.

If the API call fails or returns no data, fallback default categories are provided (e.g., General, Electronics, Clothing) with predefined IDs.

No binary data output is produced by this operation.

Example output JSON snippet:

[
  {
    "id": "1",
    "title": "General"
  },
  {
    "id": "2",
    "title": "Electronics"
  },
  {
    "id": "3",
    "title": "Clothing"
  }
]

Dependencies

  • Requires an active connection to the Vendus API via an API key credential configured in n8n.
  • The node uses the base URL and authentication credentials set up in the Vendus API credential configuration.
  • Network access to the Vendus API endpoint /products/categories is necessary.

Troubleshooting

  • Common Issues:

    • Missing or invalid API credentials will cause authentication failures.
    • Network connectivity issues can prevent successful API calls.
    • If the API endpoint changes or is unavailable, the node may fail to retrieve categories.
  • Error Messages:

    • "No routing configuration found for product.getProductCategories": Indicates the node could not find the operation definition; usually a misconfiguration or unsupported operation.
    • Parameter substitution errors if required parameters are missing (not typical for this operation since it has no required input parameters).
    • HTTP errors returned by the Vendus API (e.g., 401 Unauthorized, 404 Not Found).
  • Resolution Tips:

    • Verify that the Vendus API credentials are correctly configured and valid.
    • Enable "Enable Debug Logging" option to get detailed logs for troubleshooting.
    • Check network connectivity and API availability.
    • Confirm that the Vendus API base URL is correct.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion