# Retrieve building lease list Retrieve building lease list Endpoint: POST /api/tenant/{tenantId_path}/lease/getLeasesByBuildingId Version: v1 ## Path parameters: - `tenantId_path` (string, required) ## Request fields (application/json-patch+json): - `buildingId` (string) - `datatable` (object) - `datatable.sort` (object,null) - `datatable.sort.sortBy` (integer) Enum: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 - `datatable.sort.sortMode` (integer) Enum: 1, 2 - `datatable.pagination` (object) - `datatable.pagination.page` (integer) - `datatable.pagination.rowsPerPage` (integer) - `datatable.filters` (object,null) - `datatable.search` (object,null) - `datatable.search.value` (string) - `isActive` (boolean,null) - `leaseExpirationSignal` (integer,null) Enum: 1, 2, 3, 10 ## Response 200 fields (text/plain): - `datatable` (object) - `datatable.sort` (object,null) - `datatable.sort.sortBy` (integer) Enum: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 - `datatable.sort.sortMode` (integer) Enum: 1, 2 - `datatable.pagination` (object) - `datatable.pagination.page` (integer) - `datatable.pagination.rowsPerPage` (integer) - `datatable.pagination.totalItems` (integer,null) - `datatable.filters` (object,null) - `datatable.filters.filterList` (array) - `datatable.filters.filterList.name` (integer) Enum: 1, 2, 3, 4, 5, 6, 7 - `datatable.filters.filterList.values` (array) - `datatable.search` (object,null) - `datatable.search.value` (string) - `facets` (array) - `facets.facetInfos` (array) - `facets.facetInfos.id` (string) - `facets.facetInfos.label` (string) - `facets.facetInfos.count` (integer,null) - `list` (array) - `list.activatedAt` (string,null) - `list.buildingName` (string) - `list.closedAt` (string,null) - `list.creationTime` (string) - `list.effectiveDate` (string,null) - `list.endDate` (string,null) - `list.hasTaxSystem` (boolean) - `list.isActive` (boolean) - `list.isInternal` (boolean) - `list.isReviewed` (boolean) - `list.leaseExpirationSignal` (integer) Enum: 1, 2, 3, 10 - `list.leaseState` (integer) Enum: 1, 2, 3, 4, 5 - `list.leaseType` (integer) Enum: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 - `list.lotTotalSurface` (number) - `list.nextBreakDate` (string,null) - `list.number` (string) - `list.renterCompanyName` (string) - `list.renterImageUri` (string,null) - `list.revisedAnnualRent` (number,null) - `list.taxSystem` (integer,null) Enum: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 100, 110, 120, 150, 200, 205, 208, 210, 900, 910 - `list.terminationDate` (string,null) - `list.areLotsEngagedByAnotherLeases` (boolean) - `list.isExcludedFromBillingSession` (boolean) ## Response 400 fields (text/plain): - `error` (string)