GET v1/ServiceContract/GetByCustomerId?id={id}
Gets the customer's service contracts by customer id.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The customer id |
integer |
Required. |
Body Parameters
None.
Response Information
Resource Description
The list of customer's service contracts
Collection of ServiceContractBase| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| Code | string |
None. |
|
| TypeId | integer |
None. |
|
| TypeName | string |
None. |
|
| CustomerId | integer |
Required |
|
| CustomerCode | string |
None. |
|
| CustomerEmail | string |
None. |
|
| StartDate | date |
Required |
|
| BrandName | string |
None. |
|
| ServiceProductId | integer |
Required |
|
| ServiceProductName | string |
None. |
|
| Location | ContactInfo |
None. |
|
| DeliveryAddress | ContactInfo |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"Code": "sample string 2",
"TypeId": 1,
"TypeName": "sample string 3",
"CustomerId": 4,
"CustomerCode": "sample string 5",
"CustomerEmail": "sample string 6",
"StartDate": "2026-01-11T16:14:44.5210333+01:00",
"BrandName": "sample string 7",
"ServiceProductId": 8,
"ServiceProductName": "sample string 9",
"Location": {
"VatNumber": "sample string 1",
"FullName": "sample string 2",
"DateOfBirth": "2026-01-11T16:14:44.5210333+01:00",
"Gender": "sample string 3",
"PersonTitle": "sample string 4",
"MiddleName": "sample string 5",
"FirstName": "sample string 6",
"LastName": "sample string 7",
"LastNamePrefix": "sample string 8",
"Id": 9,
"CompanyName": "sample string 10",
"Address": "sample string 11",
"Address2": "sample string 12",
"StreetAddress": "sample string 13",
"StreetAddressNumber": "sample string 14",
"StreetAddressExtension": "sample string 15",
"PostalCode": "sample string 16",
"City": "sample string 17",
"CountryId": 1,
"CountryCode": "sample string 18",
"CountryName": null,
"EMail": "sample string 19",
"Phone": "sample string 20",
"Phone2": "sample string 21",
"StateProvince": "sample string 22",
"StateProvinceCode": "sample string 23"
},
"DeliveryAddress": {
"VatNumber": "sample string 1",
"FullName": "sample string 2",
"DateOfBirth": "2026-01-11T16:14:44.5210333+01:00",
"Gender": "sample string 3",
"PersonTitle": "sample string 4",
"MiddleName": "sample string 5",
"FirstName": "sample string 6",
"LastName": "sample string 7",
"LastNamePrefix": "sample string 8",
"Id": 9,
"CompanyName": "sample string 10",
"Address": "sample string 11",
"Address2": "sample string 12",
"StreetAddress": "sample string 13",
"StreetAddressNumber": "sample string 14",
"StreetAddressExtension": "sample string 15",
"PostalCode": "sample string 16",
"City": "sample string 17",
"CountryId": 1,
"CountryCode": "sample string 18",
"CountryName": null,
"EMail": "sample string 19",
"Phone": "sample string 20",
"Phone2": "sample string 21",
"StateProvince": "sample string 22",
"StateProvinceCode": "sample string 23"
}
},
{
"Id": 1,
"Code": "sample string 2",
"TypeId": 1,
"TypeName": "sample string 3",
"CustomerId": 4,
"CustomerCode": "sample string 5",
"CustomerEmail": "sample string 6",
"StartDate": "2026-01-11T16:14:44.5210333+01:00",
"BrandName": "sample string 7",
"ServiceProductId": 8,
"ServiceProductName": "sample string 9",
"Location": {
"VatNumber": "sample string 1",
"FullName": "sample string 2",
"DateOfBirth": "2026-01-11T16:14:44.5210333+01:00",
"Gender": "sample string 3",
"PersonTitle": "sample string 4",
"MiddleName": "sample string 5",
"FirstName": "sample string 6",
"LastName": "sample string 7",
"LastNamePrefix": "sample string 8",
"Id": 9,
"CompanyName": "sample string 10",
"Address": "sample string 11",
"Address2": "sample string 12",
"StreetAddress": "sample string 13",
"StreetAddressNumber": "sample string 14",
"StreetAddressExtension": "sample string 15",
"PostalCode": "sample string 16",
"City": "sample string 17",
"CountryId": 1,
"CountryCode": "sample string 18",
"CountryName": null,
"EMail": "sample string 19",
"Phone": "sample string 20",
"Phone2": "sample string 21",
"StateProvince": "sample string 22",
"StateProvinceCode": "sample string 23"
},
"DeliveryAddress": {
"VatNumber": "sample string 1",
"FullName": "sample string 2",
"DateOfBirth": "2026-01-11T16:14:44.5210333+01:00",
"Gender": "sample string 3",
"PersonTitle": "sample string 4",
"MiddleName": "sample string 5",
"FirstName": "sample string 6",
"LastName": "sample string 7",
"LastNamePrefix": "sample string 8",
"Id": 9,
"CompanyName": "sample string 10",
"Address": "sample string 11",
"Address2": "sample string 12",
"StreetAddress": "sample string 13",
"StreetAddressNumber": "sample string 14",
"StreetAddressExtension": "sample string 15",
"PostalCode": "sample string 16",
"City": "sample string 17",
"CountryId": 1,
"CountryCode": "sample string 18",
"CountryName": null,
"EMail": "sample string 19",
"Phone": "sample string 20",
"Phone2": "sample string 21",
"StateProvince": "sample string 22",
"StateProvinceCode": "sample string 23"
}
}
]
application/xml, text/xml
Sample:
<ArrayOfServiceContractBase xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ServiceContractBase>
<Id>1</Id>
<Code>sample string 2</Code>
<TypeId>1</TypeId>
<TypeName>sample string 3</TypeName>
<CustomerId>4</CustomerId>
<CustomerCode>sample string 5</CustomerCode>
<CustomerEmail>sample string 6</CustomerEmail>
<StartDate>2026-01-11T16:14:44.5210333+01:00</StartDate>
<BrandName>sample string 7</BrandName>
<ServiceProductId>8</ServiceProductId>
<ServiceProductName>sample string 9</ServiceProductName>
<Location>
<Id>9</Id>
<CompanyName>sample string 10</CompanyName>
<Address>sample string 11</Address>
<Address2>sample string 12</Address2>
<StreetAddress>sample string 13</StreetAddress>
<StreetAddressNumber>sample string 14</StreetAddressNumber>
<StreetAddressExtension>sample string 15</StreetAddressExtension>
<PostalCode>sample string 16</PostalCode>
<City>sample string 17</City>
<CountryId>1</CountryId>
<CountryCode>sample string 18</CountryCode>
<EMail>sample string 19</EMail>
<Phone>sample string 20</Phone>
<Phone2>sample string 21</Phone2>
<StateProvince>sample string 22</StateProvince>
<StateProvinceCode>sample string 23</StateProvinceCode>
<VatNumber>sample string 1</VatNumber>
<FullName>sample string 2</FullName>
<DateOfBirth>2026-01-11T16:14:44.5210333+01:00</DateOfBirth>
<Gender>sample string 3</Gender>
<PersonTitle>sample string 4</PersonTitle>
<MiddleName>sample string 5</MiddleName>
<FirstName>sample string 6</FirstName>
<LastName>sample string 7</LastName>
<LastNamePrefix>sample string 8</LastNamePrefix>
</Location>
<DeliveryAddress>
<Id>9</Id>
<CompanyName>sample string 10</CompanyName>
<Address>sample string 11</Address>
<Address2>sample string 12</Address2>
<StreetAddress>sample string 13</StreetAddress>
<StreetAddressNumber>sample string 14</StreetAddressNumber>
<StreetAddressExtension>sample string 15</StreetAddressExtension>
<PostalCode>sample string 16</PostalCode>
<City>sample string 17</City>
<CountryId>1</CountryId>
<CountryCode>sample string 18</CountryCode>
<EMail>sample string 19</EMail>
<Phone>sample string 20</Phone>
<Phone2>sample string 21</Phone2>
<StateProvince>sample string 22</StateProvince>
<StateProvinceCode>sample string 23</StateProvinceCode>
<VatNumber>sample string 1</VatNumber>
<FullName>sample string 2</FullName>
<DateOfBirth>2026-01-11T16:14:44.5210333+01:00</DateOfBirth>
<Gender>sample string 3</Gender>
<PersonTitle>sample string 4</PersonTitle>
<MiddleName>sample string 5</MiddleName>
<FirstName>sample string 6</FirstName>
<LastName>sample string 7</LastName>
<LastNamePrefix>sample string 8</LastNamePrefix>
</DeliveryAddress>
</ServiceContractBase>
<ServiceContractBase>
<Id>1</Id>
<Code>sample string 2</Code>
<TypeId>1</TypeId>
<TypeName>sample string 3</TypeName>
<CustomerId>4</CustomerId>
<CustomerCode>sample string 5</CustomerCode>
<CustomerEmail>sample string 6</CustomerEmail>
<StartDate>2026-01-11T16:14:44.5210333+01:00</StartDate>
<BrandName>sample string 7</BrandName>
<ServiceProductId>8</ServiceProductId>
<ServiceProductName>sample string 9</ServiceProductName>
<Location>
<Id>9</Id>
<CompanyName>sample string 10</CompanyName>
<Address>sample string 11</Address>
<Address2>sample string 12</Address2>
<StreetAddress>sample string 13</StreetAddress>
<StreetAddressNumber>sample string 14</StreetAddressNumber>
<StreetAddressExtension>sample string 15</StreetAddressExtension>
<PostalCode>sample string 16</PostalCode>
<City>sample string 17</City>
<CountryId>1</CountryId>
<CountryCode>sample string 18</CountryCode>
<EMail>sample string 19</EMail>
<Phone>sample string 20</Phone>
<Phone2>sample string 21</Phone2>
<StateProvince>sample string 22</StateProvince>
<StateProvinceCode>sample string 23</StateProvinceCode>
<VatNumber>sample string 1</VatNumber>
<FullName>sample string 2</FullName>
<DateOfBirth>2026-01-11T16:14:44.5210333+01:00</DateOfBirth>
<Gender>sample string 3</Gender>
<PersonTitle>sample string 4</PersonTitle>
<MiddleName>sample string 5</MiddleName>
<FirstName>sample string 6</FirstName>
<LastName>sample string 7</LastName>
<LastNamePrefix>sample string 8</LastNamePrefix>
</Location>
<DeliveryAddress>
<Id>9</Id>
<CompanyName>sample string 10</CompanyName>
<Address>sample string 11</Address>
<Address2>sample string 12</Address2>
<StreetAddress>sample string 13</StreetAddress>
<StreetAddressNumber>sample string 14</StreetAddressNumber>
<StreetAddressExtension>sample string 15</StreetAddressExtension>
<PostalCode>sample string 16</PostalCode>
<City>sample string 17</City>
<CountryId>1</CountryId>
<CountryCode>sample string 18</CountryCode>
<EMail>sample string 19</EMail>
<Phone>sample string 20</Phone>
<Phone2>sample string 21</Phone2>
<StateProvince>sample string 22</StateProvince>
<StateProvinceCode>sample string 23</StateProvinceCode>
<VatNumber>sample string 1</VatNumber>
<FullName>sample string 2</FullName>
<DateOfBirth>2026-01-11T16:14:44.5210333+01:00</DateOfBirth>
<Gender>sample string 3</Gender>
<PersonTitle>sample string 4</PersonTitle>
<MiddleName>sample string 5</MiddleName>
<FirstName>sample string 6</FirstName>
<LastName>sample string 7</LastName>
<LastNamePrefix>sample string 8</LastNamePrefix>
</DeliveryAddress>
</ServiceContractBase>
</ArrayOfServiceContractBase>