Negocie icon

Negocie

Consume Negocie API

Overview

The node "Negocie" integrates with the Negocie API to perform operations related to financial debts, payments, and agreements. Specifically, for the resource Dívida and operation Negociar dívida, it allows users to interact with debt-related data, such as retrieving or managing debts associated with a given document identifier.

This node is beneficial in scenarios where automation of debt negotiation processes is required, such as:

  • Fetching outstanding debts for a customer based on their document ID.
  • Automating follow-up actions on debts within a workflow.
  • Integrating debt information into broader financial or CRM systems.

For example, a user could input a customer's document number to retrieve all their debts and then trigger further workflows to negotiate or settle those debts automatically.

Properties

Name Meaning
Token Bearer Token used for authenticating API requests to the Negocie service.

Note: The provided property list only includes the "Token" string input relevant to resources including "divida". Other properties like "documento" (document identifier) are referenced in the code but not explicitly listed in the provided JSON; they are essential inputs for identifying the debt records.

Output

The node outputs an array of JSON objects representing the response from the Negocie API. Each item corresponds to the data retrieved or affected by the operation, typically containing details about debts linked to the specified document.

If errors occur during processing individual items and the node is configured to continue on failure, the output will include error messages alongside empty JSON objects for those items.

No binary data output is indicated in the source code.

Dependencies

  • Requires access to the Negocie API endpoint.
  • Needs a valid Bearer Token for authentication, supplied via the "Token" property.
  • No explicit external libraries beyond the bundled GenericFunctions and Common modules are required.
  • Proper configuration of API credentials and network access to the Negocie API is necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing Bearer Token leading to authentication failures.
    • Incorrect or missing document identifiers causing empty or error responses.
    • Network connectivity issues preventing API calls.
  • Error Handling:

    • If the node encounters an error during execution for a specific item and "Continue On Fail" is enabled, it will output an error message for that item without stopping the entire workflow.
    • Without "Continue On Fail," any error will halt execution and throw an exception.
  • Resolution Tips:

    • Verify the correctness and validity of the Bearer Token.
    • Ensure the document identifier is correctly provided and matches expected formats.
    • Check network connectivity and API endpoint availability.

Links and References

Discussion