Trinks icon

Trinks

Nó N8N para interagir com a API do Trinks

Actions46

Overview

This node integrates with the Trinks API, specifically allowing users to retrieve details about subscription plans from the "Clube De Assinaturas" resource. The operation GET /v1/clube/planos/{id} fetches information about a specific subscription plan by its unique identifier.

Common scenarios for this node include:

  • Fetching detailed information about a particular subscription plan to display or process within an automation workflow.
  • Integrating subscription plan data into CRM systems, billing platforms, or customer portals.
  • Automating updates or notifications based on subscription plan attributes.

For example, a user might use this node to get the details of a subscription plan when a new customer signs up, enabling personalized onboarding messages or tailored service offerings.

Properties

Name Meaning
Id The unique numeric identifier of the subscription plan to retrieve. This is a required property.

Output

The node outputs JSON data representing the subscription plan details as returned by the Trinks API. The structure typically includes all relevant fields describing the plan, such as name, price, duration, features, and other metadata defined by the API.

If the API returns binary data (not indicated in this operation), it would be included accordingly, but for this GET request, only JSON output is expected.

Dependencies

  • Requires an API key credential and an establishment ID credential to authenticate requests to the Trinks API.
  • The node sends HTTP requests to https://api.trinks.com with appropriate headers including the API key and establishment ID.
  • Proper configuration of these credentials in n8n is necessary for successful execution.

Troubleshooting

  • Operation Not Found Error: If the specified operation is not recognized, ensure that the operation string exactly matches "GET /v1/clube/planos/{id}" and that the resource is set to "Clube De Assinaturas".
  • Authentication Errors: Missing or invalid API key or establishment ID will cause authentication failures. Verify that credentials are correctly configured.
  • Invalid Id Parameter: Providing an invalid or non-existent plan ID may result in API errors or empty responses. Confirm the ID value before running the node.
  • Network Issues: Connectivity problems to api.trinks.com can cause request failures. Check network access and firewall settings.
  • Continue On Fail Behavior: If enabled, the node will return error messages in the output JSON instead of stopping execution, which can help in debugging batch operations.

Links and References

Discussion