curl --location --request POST 'https://api.travtus.com/leases/tenants/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"min_move_in_date": "2020-01-17",
"identifier": "lease-1"
}'
{
"tenants": [
{
"identifier": "internal-id-1",
"email_address": "[email protected]",
"first_name": "Test",
"last_name": "Tenant",
"external_ref": "id-1",
"phone_number": "01234567890"
},
{
"identifier": "internal-id-2",
"email_address": "[email protected]",
"first_name": "Test",
"last_name": "Tenant 2",
"external_ref": "id-2",
"phone_number": "01234567890"
}
],
"last_id": 5
}
This endpoint returns a list of tenants filtered with the specified parameters.
curl --location --request POST 'https://api.travtus.com/leases/tenants/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"min_move_in_date": "2020-01-17",
"identifier": "lease-1"
}'
{
"tenants": [
{
"identifier": "internal-id-1",
"email_address": "[email protected]",
"first_name": "Test",
"last_name": "Tenant",
"external_ref": "id-1",
"phone_number": "01234567890"
},
{
"identifier": "internal-id-2",
"email_address": "[email protected]",
"first_name": "Test",
"last_name": "Tenant 2",
"external_ref": "id-2",
"phone_number": "01234567890"
}
],
"last_id": 5
}
min_move_in_date) and/or maximum (max_move_in_date) move in date range.
You can retrieve tenants for leases belonging specific group via the group’s ID.
You can retrieve tenants with a lease at a particular address, with the possibility of narrowing or broadening the search by providing more or less address data.
You can provide either a group id through the group_id parameter or a group external reference through the group_external_ref attribute to filter the list of retrieved tenants down.
Do not provide both, as this will result in the request failing.
If no group_id or group_external_ref are specified in the request body, the authenticated user will retrieve tenant records for all groups they have access to.
Show child attributes
last_id.Show properties
after-id parameter to load the next set of results.If there are no more results to load, this value will be -1.{
"error": {
"type": "missing_authorization",
"message": "Your request does not include an 'Authorization' header with a bearer token for your account."
}
}
{
"error": {
"type": "expired_token",
"message": "The bearer token you have provided in the 'Authorization' header has expired. Please obtain a new one."
}
}
{
"error": {
"type": "invalid_authorization",
"message": "The bearer token you have provided in the 'Authorization' header is invalid."
}
}
{
"error": {
"type": "both_group_identifiers_provided",
"message": "You have provided both a group id and group external reference for the find tenant operation. Please only provide one of the two."
}
}
{
"error": {
"type": "not_found",
"message": "There are no tenant records matching the provided parameters."
}
}
curl --location --request POST 'https://api.travtus.com/leases/tenants/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"min_move_in_date": "2020-01-17",
"identifier": "lease-1"
}'
{
"tenants": [
{
"identifier": "internal-id-1",
"email_address": "[email protected]",
"first_name": "Test",
"last_name": "Tenant",
"external_ref": "id-1",
"phone_number": "01234567890"
},
{
"identifier": "internal-id-2",
"email_address": "[email protected]",
"first_name": "Test",
"last_name": "Tenant 2",
"external_ref": "id-2",
"phone_number": "01234567890"
}
],
"last_id": 5
}