GET v1/CustomerContracts/GetByCustomerCode?shopOwnerId={shopOwnerId}&code={code}

Gets the customer's customer contracts by exact match of customer code.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shopOwnerId

The shop owner id

integer

Required.

code

The customer code

string

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:13:33.5962992+01:00"
  },
  {
    "Id": 1,
    "ContractCode": "sample string 2",
    "Name": "sample string 3",
    "CustomerId": 4,
    "StartDate": "2026-01-11T16:13:33.5962992+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:13:33.5962992+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:13:33.5962992+01:00</StartDate>
  </CustomerContractBase>
</ArrayOfCustomerContractBase>