SacNews - Relacionamento icon

SacNews - Relacionamento

Interação com a Plataforma de Relacionamento via WhatsApp - SacNews

Actions59

Overview

This node integrates with the SacNews platform to interact with its product catalog, specifically allowing users to list products within a given category. The "Produto - Listar" operation fetches items belonging to a specified product category, supporting pagination to handle large sets of products.

Common scenarios where this node is beneficial include:

  • Retrieving and displaying product lists filtered by category in automated workflows.
  • Synchronizing product data from SacNews into other systems or databases.
  • Building custom dashboards or reports that require up-to-date product information per category.

For example, a user can automate fetching all products under the "Electronics" category page by page, then process or export this data for inventory management or marketing purposes.

Properties

Name Meaning
Categoria ID (categoryId) The unique identifier of the product category whose items you want to retrieve. This is required.
Página (page) The page number for paginating through the list of products. Defaults to 1. Minimum value is 1.

Output

The node outputs JSON data representing the list of products retrieved from the specified category and page. Each item in the output typically includes product details such as name, description, price, and other relevant attributes provided by the SacNews platform.

If the node supports binary data output (not explicitly shown in the code), it would represent associated media like product images; however, based on the static analysis, the output focuses on JSON product data.

Dependencies

  • Requires an API key credential to authenticate with the SacNews platform.
  • The node depends on internal action modules (./actions) which implement the actual API calls.
  • Proper configuration of the API authentication token in n8n credentials is necessary for successful execution.

Troubleshooting

  • Missing or invalid Categoria ID: Since the category ID is required, ensure it is correctly provided; otherwise, the node will fail to fetch products.
  • Pagination issues: Providing a page number less than 1 may cause errors or unexpected results. Always use page numbers starting at 1.
  • Authentication errors: If the API key credential is missing or invalid, the node will not connect to the SacNews platform. Verify the credential setup.
  • Empty results: If the category ID does not exist or has no products, the output will be empty. Confirm the category ID is valid and contains items.

Links and References

Discussion