Nuvem Solution icon

Nuvem Solution

Interact with Nuvem Solution API

Actions120

Pedido → Cancelar Pedido

AI-generated

Overview

This node integrates with the Nuvem Solution API to perform various operations related to orders ("Pedido") among many other resources. Specifically, for the "Cancelar Pedido" (Cancel Order) operation under the "Pedido" resource, it allows users to cancel an existing order by providing the order ID and optional request body parameters.

Typical use cases include:

  • Automating order cancellation workflows in e-commerce or sales systems.
  • Integrating order management processes with external ERP or CRM systems.
  • Handling bulk or conditional cancellations triggered by business logic in n8n workflows.

For example, a user can configure this node to cancel an order when certain conditions are met downstream in their automation, such as payment failure or customer request.

Properties

Name Meaning
ID do Pedido The numeric identifier of the order to be canceled. This is required for cancellation.
Request Body A JSON object representing additional data to send with the cancellation request. This can include cancellation reasons or flags as supported by the API.

Output

The node outputs a JSON array containing the response from the Nuvem Solution API for the cancellation request. The structure depends on the API's response but typically includes confirmation of cancellation status, any messages, and possibly updated order details.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active connection to the Nuvem Solution API.
  • Needs credentials configured in n8n that provide:
    • Base URL of the API.
    • Software key.
    • Secret.
    • User ID.
    • User key.
  • The node uses bearer token authentication obtained via these credentials.
  • Proper permissions on the API side to perform order cancellation.

Troubleshooting

  • Authentication errors: If the node fails to authenticate, verify that all credential fields (software key, secret, user ID, user key) are correct and have not expired.
  • Invalid order ID: Ensure the "ID do Pedido" corresponds to an existing order; otherwise, the API may return an error indicating the order was not found.
  • Malformed JSON in Request Body: The "Request Body" must be valid JSON. Invalid JSON will cause parsing errors before sending the request.
  • API permission issues: Lack of proper permissions for cancellation may result in authorization errors.
  • Network or connectivity issues: Confirm that the base URL is reachable from the n8n environment.

To resolve errors, check the error message returned by the node, validate input parameters, and confirm API access rights.

Links and References

Discussion