Feegow Clinic icon

Feegow Clinic

Integração com a API Feegow

Overview

This node integrates with the Feegow Clinic API to manage medical appointments and related resources. Specifically, for the "Cancelar Agendamento" (Cancel Appointment) operation under the Agendamento (Appointments) resource, it allows users to cancel an existing appointment by providing the appointment ID, a cancellation reason ID, and optionally an additional observation.

Common scenarios where this node is beneficial include:

  • Automating appointment cancellations in a clinic management workflow.
  • Integrating patient scheduling systems with Feegow to keep appointment statuses synchronized.
  • Handling bulk or conditional cancellations based on external triggers or business rules.

Practical example:

  • A clinic uses n8n to automate workflows. When a patient cancels via a web form, this node can be triggered to cancel the corresponding appointment in Feegow automatically, specifying the cancellation reason and any notes.

Properties

Name Meaning
Dados De Cancelamento (cancel_data) Collection of cancellation data:
- Agendamento ID (agendamento_id) Numeric ID of the appointment to cancel (required).
- Motivo ID (motivo_id) Numeric ID representing the reason for cancellation (required).
- Observação (obs) Optional string for additional observations or comments about the cancellation.

Output

The node outputs a JSON object containing the response from the Feegow API after attempting to cancel the appointment. The structure depends on the API's response but typically includes confirmation of cancellation or error details.

No binary data output is produced by this operation.

Example output JSON snippet (conceptual):

{
  "success": true,
  "message": "Appointment cancelled successfully",
  "appointment_id": 12345
}

Dependencies

  • Requires an active connection to the Feegow Clinic API.
  • Needs an API authentication credential configured in n8n (an API key or token).
  • The node uses HTTP POST requests to the /api/appoints/cancel endpoint of the Feegow API.

Troubleshooting

  • Missing Required Fields: If agendamento_id or motivo_id are not provided or invalid, the API will likely return an error. Ensure these fields are correctly set.
  • API Authentication Errors: If the API key or token is missing or invalid, the request will fail. Verify credentials in n8n settings.
  • Network Issues: Connectivity problems may cause timeouts or failures. Check network access to the Feegow API.
  • Invalid Cancellation Reason: Using a motivo_id that does not exist or is not valid for cancellation may result in errors.
  • Error Messages: The node throws errors prefixed with Erro na operação cancelAppointment para appointments: followed by the API or internal error message. Use this to identify issues.

Links and References

Discussion