Nuvem Solution icon

Nuvem Solution

Interact with Nuvem Solution API

Actions120

Produto → Get Fornecedores

AI-generated

Overview

This node integrates with the Nuvem Solution API to perform various operations related to business management. Specifically, for the Produto resource and the Get Fornecedores operation, it retrieves a paginated list of suppliers associated with a given product ID.

Typical use cases include:

  • Fetching supplier information for inventory or procurement processes.
  • Integrating supplier data into workflows that manage product sourcing or vendor relations.
  • Automating reporting or analytics on product-supplier relationships.

For example, a user can input a product ID and receive a list of all suppliers providing that product, optionally paginated by page number and size.

Properties

Name Meaning
Produto ID The unique identifier (ID) of the product for which to retrieve suppliers.
Page The page number for pagination of the supplier list (default is 1).
Page Size The number of items per page in the paginated response (default is 20).

Output

The output is a JSON array containing supplier objects related to the specified product. Each object represents a supplier with its details as returned by the Nuvem Solution API endpoint for product suppliers.

The structure corresponds directly to the API response from the endpoint:

GET /erp/compras/produtos/{produtoId}/fornecedores

which returns supplier data for the product identified by produtoId.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Nuvem Solution API.
  • The node uses bearer token authentication obtained via the configured credentials.
  • The base URL for the API and authentication tokens are managed internally by the node.
  • No additional external dependencies beyond the Nuvem Solution API and n8n's HTTP request helper.

Troubleshooting

  • Authentication errors: If the node fails to authenticate, ensure that the provided API key credentials (software key, secret, user ID, user key) are correct and have sufficient permissions.
  • Invalid Product ID: Providing a non-existent or invalid product ID will likely result in an error or empty results. Verify the product ID before running the node.
  • Pagination parameters: Using invalid values for page or page size (e.g., negative numbers) may cause API errors or unexpected results.
  • API rate limits or downtime: If requests fail intermittently, check for API rate limiting or service availability issues on the Nuvem Solution side.

Common error messages:

  • "Authentication failed: Invalid response from server" indicates credential or connectivity issues.
  • "The operation "getFornecedores" is not supported!" would indicate a misconfiguration but should not occur if the node is used correctly.

Links and References


This summary focuses on the Produto resource and the Get Fornecedores operation as requested, based on static analysis of the provided source code and property definitions.

Discussion