Represents a Lease Unit in SOFT4Spaces.
Note
For information about enabling APIs for Business Central see Overview.
API endpoint
| API | Path |
| leaseUnit | businesscentralPrefix/soft4/soft4spaces/v3.0/companies({{companyId}})/leaseUnits |
Methods
| Method | Return Type | Description |
| GET leaseUnit | leaseUnit | Gets a lease unit object. |
| DELETE leaseUnit | none | Deletes a lease unit object. |
| POST leaseUnit | leaseUnit | Creates a lease unit object. |
| PATCH leaseUnit | leaseUnit | Updates a lease unit object. |
Properties
| Property | Type | Description |
| id | GUID | The unique ID of the lease unit. Non-editable. |
| number | string | Specifies the number of the lease unit. |
| description | string | Specifies the description of the lease unit. |
| leaseUnitGroup | boolean | Specifies whether the lease unit group is being used. |
| leaseUnitGroupNo | string | Specifies the lease unit's group number. |
| leaseUnitCategory | string | Specifies the lease unit's category. |
| leaseUnitClass | string | Specifies the lease unit's class. |
| blocked | boolean | “True” indicates whether lease unit card is blocked. |
| building | boolean | Specifies whether the lease unit card represents the highest level in the hierarchy, e.g. Building. |
| buildingType | string | Specifies the lease unit's building type. |
| objectArea | decimal | Specifies the area of lease unit. |
| address | string | Specifies the lease unit's address. |
| address2 | string | Specifies the lease unit's address. |
| city | string | Specifies the lease unit's city. |
| countryCode | string | Specifies the lease unit's country code. |
| globalDimension1Code | string | Specifies the Global Dimension 1 value code. |
| globalDimension2Code | string | Specifies the Global Dimension 2 value code. |
| floor | string | Specifies the lease unit's floor. |
| manager | string | Specifies the lease unit's manager. |
| salespersonCode | string | The salesperson code for the lease unit. |
| salespersonName | string | The salesperson name for the lease unit. |
| roomNo | string | Specifies the lease unit's room number. |
| owner | string | Specifies the lease unit's owner. |
| ownerCode | string | Specifies the lease unit's owner code. |
| ownerName | string | Specifies the lease unit's owner name. |
| parkingUnit | boolean | Specifies whether the lease unit should be marked as parking. |
| searchName | string | Specifies the lease unit's search name. |
| totalArea | decimal | Specifies total area of the lease unit. Only possible in highest level of lease unit card. |
| uniqueNo | string | Specifies the lease unit's unique number. |
| tenantName | string | |
| rentedTill | date | |
| currentRentPrice | decimal | |
| currentRentPriceType | string | |
| currentRentPricePeriod | string | |
| systemCreatedAt | datetime | The datetime the lease unit was created. |
| systemCreatedBy | GUID | The ID of the user who created the lease unit. |
| systemModifiedAt | datetime | The last datetime the lease unit was modified. |
| systemModifiedBy | GUID | The ID of the user who modified the lease unit. |