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 customer data, specifically allowing you to update existing customer records. It is useful in scenarios where you need to keep your customer information synchronized between Asaas and other systems or automate updates based on external triggers.

For example, if a customer's contact details change in your CRM, you can use this node to automatically update the corresponding customer record in Asaas, ensuring billing and communication remain accurate.

Properties

Name Meaning
Nome Customer's full name (required).
CPF/CNPJ Customer's CPF or CNPJ number (Brazilian individual or company tax ID), numbers only (required).
Email Customer's email address.
Telefone Celular Customer's mobile phone number, numbers only.
Telefone Fixo Customer's landline phone number, numbers only.
CEP Postal code of the customer's address, numbers only.
Número Do Endereço Street number of the customer's address.
Complemento Additional address information (e.g., apartment, suite).
ID Do Cliente Unique identifier of the customer in Asaas (required for update operations).

Output

The node outputs JSON data representing the updated customer object as returned by the Asaas API. This typically includes all customer fields such as name, identification number, contact details, and address information after the update operation.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the Asaas API.
  • The node uses the Asaas REST API endpoint, which varies depending on whether the environment is set to sandbox or production.
  • Proper network access to the Asaas API endpoints is necessary.

Troubleshooting

  • Package Availability: The node checks if its npm package is still available. If removed, it throws an error advising removal of the node from the installation.
  • Invalid Customer ID: When updating, providing an invalid or missing customer ID will cause the API request to fail. Ensure the "ID Do Cliente" property is correctly set.
  • Required Fields Missing: The "Nome" and "CPF/CNPJ" fields are required. Omitting them may result in errors from the API.
  • API Authentication Errors: Incorrect or missing API keys will cause authentication failures. Verify credentials configuration.
  • Network Issues: Connectivity problems to the Asaas API endpoints will cause request failures. Check network settings and firewall rules.

Links and References

Discussion