Notificações Inteligentes icon

Notificações Inteligentes

Integração do NI

Overview

The node is designed to create an event specifically for the scenario "Criar Evento De Pacote Saiu Para Entrega" (Create Event: Package Out for Delivery). This event typically represents a notification or log entry indicating that a customer's package has left the dispatch center and is on its way to delivery.

This node would be beneficial in e-commerce, logistics, or order management workflows where tracking the status of shipments is crucial. For example, when an order's shipping status changes to "out for delivery," this node can trigger downstream processes such as notifying customers, updating dashboards, or integrating with third-party tracking systems.

Properties

Name Meaning
Primeiro Nome Customer's first name
Sobrenome Customer's last name
Telefone Customer's phone number including area code and country code
Email Customer's email address
CPF/CNPJ Customer's document number (CPF or CNPJ)
Data De Nascimento Customer's birthdate in format YYYY-MM-DD
Gênero Customer's gender
Moeda Currency type used by the customer (e.g., BRL, USD, GBP)
Produtos Collection of product details including product name, quantity, and value (required)
ID Do Pedido Order ID (required)
Valor Somado Dos Produtos Do Pedido Sum of the values of all products in the order (required)
Valor Do Pedido Total Total order value including discounts and other charges (required)
Desconto Total discount applied to the order (required)
Status Current status description of the order
Parâmetros Adicionais (Endereço) Customer address details including city, complement, country, neighborhood, number, postal code, state, street
Parâmetros Adicionais (Entrega) Delivery parameters including tracking code, estimated delivery date, description, message, tracking URL, and freight value

Output

The node outputs JSON data representing the created event with all the provided input properties structured accordingly. The output includes detailed information about the customer, order, products, and delivery parameters. There is no indication of binary data output.

Dependencies

  • Requires an API key credential or similar authentication token to connect to the external service handling event creation.
  • The node depends on an external integration platform or API that accepts event data related to orders and deliveries.
  • Proper configuration of credentials and endpoint URLs within n8n is necessary for successful operation.

Troubleshooting

  • Missing Required Fields: Errors may occur if required fields like "Produtos", "ID Do Pedido", or customer contact details are missing. Ensure all mandatory inputs are provided.
  • Invalid Date Formats: The birthdate and delivery estimate date must follow the specified format (YYYY-MM-DD). Incorrect formats may cause validation errors.
  • API Authentication Failures: If the API key or authentication token is invalid or expired, the node will fail to create the event. Verify credentials and permissions.
  • Network Issues: Connectivity problems with the external API can cause timeouts or failures. Check network access and API availability.
  • Incorrect Currency Codes: Using unsupported currency codes might lead to rejection by the API. Use standard ISO currency codes.

Links and References

  • No direct links available from the source code.
  • For best practices on event-driven order management, consider consulting documentation of your external event or order management system.
  • Refer to ISO standards for currency codes and date formatting guidelines for input correctness.

Discussion