This endpoint synchronises the listings in the given group with the provided listings.
POST
/
listing
/
sync
/
Authorization
string
*
Authorization
Required
string
The authentication token for your request
object
group_id
string
group_id
string
The id of a group to use for the listing sync operation.
Used for:
Please note that you can only pass one of the group_id and group_external_ref. Passing both will return an error.
group_external_ref
string
group_external_ref
string
The external reference of a group to use for the listing sync operation.
Used for:
Please note that you can only pass one of the group_id and group_external_ref. Passing both will return an error.
listings
object
listings
object
identifier
string
identifier
string
The identifier of the listing you want to update or create.
This is a unique identifier we have assigned to a listing within our system, which you can retrieve via our find endpoint.
external_reference
string
*
external_reference
Required
string
The external reference of the listing you want to update or create.
This is a unique external reference for a listing that you may set when creating a listing.
unit_id
string
unit_id
string
The id of the unit you want to associate the newly created or updated listing.
If no unit id is specified, a new unit record will be created instead.
amenities
object
amenities
object
A list of amenities for the listing to be created or updated.
features
object
features
object
A list of features for the listing to be created or updated.
finish
string
finish
string
The tier of finish for the listing to be created or updated.
active_date
string
active_date
string
The date from which the listing should become active.
If this is not provided, it will default ot the current date.
address
object
address
object
Address information for the listing to be added or updated.
building_name
string
building_name
string
The name of the building.
address_line_1
string
*
address_line_1
Required
string
The first line of the listing’s address.
address_line_2
string
address_line_2
string
The second line of the listing’s address.
city
string
city
string
The city of the listing’s address.
country
string
country
string
The country of the listing’s address.
state
string
*
state
Required
string
The state in which the listing’s address is located.
postal_code
string
*
postal_code
Required
string
The postal code of the listing’s address.
latitude
number
latitude
number
The latitude of the listing’s address.
longitude
number
longitude
number
The longitude of the listing’s address.
bathrooms
object
bathrooms
object
A list of bathroom characteristics for each bathroom for the listing to be updated or created.
has_shower_or_bath
boolean
has_shower_or_bath
boolean
Does the bathroom have either a shower or a bath?
has_sink
boolean
has_sink
boolean
Does the bathroom have a sink?
has_toilet
boolean
has_toilet
boolean
Does the bathroom have a toilet?
number_of_bathrooms
number
number_of_bathrooms
number
The number of bathrooms for this listing.
Please note that passing both the number_of_bathrooms and entries under the bathrooms attribute is not supported and will result in an error being fed back.
bedrooms
integer
bedrooms
integer
The number of bedrooms for the listing to be updated or created.
description
string
description
string
The description of the listing to be updated or created.
floorplan_url
string
floorplan_url
string
The url to the floorplan for the listing to be updated or created.
image_urls
object
image_urls
object
A list of urls of images for the listing to be updated or created.
is_flex
boolean
is_flex
boolean
Whether the listing to be updated or created is for a flex apartment or not.
is_furnished
boolean
is_furnished
boolean
Whether the listing to be updated or created is furnished or not.
lease_terms
object
lease_terms
object
A list of the terms for the lease to be updated or created.
deposit
number
deposit
number
The deposit amount for the lease term.
length_in_months
integer
length_in_months
integer
The length in months for the lease term.
rent
number
rent
number
The rent for the lease term.
move_in_date
string
move_in_date
string
The move in date for the listing to be updated or created.
sqft
number
sqft
number
The square feet surface for the listing to be updated or created.
tour_url
string
tour_url
string
The url to the virtual tour for the listing to be updated or created.
unit_number
string
unit_number
string
The number of the unit record associated with the listing to be created or updated.
unit_type
string
*
unit_type
Required
string
The type of the unit associated with the listing to be updated or created.
Will be either apartment or studio_apartment.
listing_url
string
*
listing_url
Required
string
The url of the listing to be updated or created.
This endpoint allows you to update, create and delete listings for a group.
The endpoint will attempt to reconcile every listing in the request body with an existing one for the given group and update it with the provided details.
If a listing is not found, a new one will be created.
Listings for the provided group that are not included in the request body will be deleted.
If there are no listings passed in the request body, all listings for the provided porfolio will be deleted.
You must provide either a group id via the group_id parameter or a group external reference via the group_external_ref attribute.
If both are provided, the request will not be successful.
The id of a group to use for the listing sync operation.
Used for:
searching for an existing listing record to update
setting group assignment for a newly created listing record
deleting listings in the group that are not provided in the request body
Please note that you can only pass one of the group_id and group_external_ref. Passing both will return an error.
group_external_ref
string
default: "none"
The external reference of a group to use for the listing sync operation.
Used for:
searching for an existing listing record to update
setting group assignment for a newly created listing record
deleting listings in the group that are not provided in the request body
Please note that you can only pass one of the group_id and group_external_ref. Passing both will return an error.
listings
[object]
default: "none"
identifier
string
default: "none"
The identifier of the listing you want to update or create.
This is a unique identifier we have assigned to a listing within our system, which you can retrieve via our find endpoint.
external_reference
string
default: "none"required
The external reference of the listing you want to update or create.
This is a unique external reference for a listing that you may set when creating a listing.
unit_id
string
default: "none"
The id of the unit you want to associate the newly created or updated listing.
If no unit id is specified, a new unit record will be created instead.
amenities
[string]
default: "none"
A list of amenities for the listing to be created or updated.
features
[string]
default: "none"
A list of features for the listing to be created or updated.
finish
string
default: "none"
The tier of finish for the listing to be created or updated.
active_date
date
default: "none"
The date from which the listing should become active.
If this is not provided, it will default ot the current date.
address
object
default: "none"
Address information for the listing to be added or updated.
building_name
string
The name of the building.
address_line_1
string
required
The first line of the listing’s address.
address_line_2
string
The second line of the listing’s address.
city
string
The city of the listing’s address.
country
string
The country of the listing’s address.
state
string
required
The state in which the listing’s address is located.
postal_code
string
required
The postal code of the listing’s address.
latitude
float
The latitude of the listing’s address.
longitude
float
The longitude of the listing’s address.
bathrooms
[object]
default: "none"
A list of bathroom characteristics for each bathroom for the listing to be updated or created.
has_shower_or_bath
boolean
default: "none"
Does the bathroom have either a shower or a bath?
has_sink
boolean
default: "none"
Does the bathroom have a sink?
has_toilet
boolean
default: "none"
Does the bathroom have a toilet?
number_of_bathrooms
float
default: "none"
The number of bathrooms for this listing.
Please note that passing both the number_of_bathrooms and entries under the bathrooms attribute is not supported and will result in an error being fed back.
bedrooms
integer
default: "none"
The number of bedrooms for the listing to be updated or created.
description
string
The description of the listing to be updated or created.
floorplan_url
string
The url to the floorplan for the listing to be updated or created.
image_urls
[string]
A list of urls of images for the listing to be updated or created.
is_flex
boolean
Whether the listing to be updated or created is for a flex apartment or not.
is_furnished
boolean
Whether the listing to be updated or created is furnished or not.
lease_terms
object
A list of the terms for the lease to be updated or created.
deposit
float
The deposit amount for the lease term.
length_in_months
integer
The length in months for the lease term.
rent
float
The rent for the lease term.
move_in_date
date
The move in date for the listing to be updated or created.
sqft
float
The square feet surface for the listing to be updated or created.
tour_url
string
The url to the virtual tour for the listing to be updated or created.
unit_number
string
The number of the unit record associated with the listing to be created or updated.
unit_type
string
required
The type of the unit associated with the listing to be updated or created.
Listed below are common errors that may be returned by the endpoint, along with their corresponding status code.
Status Code - 400
Missing Authorization header
{"error":{"type":"missing_authorization","message":"Your request does not include an 'Authorization' header with a bearer token for your account."}}
Status Code - 401
Expired Authorization header bearer token value
{"error":{"type":"expired_token","message":"The bearer token you have provided in the 'Authorization' header has expired. Please obtain a new one."}}
Status Code - 401
Invalid Authorization header bearer token value
{"error":{"type":"invalid_authorization","message":"The bearer token you have provided in the 'Authorization' header is invalid."}}
Status Code - 400
Returned if both a group id and group_external_ref are provided
Both group id and external ref provided for the listing synchronise operation
{"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."}}
Status Code - 400
Returned if no group_id or group_external_ref is provided
No group provided for the listing synchronise operation
{"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."}}
Status Code - 400
Returned if both the number_of_bathrooms and the bathrooms attributes are populated
Both the number_of_bathrooms and the bathrooms attributes are populated
{"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."}}
Status Code - 401
Returned if the user does not have access to the provided group
Authenticated user does not have access to the requested group
{"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."}}
Status Code - 401
Returned if no external reference is provided for one of the listings
No external reference provided for a listing
{"error":{"type":"no_external_reference","message":"You have not provided an external reference for a listing. Please provide one."}}
Status Code - 401
Returned if any of the dates provided on a listing are in an incorrect format
Date on listing is in an incorrect format
{"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."}}
Status Code - 401
Returned if any of the listings are missing a unit_type field
Vacancy is missing unit_type
{"error":{"type":"missing_unit_type","message":"You are missing the required unit_type field for a listing. Please add the field to your listing."}}
Status Code - 401
Returned if any of the listings are missing the listing_url field
Listing is missing listing_url
{"error":{"type":"missing_listing_url","message":"You are missing the required listing_url field for a listing. Please add the field to your listing."}}
Status Code - 401
Returned if any of the listings have an invalid unit_type
Listing has invalid unit_type
{"error":{"type":"invalid_unit_type","message":"Invalid value for unit_type field on a listing. Please use either \"apartment\" or \"studio_apartment\"."}}
Status Code - 401
Returned if neither of the bathroom attributes are provided
Listing has neither of the bathroom attributes provided
{"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."}}
Status Code - 401
Returned if the bathroom attribute is not provided and the number of bathrooms is less than 1
Listing does not have a bathroom attribute and the number of bathrooms is less than 1
{"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."}}