Nuvem Solution icon

Nuvem Solution

Interact with Nuvem Solution API

Actions120

Cliente → Update Juridico

AI-generated

Overview

This node integrates with the Nuvem Solution API to perform various operations related to customers ("Cliente") and other resources. Specifically, for the "Update Juridico" operation under the "Cliente" resource, it updates the legal (juridical) customer data by sending a PATCH request with the provided JSON body to the API endpoint corresponding to the customer's ID.

This operation is useful in scenarios where you need to modify or correct the legal information of a corporate customer in your CRM system, such as updating company registration details, tax information, or other juridical attributes.

Practical example:
You have a workflow that receives updated legal customer data from an external system or form submission. Using this node's "Update Juridico" operation, you can send those updates directly to the Nuvem Solution platform to keep customer records synchronized.


Properties

Name Meaning
Cliente ID The numeric ID of the customer whose legal data you want to update.
Request Body A JSON object containing the fields and values to update for the legal customer record.

The Request Body property expects a JSON string representing the data to patch on the legal customer. This allows flexible updates depending on the API schema.


Output

  • The node outputs a JSON array containing the response from the Nuvem Solution API after performing the update operation.
  • The structure of the output JSON corresponds to the updated customer data or confirmation returned by the API.
  • No binary data output is involved in this operation.

Dependencies

  • Requires an active connection to the Nuvem Solution API.
  • Requires credentials including:
    • Base URL of the API
    • Software key
    • Secret
    • User ID
    • User key
      These are used to authenticate and authorize API requests.
  • The node uses bearer token authentication obtained via an internal authentication call before making the update request.
  • Proper configuration of these credentials in n8n is necessary for successful operation.

Troubleshooting

  • Authentication failures:
    If the node throws errors about authentication failure, verify that all credential fields (software key, secret, user ID, user key) are correctly set and valid.

  • Invalid JSON in Request Body:
    The "Request Body" must be a valid JSON string. Malformed JSON will cause parsing errors. Use JSON validators or n8n's built-in JSON editor to ensure correctness.

  • Customer ID not found or invalid:
    If the specified Cliente ID does not exist or is incorrect, the API may return a 404 or similar error. Confirm the ID is valid.

  • API endpoint errors:
    Errors from the API (e.g., validation errors on fields) will be returned in the node output. Review the API documentation for required and optional fields in the juridical customer update.

  • Continue On Fail:
    If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output.


Links and References


Summary

This node's "Update Juridico" operation under the "Cliente" resource allows updating legal customer data in the Nuvem Solution system by specifying the customer ID and a JSON payload with the desired changes. It requires proper API credentials and handles authentication internally. The output reflects the API's response to the update request.

Discussion