Altoviz icon

Altoviz

Invoicing app for small businesses

Unit → List

AI-generated

Summary

List units

Inputs

  • requestOptions — Advanced request settings including batching, proxy, SSL verification, and timeout. The batched mode will split the incoming items into groups for throttling requests. Only relevant when the node receives input items to process; for a pure List operation without incoming data, batching does not affect the request to the API but is still honored if present in the node configuration. Settings include batchSize (default 50, -1 disables batching, 0 treated as 1) and batchInterval in ms (default 1000, 0 disables). Ignoring SSL certificate verification is possible via allowUnauthorizedCerts (default false). Proxy can be set with the proxy string (e.g. http://username:password@host:port). Timeout defines how long to wait for response headers in milliseconds (default 10000, minimum 1).

Output shape

Array of unit objects as returned by the Altoviz /v1/Units endpoint. Each object contains the fields defined by the Altoviz API for a unit (e.g., id, label, etc.).

If batching is enabled and there are incoming items, the operation will execute multiple GET requests, each returning a slice of units, and will output the concatenated results. If there are no incoming items, a single request is made and the full list is returned.

Examples

Example 1: Retrieve all units with default settings

Resource: Unit, Operation: List, no additional parameters set.

Example 2: Process incoming items in batches of 10 with a 2‑second pause

Resource: Unit, Operation: List, requestOptions.batching.batchSize: 10, requestOptions.batching.batchInterval: 2000

Links

Discussion