GET v1/CustomerContracts/GetByCustomerId?id={id}

Gets the customer's customer contracts by customer id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The customer id

integer

Required.

Body Parameters

None.

Response Information

Resource Description

The list of customer's customer contracts

Collection of CustomerContractBase
NameDescriptionTypeAdditional information
Id

integer

Required

ContractCode

string

Max length: 50

Name

string

Required

Max length: 100

CustomerId

integer

Required

StartDate

date

Required

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "ContractCode": "sample string 2",
    "Name": "sample string 3",
    "CustomerId": 4,
    "StartDate": "2026-01-11T16:15:02.0287997+01:00"
  },
  {
    "Id": 1,
    "ContractCode": "sample string 2",
    "Name": "sample string 3",
    "CustomerId": 4,
    "StartDate": "2026-01-11T16:15:02.0287997+01:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerContractBase xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <CustomerContractBase>
    <Id>1</Id>
    <ContractCode>sample string 2</ContractCode>
    <Name>sample string 3</Name>
    <CustomerId>4</CustomerId>
    <StartDate>2026-01-11T16:15:02.0287997+01:00</StartDate>
  </CustomerContractBase>
  <CustomerContractBase>
    <Id>1</Id>
    <ContractCode>sample string 2</ContractCode>
    <Name>sample string 3</Name>
    <CustomerId>4</CustomerId>
    <StartDate>2026-01-11T16:15:02.0287997+01:00</StartDate>
  </CustomerContractBase>
</ArrayOfCustomerContractBase>