Viridem icon

Viridem

Interact's with Viridem

Actions77

Expenses → Unlock Expense

AI-generated

Overview

This node operation is designed to unlock expenses within a specified company in the Viridem system. It supports unlocking a single expense by its ID or multiple expenses by providing an array of IDs. This operation is useful in scenarios where expenses have been locked for editing or processing and need to be unlocked for further modifications or review.

Use Case Examples

  1. Unlock a single expense by providing the company ID and the expense ID.
  2. Unlock multiple expenses at once by providing the company ID and a JSON array of expense IDs.

Properties

Name Meaning
Company Id The identifier of the company to which the expense(s) belong. This is a required numeric input.
Id The numeric ID of a single expense to unlock. Used when unlocking one expense at a time.
Ids A JSON array of expense IDs to unlock multiple expenses in one operation.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and request timeout.

Output

JSON

  • id - The ID of the unlocked expense(s) returned from the operation.
  • status - The status or result of the unlock operation for each expense.

Dependencies

  • Viridem API with OAuth2 authentication

Troubleshooting

  • Ensure the company ID and expense IDs are valid and exist in the Viridem system to avoid errors.
  • If unlocking multiple expenses, ensure the JSON array of IDs is correctly formatted and parsed.
  • Check network settings such as proxy and SSL options if requests fail due to connectivity or security issues.
  • Timeout errors may occur if the server is slow to respond; adjust the timeout setting accordingly.

Discussion