Viridem icon

Viridem

Interact's with Viridem

Actions77

Expenses → Get Image Expense

AI-generated

Overview

This node operation retrieves an image related to an expense from the Viridem API. It is useful for scenarios where users need to access or download images such as receipts or thumbnails associated with expense records in a company. For example, a user can fetch the thumbnail or full image of an expense receipt by specifying the company ID and expense ID.

Use Case Examples

  1. Fetch the thumbnail image of an expense receipt for a specific company.
  2. Download the full image of an expense for record-keeping or auditing purposes.

Properties

Name Meaning
Company Id The unique identifier of the company to which the expense belongs.
Id The unique identifier of the expense whose image is to be retrieved.
Type The targeted image type to retrieve, either a THUMBNAIL or the full IMAGE.
Method The file return method, either DOWNLOAD to get the file as a download or CONTENT to get the file content directly.
Request Options Additional request options such as batching, SSL certificate validation, proxy settings, and timeout configuration.

Output

JSON

  • imageUrl - The URL or content of the retrieved expense image.
  • imageType - The type of image retrieved, e.g., THUMBNAIL or IMAGE.
  • companyId - The company identifier associated with the expense.
  • expenseId - The expense identifier for which the image was retrieved.

Dependencies

  • Viridem API with OAuth2 authentication

Troubleshooting

  • Ensure the companyId and expenseId are valid and exist in the Viridem system to avoid 'not found' errors.
  • If the image type or method parameters are incorrect, the API may return errors or unexpected results.
  • Check network connectivity and proxy settings if requests time out or fail to connect.
  • If SSL certificate validation is disabled, be aware of potential security risks when accepting insecure responses.

Discussion