Overview
This node interacts with the Asaas API to manage customer data. Specifically, the "Deletar" (Delete) operation under the "Cliente" (Customer) resource allows users to remove a customer from their Asaas account by specifying the unique customer ID.
Common scenarios for this node include:
- Automating customer lifecycle management by removing customers who are no longer active.
- Cleaning up test or duplicate customer records in bulk workflows.
- Integrating with other systems where customer deletion triggers downstream processes.
Example use case: A business uses n8n to sync its CRM with Asaas. When a customer is deleted in the CRM, this node deletes the corresponding customer record in Asaas automatically.
Properties
| Name | Meaning |
|---|---|
| ID Do Cliente | Unique identifier of the customer to be removed |
Output
The output JSON contains the response from the Asaas API after attempting to delete the specified customer. Typically, this will include confirmation of deletion or relevant status information returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Asaas API.
- The node supports both production and sandbox environments, selectable via the credential configuration.
- Network access to
https://api.asaas.com/v3(production) orhttps://api-sandbox.asaas.com/v3(sandbox) is required.
Troubleshooting
Common issues:
- Invalid or missing customer ID will cause the API to return an error.
- Using incorrect or expired API credentials will result in authentication failures.
- Network connectivity problems can prevent successful API calls.
Error messages:
"error": "Customer not found"indicates the provided customer ID does not exist.- Authentication errors typically mention invalid tokens or unauthorized access.
Resolutions:
- Verify the customer ID is correct and exists in Asaas.
- Ensure the API key credential is valid and has appropriate permissions.
- Check network connectivity and firewall settings.