# Retrieve lot by Id Return the lot for a given lot id Endpoint: POST /api/tenant/{tenantId_path}/lot/getLotById Version: v1 ## Path parameters: - `tenantId_path` (string, required) ## Request fields (application/json-patch+json): - `id` (string) ## Response 200 fields (text/plain): - `lot` (object) - `lot.id` (string) - `lot.number` (string) - `lot.state` (integer) Enum: 1, 5, 8, 9, 10, 15 - `lot.currentLeaseId` (string,null) - `lot.currentLeaseNumber` (string,null) - `lot.currentLeaseLabel` (string,null) - `lot.currentLeaseState` (integer,null) Enum: 1, 2, 3, 4, 5 - `lot.isCurrentLeaseActive` (boolean,null) - `lot.createdAt` (string) - `lot.createdByUserId` (string,null) - `lot.createdByUserFirstName` (string,null) - `lot.createdByUserLastName` (string,null) - `lot.updatedAt` (string,null) - `lot.updatedByUserId` (string,null) - `lot.updatedByUserFirstName` (string,null) - `lot.updatedByUserLastName` (string,null) - `lot.archivedAt` (string,null) - `lot.archivedByUserId` (string,null) - `lot.archivedByUserFirstName` (string,null) - `lot.archivedByUserLastName` (string,null) - `lot.soldAt` (string,null) - `lot.soldByUserId` (string,null) - `lot.soldByUserFirstName` (string,null) - `lot.soldByUserLastName` (string,null) - `lot.acquisitionDate` (string) - `lot.floor` (string,null) - `lot.buildingPartId` (string,null) - `lot.buildingPartName` (string,null) - `lot.type` (integer) Enum: 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, 28, 29 - `lot.comment` (string,null) - `lot.unitType` (integer) Enum: 1, 2 - `lot.surface` (number,null) - `lot.unitCount` (integer,null) - `lot.lotSurfaces` (array) - `lot.lotSurfaces.isPrincipal` (boolean) - `lot.lotSurfaces.statementDate` (string,null) - `lot.dpeComment` (string,null) - `lot.dpeConsumption` (number,null) - `lot.dpeEmission` (number,null) - `lot.dpeEnergyAndClimatePerformance` (integer,null) Enum: 1, 2, 3, 4, 5, 6, 7 - `lot.dpeEstablishedOn` (string,null) - `lot.dpeNumber` (string,null) - `lot.dpeValidUntil` (string,null) - `lot.coOwnerShipLotNumber` (string,null) - `lot.deliveryPoint` (string,null) - `lot.reportingEntityNumber` (number,null) - `lot.willBeEngaged` (boolean) - `lot.canBeFullyUpdate` (boolean) - `lot.canBePartiallyUpdate` (boolean) - `lot.cantBeUpdate` (boolean) - `lot.canBeDeleted` (boolean) - `lot.minSellingOrArchivingDate` (string,null) - `lot.minUnavailableAddingDate` (string,null) - `lot.lotHistories` (array) - `lot.lotHistories.endAt` (string,null) - `lot.lotHistories.leaseId` (string,null) - `lot.lotHistories.leaseNumber` (string,null) - `lot.lotHistories.renterId` (string,null) - `lot.lotHistories.renterName` (string,null) - `lot.lotHistories.startAt` (string,null) ## Response 400 fields (text/plain): - `error` (string)