POST api/Contract

Request Information

URI Parameters

None.

Body Parameters

Contract
NameDescriptionTypeAdditional information
id

string

None.

customerNo

integer

None.

fromDate

date

None.

toDate

date

None.

label

string

None.

price

decimal number

None.

productNo

string

None.

unitId

integer

None.

productDescription

string

None.

unitDescription

string

None.

customerName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "customerNo": 2,
  "fromDate": "2025-11-29T15:05:42.2053646+01:00",
  "toDate": "2025-11-29T15:05:42.2053646+01:00",
  "label": "sample string 5",
  "price": 6.0,
  "productNo": "sample string 7",
  "unitId": 1,
  "productDescription": "sample string 8",
  "unitDescription": "sample string 9",
  "customerName": "sample string 10"
}

application/xml, text/xml

Sample:
<Contract xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <id>sample string 1</id>
  <customerNo>2</customerNo>
  <fromDate>2025-11-29T15:05:42.2053646+01:00</fromDate>
  <toDate>2025-11-29T15:05:42.2053646+01:00</toDate>
  <label>sample string 5</label>
  <price>6</price>
  <productNo>sample string 7</productNo>
  <unitId>1</unitId>
  <productDescription>sample string 8</productDescription>
  <unitDescription>sample string 9</unitDescription>
  <customerName>sample string 10</customerName>
</Contract>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Contract
NameDescriptionTypeAdditional information
id

string

None.

customerNo

integer

None.

fromDate

date

None.

toDate

date

None.

label

string

None.

price

decimal number

None.

productNo

string

None.

unitId

integer

None.

productDescription

string

None.

unitDescription

string

None.

customerName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": "sample string 1",
  "customerNo": 2,
  "fromDate": "2025-11-29T15:05:42.2127215+01:00",
  "toDate": "2025-11-29T15:05:42.2127215+01:00",
  "label": "sample string 5",
  "price": 6.0,
  "productNo": "sample string 7",
  "unitId": 1,
  "productDescription": "sample string 8",
  "unitDescription": "sample string 9",
  "customerName": "sample string 10"
}

application/xml, text/xml

Sample:
<Contract xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <id>sample string 1</id>
  <customerNo>2</customerNo>
  <fromDate>2025-11-29T15:05:42.2127215+01:00</fromDate>
  <toDate>2025-11-29T15:05:42.2127215+01:00</toDate>
  <label>sample string 5</label>
  <price>6</price>
  <productNo>sample string 7</productNo>
  <unitId>1</unitId>
  <productDescription>sample string 8</productDescription>
  <unitDescription>sample string 9</unitDescription>
  <customerName>sample string 10</customerName>
</Contract>