Lease
Find Leases For Tenant
This endpoint finds leases for a specific tenant based on provided parameters.
POST
The endpoint will automatically match the tenant information provided with an existing tenant within the system. At least one of the following tenant identifiers need to be provided: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.
- Internal tenant identifier (
identifier) - External tenant identifier (
external_ref) and the group id the tenant belongs to (group) - The email address of the tenant (
email_address) - The phone number of the tenant (
phone_number)
group_id or group_external_ref attribute.
Do not provide both, as this will result in the request failing.
Example use cases
This endpoint allows you to find leases for a specific tenant. You can retrieve all leases for a tenant given their internal id or external reference and group id. You can retrieve all leases for a tenant given their phone number or email address.Header
The authentication token for your request
Body
The identifier for the tenant to retrieve leases for.
The external identifier for the tenant to retrieve leases for.
The email address for the tenant to retrieve leases for.
The phone number for the tenant to retrieve leases for.
Determines whether only active leases are retrieved for the provided tenant.
The id of the group the tenant belongs to.This attribute or the group_external_ref one is needed if using the external_ref for the tenant.
The external reference of the group the tenant belongs to.This attribute or the group_id one is needed if using the external_ref for the tenant.
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
last_id.Response
The last id in the set of results returned for this API call.You can use this value in the
after-id parameter to load the next set of results.If there are no more results to load, this value will be -1.A list of the leases that have been retrieved.
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 tenant information
Both group id and external ref provided for the find leases for tenant operation
No group id or group external ref provided for tenant external reference.

