Rentman icon

Rentman

Interact with the Rentman rental management API

Actions206

Leave Request → Get Collection

AI-generated

Summary

Retrieves a list of leave requests from Rentman, either all of them (following pagination) or up to a limit, with optional filtering, sorting, field selection and link expansion.

Inputs

  • returnAll — If true, follows next_page_url to fetch every page of results. Default false.
  • limit — Max number of results when Return All is off (min 1, default 50).
  • offset — Number of results to skip when Return All is off (default 0; sent only if above 0).
  • filters — Optional collection: Approval Status (pending/approved/rejected), Created After, Modified After, Modified Before, ID Greater Than (useful for incremental sync), Requested For (crew path such as /crew/42), Sort (e.g. -created or +ID), and Fields (comma-separated list of fields to return).
  • customQueryParams — Arbitrary key/value query parameters for extra field filtering or relational operators such as modified[gt].
  • expand — Comma-separated linkable fields to inline instead of returning a path, with dot notation for nesting up to 3 levels. The property is declared for several operations, but its display options do not list this one, so it may not appear in the UI here.
  • requestOptions — Node-level HTTP options: batching (items per batch and interval), ignore SSL issues, proxy, and timeout (default 10000 ms).

Output shape

A list of leave request records from the Rentman API, with the fields the API returns, or only the fields selected in Fields.

The node uses declarative routing, so the exact response shape comes from the Rentman API. Linked fields are returned as resource paths unless expanded. With Return All off, results are limited by Limit and Offset. The Sort default is -created.

Examples

Example 1: Fetch all pending leave requests for approval review

Return All = true; Filters: Approval Status = pending, Sort = -created

Example 2: Incrementally sync leave requests changed since the last run

Return All = true; Filters: Modified After = last sync timestamp, Sort = +ID

Example 3: Get leave requests for one crew member

Limit = 50; Filters: Requested For (Path) = /crew/42

Links

Discussion