Represents a Lease Contract Discount in SOFT4Spaces.
Note
For information about enabling APIs for Business Central see Overview.
API endpoint
| API | Path |
| leaseContrDiscount | businesscentralPrefix/soft4/soft4spaces/v3.0/companies({{companyId}})/leaseContrDiscounts |
Methods
| Method | Return Type | Description |
| GET leaseContrDiscount | leaseContrDiscount | Gets a lease contract discount object. |
| DELETE leaseContrDiscount | none | Deletes a lease contract discount object. |
| POST leaseContrDiscount | leaseContrDiscount | Creates a lease contract discount object. |
| PATCH leaseContrDiscount | leaseContrDiscount | Updates a lease contract discount object. |
Properties
| Property | Type | Description |
| id | GUID | The unique ID of the lease contract discount. Non-editable. |
| leaseContractNo | string | Specifies the number of the lease contract. |
| leaseUnitNo | string | Specifies the number of the lease unit. |
| serviceNo | string | Specifies the number of the service. |
| contractVersionNo | integer | Specifies the version number of lease contract. |
| startingDate | date | The discount starting date. |
| endingDate | date | The discount ending date. |
| discountType | string | Specifies the type of discount. It can be “Area”, “Fixed”, “Percentage”. |
| amount | decimal | The discount amount. |
| period | string | Specifies the period of discount. It can be “Day”, “Week”, “Month”, “Quarter”, “Year”. |
| description | string | Specifies the description of the discount. |
| systemCreatedAt | datetime | The datetime the discount was created. |
| systemCreatedBy | GUID | The ID of the user who created the discount. |
| systemModifiedAt | datetime | The last datetime the discount was modified. |
| systemModifiedBy | GUID | The ID of the user who modified the discount. |