Wazend API icon

Wazend API

Interact with Wazend API

Overview

This node, named "Wazend API," is designed to interact with the Wazend API service. Specifically, for the resource "Mensaje" and operation "Enviar PIX," it facilitates sending a PIX payment message. PIX is an instant payment system widely used in Brazil, allowing quick money transfers using keys such as phone numbers, emails, CPF/CNPJ identifiers, or random keys.

Common scenarios where this node is beneficial include automating financial transactions, integrating instant payments into workflows, or notifying recipients via messaging platforms about PIX transfers. For example, a business could automatically send PIX payment requests or confirmations to customers after an order is processed.

Properties

Name Meaning
Nombre De La Instancia The name of the instance that will send the PIX payment.
Número Del Destinatario The recipient's number (likely a chat or contact identifier) to whom the PIX is sent.
Nombre Del Beneficiario The name of the beneficiary who will receive the PIX payment.
Tipo De La Clave The type of PIX key used for the transaction. Options: Teléfono, E-Mail, CPF, CNPJ, Aleatoria (Phone, Email, CPF, CNPJ, Random).
Clave PIX The actual PIX key value of the beneficiary.

Output

The node outputs a JSON array containing the response from the Wazend API after attempting to send the PIX message. The exact structure depends on the API response but generally includes confirmation details of the sent PIX message.

If binary data were involved (e.g., attachments), it would be summarized here; however, based on the provided code and properties, the output is purely JSON.

Dependencies

  • Requires access to the Wazend API endpoint at https://docs.wazend.net/wazend.
  • Needs an API authentication token or key configured in n8n credentials (referred generically as "an API key credential").
  • The node uses standard HTTP headers for JSON communication (Accept: application/json, Content-Type: application/json).

Troubleshooting

  • Unsupported Operation Error: If the node throws an error stating the operation is not supported, verify that the resource and operation names are correctly set to "messages-api" and "send-pix" respectively.
  • Authentication Issues: Ensure the API key credential is properly configured and valid; otherwise, API calls will fail.
  • Invalid PIX Key or Type: Providing an incorrect PIX key or mismatched key type may cause the API to reject the request.
  • Missing Required Properties: All required fields must be filled; missing any required property like instance name or beneficiary name will result in errors.
  • Network or API Endpoint Errors: Check network connectivity and confirm the Wazend API endpoint is reachable.

Links and References

Discussion