Lease
Find Leases
This endpoint returns information about all leases that match the given parameters.
GET
You need to provide at least one search parameter in your request to find leases. All date fields included in the query parameters need to be specified as ISO8601-formatted date strings. Date fields should follow a “YYYY-MM-DD” format.Documentation Index
Fetch the complete documentation index at: https://docs2.travtus.com/llms.txt
Use this file to discover all available pages before exploring further.
Example use cases
This endpoint allows you to find leases based on a number of parameters. You can retrieve all leases for a given group or list of groups by providing their IDs. You can retrieve all leases for a specific unit by passing the internal ID or the external reference. You can retrieve leases for a given address, with the possibility of narrowing or broadening the search by providing more or less address data. You can provide either group ids through thegroup_ids parameter or group external references through the group_external_refs attribute to filter the list of retrieved leases down.
Do not provide both, as this will result in the request failing.
If no group_ids or group_external_refs are specified in the request, the authenticated user will retrieve lease records for all groups they have access to.
Header
The authentication token for your request
Query Parameters
The identifier for the leases to be retrieved.
The start date of the leases to be retrieved.
The end date of the leases to be retrieved.
The move in date of the leases to be retrieved.
A comma-separated list of group ids to retrieve leases for.
A comma-separated list of group external refs to retrieve leases for.
The unit external reference to retrieve leases for.
The unit internal ID to retrieve leases for.
An address to retrieve leases for.
The API returns a maximum of 100 records per call.You can use this parameter to load the next set of records by passing in the value returned in the response, under
pagination.next_cursor.Number of records to skip before returning results.
Maximum number of records to return per page.
Response
A list of the leases that have been retrieved.
Pagination information for navigating through the result set.
Errors
Listed below are common errors that may be returned by the endpoint, along with their corresponding status code. Status Code - 400Missing Authorization header
Expired Authorization header bearer token value
Invalid Authorization header bearer token value
No search parameters provided
Both group id and external ref provided for the tenant find operation
No lease records found for the provided parameters

