A unit represents a property you manage. They are normally imported from the PMS integrated with Reva, but you can also create them manually. This endpoint will return all active units for a company.
The response will be encapsulated by two objects: the data object that will contain the information for the units. And the filters object that will contain the information about the pagination and the results from the filtering process.
Within this object each unit will have the following attributes:
id uuid
The unique id for the unit.
name string
The name of the unit imported from the PMS or set by the user upon it's creation.
provider_id string
The id of the unit that comes from the PMS.
beds integer
The number of beds the unit has, this comes directly from the PMS and if this information is not present the returned value will be null.
node_id integer
The id of the node the unit is classified in. This comes directly from the PMS or is populated by Reva when the user modifies the tree manually.
Within this object the following attributes will be returned:
total_records integer
The total number of records that match the filters.
per_page integer
The number of records returned per page.
page integer
The current page.
pages integer
The total number of pages with data.
