PUT v1/CustomerContracts
Update an existing CustomerContract.
Request Information
URI Parameters
None.
Body Parameters
The CustomerContract.
CustomerContractChanges| Name | Description | Type | Additional information |
|---|---|---|---|
| Active |
Specifies the Active state of the Contract. |
boolean |
Required |
| OrderComment |
The general comment to add to the Orders to generate. |
string |
Max length: 2000 |
| Description |
Description of the Customer Contract. |
string |
Max length: 2000 |
| EndDate |
The date when the Customer Contract ends. |
date |
None. |
| ShopId |
The ShopId for the Customer Contract. |
integer |
Required |
| OrderGenerationInterval |
The interval to generate orders. |
OrderGenerationIntervalEnum |
None. |
| LastOrderGeneratedDate |
The date of the last generated Order. |
date |
None. |
| AutoGenerateInvoice |
When true, an Invoice will automaticall be generated. |
boolean |
Required |
| OrderGenerateMoment |
The moment to generate an Order for the Customer Contract. |
OrderGenerateMomentEnum |
None. |
| MailInvoiceToCustomer |
When true, the generated Invoice will be mailed to the Customer. |
boolean |
Required |
| InvoiceMailTemplateId |
The Invoice email template to automatically mail the Invoice. |
integer |
None. |
| OrderGenerationPeriod |
The period for which the Order is being generated. |
OrderGenerationPeriodEnum |
None. |
| OrderGenerationDateMode |
The mooment the Order is generated from the Contract. |
OrderGenerationDateModeEnum |
None. |
| InvoiceMainStatusAfterCreateId |
The Invoice status when it is generated. |
integer |
None. |
| NextScheduleDate |
The planned next schedule date for Order generation. |
date |
None. |
| ViewModusIncVat |
In or Ex VAT modus. |
boolean |
Required |
| PaymentTermsId |
The Payment Terms used for the Order/Invoice to generate. |
integer |
None. |
| OrderCustomerRef |
The Customer reference which will be used in the Order to generate. |
string |
Max length: 2000 |
| PaymentTypeId |
The Payment Type used for the Order/Invoice to generate. |
integer |
None. |
| OrderMainStatusAfterCreateId |
The Order Main status when it is generated. |
integer |
None. |
| CurrencyId |
Gets or sets the currency id. |
integer |
None. |
| CurrencyCode |
Gets the currency code. |
string |
None. |
| Products |
The collection of Products included in the Contract. |
Collection of CustomerContractProduct |
None. |
| Id | integer |
Required |
|
| ContractCode | string |
Max length: 50 |
|
| Name | string |
Required Max length: 100 |
|
| CustomerId | integer |
Required |
|
| StartDate | date |
Required |
Request Formats
application/json, text/json
{
"LastOrderGeneratedDate": "2026-01-11T16:13:32.1770156+01:00",
"NextScheduleDate": "2026-01-11T16:13:32.1770156+01:00",
"Active": true,
"OrderComment": "sample string 2",
"Description": "sample string 3",
"EndDate": "2026-01-11T16:13:32.1770156+01:00",
"ShopId": 4,
"OrderGenerationInterval": 0,
"AutoGenerateInvoice": true,
"OrderGenerateMoment": 1,
"MailInvoiceToCustomer": true,
"InvoiceMailTemplateId": 1,
"OrderGenerationPeriod": 1,
"OrderGenerationDateMode": 1,
"InvoiceMainStatusAfterCreateId": 1,
"ViewModusIncVat": true,
"PaymentTermsId": 1,
"OrderCustomerRef": "sample string 8",
"PaymentTypeId": 1,
"OrderMainStatusAfterCreateId": 1,
"CurrencyId": 9,
"CurrencyCode": "sample string 10",
"Products": null,
"Id": 11,
"ContractCode": "sample string 12",
"Name": "sample string 13",
"CustomerId": 14,
"StartDate": "2026-01-11T16:13:32.1770156+01:00"
}
Response Information
Resource Description
The HttpResponseMessage object.
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. |