POST api/v{version}/Lease/CreateLeaseContract?key={key}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| key | string |
Required |
|
| version | string |
None. |
Body Parameters
CreateLeaseContractInDto| Name | Description | Type | Additional information |
|---|---|---|---|
| AssetLines | Collection of AssetLineInDto |
None. |
|
| ContactId | integer |
None. |
|
| DepartmentId | integer |
None. |
|
| EndPeriod | date |
None. |
|
| ExtraComments | string |
None. |
|
| InternalMemo | string |
None. |
|
| InvoiceToId | integer |
None. |
|
| ItemLines | Collection of ItemInDto |
None. |
|
| LocationId | integer |
None. |
|
| OrderTypeId | integer |
None. |
|
| ShopId | integer |
None. |
|
| StartPeriod | date |
None. |
|
| Transport | TransportInDto |
None. |
Request Formats
application/json, text/json
Sample:
{
"AssetLines": [
{
"Amount": 1,
"Criteria": [
{
"FieldID": 1,
"Value": 1
},
{
"FieldID": 1,
"Value": 1
}
],
"Discount": 2.0,
"PriceCategoryId": 1,
"TrueTypeId": 1,
"UnitPrice": 1.0
},
{
"Amount": 1,
"Criteria": [
{
"FieldID": 1,
"Value": 1
},
{
"FieldID": 1,
"Value": 1
}
],
"Discount": 2.0,
"PriceCategoryId": 1,
"TrueTypeId": 1,
"UnitPrice": 1.0
}
],
"ContactId": 1,
"DepartmentId": 1,
"EndPeriod": "2025-12-19T17:08:40.9954544+01:00",
"ExtraComments": "sample string 1",
"InternalMemo": "sample string 2",
"InvoiceToId": 1,
"ItemLines": [
{
"Amount": 1,
"Discount": 2.0,
"ItemId": 1,
"TotalPrice": 2.94,
"UnitPrice": 3.0
},
{
"Amount": 1,
"Discount": 2.0,
"ItemId": 1,
"TotalPrice": 2.94,
"UnitPrice": 3.0
}
],
"LocationId": 1,
"OrderTypeId": 1,
"ShopId": 1,
"StartPeriod": "2025-12-19T17:08:40.9954544+01:00",
"Transport": {
"Delivery": {
"Address": "sample string 1",
"AmountKm": 2.0,
"ContactPerson": "sample string 3",
"ContactPhone": "sample string 4",
"Date": "2025-12-19T17:08:40.9954544+01:00",
"Remark": "sample string 5"
},
"Return": {
"Address": "sample string 1",
"AmountKm": 2.0,
"ContactPerson": "sample string 3",
"ContactPhone": "sample string 4",
"Date": "2025-12-19T17:08:40.9954544+01:00",
"Remark": "sample string 5"
},
"TransportCategoryId": 1
}
}
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |