curl --location --request POST 'https://api.travtus.com/leases/find-for-tenant/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"email_address": "[email protected]",
"active": true
}'
{
"leases": [
{
"identifier": "lease-1",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"tenants": [
{
"identifier": "0123-4567-8901-2345",
"external_ref": "person-external-ref-1",
"email_address": "[email protected]",
"phone_number": "01234567890",
"active": true,
"group": "group-1"
}
]
"unit_id": "unit-id-1",
"unit_external_ref": "unit-id-1",
"is_furnished": false,
"minimum_days_notice": 30,
"deposit": 1400.0,
"rent": 700.0,
"unit_number": "1",
"address": {
"building_name": "Building 1",
"address_line_1": "Blvd Street",
"address_line_2": "Appartment 12",
"city": "New York",
"country": "United States",
"state": "New York",
"postal_code": "10001",
"latitude": 40.730610,
"longitude": -73.935242
}
},
]
}
This endpoint finds leases for a specific tenant based on provided parameters.
curl --location --request POST 'https://api.travtus.com/leases/find-for-tenant/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"email_address": "[email protected]",
"active": true
}'
{
"leases": [
{
"identifier": "lease-1",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"tenants": [
{
"identifier": "0123-4567-8901-2345",
"external_ref": "person-external-ref-1",
"email_address": "[email protected]",
"phone_number": "01234567890",
"active": true,
"group": "group-1"
}
]
"unit_id": "unit-id-1",
"unit_external_ref": "unit-id-1",
"is_furnished": false,
"minimum_days_notice": 30,
"deposit": 1400.0,
"rent": 700.0,
"unit_number": "1",
"address": {
"building_name": "Building 1",
"address_line_1": "Blvd Street",
"address_line_2": "Appartment 12",
"city": "New York",
"country": "United States",
"state": "New York",
"postal_code": "10001",
"latitude": 40.730610,
"longitude": -73.935242
}
},
]
}
identifier)external_ref) and the group id the tenant belongs to (group)email_address)phone_number)group_id or group_external_ref attribute.
Do not provide both, as this will result in the request failing.
last_id.after-id parameter to load the next set of results.If there are no more results to load, this value will be -1.Show leases
Show address
{
"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": "no_tenant_information",
"message": "You need to provide at least one of identifier, external_ref AND group, email_address, or phone_number in the request body."
}
}
{
"error": {
"type": "both_group_identifiers_provided",
"message": "You have provided both the group id and group external reference for the find leases for tenant operation. Please only provide one of the two."
}
}
{
"error": {
"type": "both_group_identifiers_provided",
"message": "You have not a group id or group external reference when identifying a tenant via their external reference. Please provide one of the two."
}
}
curl --location --request POST 'https://api.travtus.com/leases/find-for-tenant/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"email_address": "[email protected]",
"active": true
}'
{
"leases": [
{
"identifier": "lease-1",
"start_date": "2023-01-17",
"end_date": "2023-12-17",
"move_in_date": "2023-01-17",
"tenants": [
{
"identifier": "0123-4567-8901-2345",
"external_ref": "person-external-ref-1",
"email_address": "[email protected]",
"phone_number": "01234567890",
"active": true,
"group": "group-1"
}
]
"unit_id": "unit-id-1",
"unit_external_ref": "unit-id-1",
"is_furnished": false,
"minimum_days_notice": 30,
"deposit": 1400.0,
"rent": 700.0,
"unit_number": "1",
"address": {
"building_name": "Building 1",
"address_line_1": "Blvd Street",
"address_line_2": "Appartment 12",
"city": "New York",
"country": "United States",
"state": "New York",
"postal_code": "10001",
"latitude": 40.730610,
"longitude": -73.935242
}
},
]
}