Gestor Clientes Max icon

Gestor Clientes Max

Integração completa com API de agenda para gerenciar clientes e agendamentos

Overview

This node integrates with an external appointment management API to perform various operations on appointments, clients, and financial accounts. Specifically for the Agendamento (Appointment) Delete operation, it allows users to delete an existing appointment by its ID. This is useful in scenarios where scheduled appointments need to be canceled or removed from the system.

Practical examples include:

  • Automatically deleting canceled appointments from a scheduling system.
  • Cleaning up outdated or erroneous appointment entries.
  • Integrating with other workflows that manage client bookings and require appointment removal.

Properties

Name Meaning
Appointment ID The unique numeric identifier of the appointment to delete.

Output

The output JSON contains the response from the API after attempting to delete the specified appointment. Typically, this will be a confirmation of deletion or an empty object if successful. If the deletion fails, the output may contain error details.

No binary data output is produced by this operation.

Example output JSON might look like:

{}

or

{
  "message": "Appointment deleted successfully"
}

Dependencies

  • Requires an API key credential for authenticating requests to the external appointment management API.
  • The node expects the API base URL and API key to be configured in the credentials.
  • Uses HTTP requests to communicate with the external service.

Troubleshooting

  • Common issues:

    • Invalid or missing Appointment ID: Ensure the appointment ID provided exists and is correct.
    • Authentication errors: Verify that the API key credential is valid and has necessary permissions.
    • Network or connectivity problems: Check network access to the API endpoint.
    • Attempting to delete an appointment that does not exist may result in an error from the API.
  • Error messages:

    • "Unknown operation: appointment.delete": Indicates the operation name was not recognized; ensure the operation parameter is correctly set to "delete".
    • API error responses will be passed through; check the message for details such as "Appointment not found" or "Unauthorized".

To resolve errors:

  • Double-check input parameters.
  • Confirm API credentials are correct.
  • Review API documentation for specific error codes.

Links and References

  • Refer to the external appointment API documentation for detailed information on the delete endpoint and expected responses.
  • n8n documentation on creating custom nodes and handling HTTP requests.

Discussion