Actions46
- Agendamentos Actions
- GET /v1/agendamentos
- POST /v1/agendamentos
- GET /v1/agendamentos/{id}
- PUT /v1/agendamentos/{agendamentoId}
- PATCH /v1/agendamentos/{agendamentoId}/status/confirmado
- PATCH /v1/agendamentos/{agendamentoId}/status/cancelado
- PATCH /v1/agendamentos/{agendamentoId}/status/finalizado
- PATCH /v1/agendamentos/{agendamentoId}/status/clientefaltou
- PATCH /v1/agendamentos/{agendamentoId}/status/ematendimento
- GET /v1/agendamentos/profissionais/{data}
- Clientes Actions
- Clientes Creditos Actions
- Clientes Etiquetas Actions
- Clientes Telefones Actions
- Clientes Vales Presentes Actions
- Clube De Assinaturas Actions
- Estabelecimentos Actions
- Etiquetas Actions
- Fidelidade Actions
- Financeiro Formas Pagamento Actions
- Financeiro Motivos Descontos Actions
- Financeiro Transacoes Actions
- Financeiro Vendas De Produto Actions
- Produtos Actions
- Profissionais Actions
- Servicos Actions
Overview
This node integrates with the Trinks API, allowing users to interact with various resources and operations exposed by the API. Specifically, for the resource "Clientes" and operation "GET /v1/clientes/{id}", it retrieves detailed information about a client identified by their unique ID. This is useful in scenarios where you need to fetch client data dynamically within an automation workflow, such as retrieving customer details before processing appointments or sending notifications.
Practical examples include:
- Fetching client profile information to personalize communications.
- Retrieving client data to verify identity or membership status.
- Integrating client details into CRM or marketing workflows.
Properties
| Name | Meaning |
|---|---|
| Id | The unique numeric identifier of the client to retrieve. This is a required property. |
Output
The node outputs JSON data representing the client information returned by the Trinks API for the specified client ID. The structure of this JSON depends on the API response but typically includes client attributes such as name, contact details, and other relevant metadata.
If the API returns binary data (not indicated here), it would be included accordingly, but for this GET operation, the output is purely JSON.
Example output snippet (conceptual):
{
"id": 123,
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+5511999999999",
...
}
Dependencies
- Requires an API key credential and an establishment ID credential configured in n8n to authenticate requests to the Trinks API.
- The node sends HTTP requests to
https://api.trinks.comwith appropriate headers including the API key and establishment ID. - No additional external dependencies beyond the Trinks API and n8n's HTTP request capabilities.
Troubleshooting
Common issues:
- Invalid or missing API key or establishment ID credentials will cause authentication failures.
- Providing an invalid or non-existent client ID may result in a 404 error or empty response.
- Network connectivity issues can prevent successful API calls.
Error messages:
"Operation ... not found": Indicates that the specified operation string does not match any available operations. Verify the operation name.- API errors returned from Trinks (e.g., unauthorized, not found) will be passed through in the node output if "Continue On Fail" is enabled; otherwise, they will stop execution.
Resolutions:
- Ensure credentials are correctly set up and valid.
- Confirm the client ID exists in the Trinks system.
- Check network access and proxy settings if applicable.
Links and References
- Trinks API Documentation (hypothetical link)
- n8n documentation on HTTP Request Node for understanding underlying request mechanics.