Asaas icon

Asaas

Integração com a API do Asaas para pagamentos e cobranças

Overview

This node integrates with the Asaas API to manage customers, payments, subscriptions, webhooks, payment links, anticipations, and splits. Specifically, for the Cliente (Customer) resource with the Excluir (Delete) operation, it deletes a customer from the Asaas system by their unique customer ID.

Common scenarios where this node is beneficial include automating customer management workflows such as removing outdated or inactive customers from your billing system, cleaning up test data, or integrating customer lifecycle events in your automation pipelines.

Practical example:
You have an automated process that detects when a customer cancels their subscription or requests account deletion. This node can be used to automatically delete the corresponding customer record in Asaas by providing the customer's unique ID.


Properties

Name Meaning
ID Do Cliente The unique identifier of the customer to delete (e.g., cus_000005219613). This is required.

Output

The node outputs JSON data representing the response from the Asaas API after attempting to delete the customer. Typically, for a successful delete operation, the API returns confirmation or an empty object. If the deletion fails, the output will contain error information.

The output structure is:

{
  "json": {
    // API response data or error message
  }
}

No binary data output is produced by this operation.


Dependencies

  • Requires an API key credential for authenticating with the Asaas API.
  • The node uses the Asaas REST API endpoints, switching between sandbox and production URLs based on the configured environment.
  • No additional external dependencies beyond the Asaas API and n8n's HTTP request capabilities.

Troubleshooting

  • Package Removed Error:
    If you see the error "Este pacote foi removido do npm e não está mais disponível. Por favor, remova este nó da sua instalação.", it means the underlying package for this node has been removed from npm. To resolve, remove or update the node in your workflow.

  • Invalid Customer ID:
    Providing an invalid or non-existent customer ID will cause the API to return an error. Ensure the ID is correct and exists in your Asaas account.

  • Authentication Errors:
    If the API key is missing, invalid, or lacks permissions, the node will fail. Verify your API credentials and environment configuration.

  • Network Issues:
    Timeouts or connectivity problems may cause failures. Check your network connection and Asaas service status.


Links and References

Discussion