Nuvem Solution icon

Nuvem Solution

Interact with Nuvem Solution API

Actions120

Bloqueios → Get Motivos

AI-generated

Overview

This node integrates with the Nuvem Solution API to perform various operations across multiple resources. Specifically, for the Bloqueios resource and the Get Motivos operation, it retrieves the reasons (motivos) associated with a specified type of blocking. This is useful in scenarios where you need to understand or list the causes behind certain blockings in a sales or financial context.

For example, if your workflow needs to fetch all possible reasons why a customer or transaction might be blocked based on a particular blocking type, this operation provides that data directly from the Nuvem Solution system.

Properties

Name Meaning
Tipo Bloqueio Type of blocking to get reasons for. This is a string value specifying the category/type of blocking whose reasons you want to retrieve.

Output

The output of the Get Motivos operation is a JSON array containing the reasons related to the specified blocking type. Each item in the array represents a reason (motivo) for the blocking.

  • The json output field will contain this array of objects describing each blocking reason.
  • There is no binary data output for this operation.

Dependencies

  • Requires an API key credential for authentication with the Nuvem Solution API.
  • The node uses the base URL and credentials (software key, secret, user ID, user key) configured in the node's credentials.
  • The node makes HTTP GET requests to the endpoint /erp/forcaVendas/bloqueios/motivos/{tipoBloqueio} to fetch the blocking reasons.

Troubleshooting

  • Authentication errors: If the node fails to authenticate, ensure that the API credentials (software key, secret, user ID, user key) are correctly set and valid.
  • Invalid Tipo Bloqueio: Providing an incorrect or unsupported blocking type may result in an error or empty response. Verify the blocking type value against the API documentation or system.
  • Network issues: Ensure that the n8n instance has network access to the Nuvem Solution API endpoint.
  • API errors: The node throws errors if the operation is not supported or if the API returns an error. Check the error message for details and verify parameters.

Links and References

  • Nuvem Solution API Documentation (generic link; consult your specific API docs for detailed info)
  • For more information about blocking types and reasons, refer to your organization's Nuvem Solution API reference or support.

This summary focuses exclusively on the Bloqueios resource and the Get Motivos operation as requested.

Discussion