curl --location --request POST 'https://api.travtus.com/listings/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"group_id": "group-1",
"listings": [
{
"amenities": [
"Swimming Pool",
"Gym"
],
"features": [
"Floor heating"
],
"finish": "gold",
"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
},
"bathrooms": [
{
"identifier": "listing-1-bathroom-1"
"has_shower_or_bath": true
"has_sink": true
"has_toilet": true
},
{
"identifier": "listing-1-bathroom-2"
"has_shower_or_bath": false
"has_sink": true
"has_toilet": true
},
],
"bedrooms": 2,
"description": "A beautiful apartment in the heart of the city.",
"floorplan_url": "www.floorplans.com/listing-1",
"image_urls": [
"www.my-images-host.com/listing-1-1.jpg",
"www.my-images-host.com/listing-1-2.jpg"
],
"is_flex": false,
"is_furnished": true,
"lease_terms": [
{
"deposit": 1400.00,
"length_in_months": 12,
"rent": 700.00
}
],
"active_date": "2023-01-17",
"move_in_date": "2023-01-17",
"sqft": 40.00,
"tour_url": "www.virtualtours.com/listing-1",
"unit_number": "1",
"unit_type": "apartment",
"listing_url": "www.listings.com/listing-1"
}
]
}'
{
"success": true
}
This endpoint synchronises the listings in the given group with the provided listings.
curl --location --request POST 'https://api.travtus.com/listings/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"group_id": "group-1",
"listings": [
{
"amenities": [
"Swimming Pool",
"Gym"
],
"features": [
"Floor heating"
],
"finish": "gold",
"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
},
"bathrooms": [
{
"identifier": "listing-1-bathroom-1"
"has_shower_or_bath": true
"has_sink": true
"has_toilet": true
},
{
"identifier": "listing-1-bathroom-2"
"has_shower_or_bath": false
"has_sink": true
"has_toilet": true
},
],
"bedrooms": 2,
"description": "A beautiful apartment in the heart of the city.",
"floorplan_url": "www.floorplans.com/listing-1",
"image_urls": [
"www.my-images-host.com/listing-1-1.jpg",
"www.my-images-host.com/listing-1-2.jpg"
],
"is_flex": false,
"is_furnished": true,
"lease_terms": [
{
"deposit": 1400.00,
"length_in_months": 12,
"rent": 700.00
}
],
"active_date": "2023-01-17",
"move_in_date": "2023-01-17",
"sqft": 40.00,
"tour_url": "www.virtualtours.com/listing-1",
"unit_number": "1",
"unit_type": "apartment",
"listing_url": "www.listings.com/listing-1"
}
]
}'
{
"success": true
}
group_id parameter or a group external reference via the group_external_ref attribute.
If both are provided, the request will not be successful.
All date fields included in the body parameters need to be specified as ISO8601-formatted date strings.
Date fields should follow a “YYYY-MM-DD” format.
Show listing
Show child attributes
{
"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 synchronise listings operation. Please only provide one of the two."
}
}
{
"error": {
"type": "no_group_provided",
"message": "You have not provided either a group id or a group external reference for the synchronise listings operation. Please provide one of the two."
}
}
{
"error": {
"type": "both_bathroom_attributes_provided",
"message": "You have provided both a number_of_bathrooms and a bathrooms attribute. Please only provide one of the two."
}
}
{
"error": {
"type": "no_access_to_group",
"message": "You do not have access to the synchronise listings operation for the group you have provided in the request."
}
}
{
"error": {
"type": "no_external_reference",
"message": "You have not provided an external reference for a listing. Please provide one."
}
}
{
"error": {
"type": "date_format_invalid",
"message": "You have provided a date in an invalid format. All dates must be provided in the YYYY-MM-DD format."
}
}
{
"error": {
"type": "missing_unit_type",
"message": "You are missing the required unit_type field for a listing. Please add the field to your listing."
}
}
{
"error": {
"type": "missing_listing_url",
"message": "You are missing the required listing_url field for a listing. Please add the field to your listing."
}
}
{
"error": {
"type": "invalid_unit_type",
"message": "Invalid value for unit_type field on a listing. Please use either \"apartment\" or \"studio_apartment\"."
}
}
{
"error": {
"type": "no_bathroom_attributes_provided",
"message": "You have provided neither the number_of_bathrooms or the bathrooms attribute. Please provide one of the two."
}
}
{
"error": {
"type": "invalid_number_of_bathrooms",
"message": "You have not provided a bathroom attribute and set the number_of_bathrooms to less than 1. Please provide the bathrooms attribute or set the number_of_bathrooms to a number greater than 0."
}
}
curl --location --request POST 'https://api.travtus.com/listings/' \
--header 'Content-Type: application/json' \
--header 'Authorization: bearer <token>' \
--data-raw '{
"group_id": "group-1",
"listings": [
{
"amenities": [
"Swimming Pool",
"Gym"
],
"features": [
"Floor heating"
],
"finish": "gold",
"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
},
"bathrooms": [
{
"identifier": "listing-1-bathroom-1"
"has_shower_or_bath": true
"has_sink": true
"has_toilet": true
},
{
"identifier": "listing-1-bathroom-2"
"has_shower_or_bath": false
"has_sink": true
"has_toilet": true
},
],
"bedrooms": 2,
"description": "A beautiful apartment in the heart of the city.",
"floorplan_url": "www.floorplans.com/listing-1",
"image_urls": [
"www.my-images-host.com/listing-1-1.jpg",
"www.my-images-host.com/listing-1-2.jpg"
],
"is_flex": false,
"is_furnished": true,
"lease_terms": [
{
"deposit": 1400.00,
"length_in_months": 12,
"rent": 700.00
}
],
"active_date": "2023-01-17",
"move_in_date": "2023-01-17",
"sqft": 40.00,
"tour_url": "www.virtualtours.com/listing-1",
"unit_number": "1",
"unit_type": "apartment",
"listing_url": "www.listings.com/listing-1"
}
]
}'
{
"success": true
}