Tiny ERP icon

Tiny ERP

Interact with Tiny ERP API v3

Overview

This node integrates with the Tiny ERP API v3, allowing users to manage various business resources such as products, customers, orders, invoices, stock, contacts, and account information. Specifically, for the Product - Get operation, it retrieves detailed information about a single product by its ID.

Typical use cases include:

  • Fetching product details to display or process in workflows.
  • Integrating product data from Tiny ERP into other systems.
  • Automating inventory or catalog updates based on product information.

Example: You want to retrieve the details of a specific product by its ID to update your e-commerce platform or generate reports.

Properties

Name Meaning
ID The unique identifier of the product to retrieve. This is a required string input.

Output

The node outputs JSON data representing the product details retrieved from the Tiny ERP API. The structure corresponds to the product resource schema defined by Tiny ERP, typically including fields like product name, description, price, SKU/code, and other product attributes.

No binary data output is produced by this operation.

Example output snippet (simplified):

{
  "id": "12345",
  "nome": "Product Name",
  "descricao": "Product Description",
  "preco": 100.0,
  "codigo": "SKU123"
}

Dependencies

  • Requires an OAuth2 API credential configured in n8n to authenticate requests against the Tiny ERP API.
  • Internet access to https://erp.tiny.com.br/public-api/v3.
  • The node uses the tinyOAuth2Api credential type for authentication (configured externally).

Troubleshooting

  • Common issues:

    • Invalid or missing product ID will cause the API to return an error.
    • Authentication failures if the OAuth2 token is expired or misconfigured.
    • Network connectivity problems preventing access to the Tiny ERP API endpoint.
  • Error messages:

    • "Tiny ERP API request failed: <error message>": Indicates an issue with the API call, possibly due to invalid parameters, authentication errors, or server issues.
    • "Unknown operation: get": Should not occur if the operation is correctly set; indicates internal misconfiguration.
  • Resolutions:

    • Verify that the product ID is correct and exists in Tiny ERP.
    • Check and refresh the OAuth2 credentials in n8n.
    • Ensure network connectivity and API endpoint availability.

Links and References

Discussion