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

Gets the customer's rental 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 rental contracts

Collection of RentalContractBase
NameDescriptionTypeAdditional 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.

RentalProductId

integer

None.

RentalProductName

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-02-04T03:39:32.0034177+01:00",
    "BrandName": "sample string 7",
    "RentalProductId": 1,
    "RentalProductName": "sample string 8",
    "Location": {
      "VatNumber": "sample string 1",
      "CocNumber": "sample string 2",
      "FullName": "sample string 3",
      "DateOfBirth": "2026-02-04T03:39:32.0034177+01:00",
      "Gender": "sample string 4",
      "PersonTitle": "sample string 5",
      "MiddleName": "sample string 6",
      "FirstName": "sample string 7",
      "LastName": "sample string 8",
      "LastNamePrefix": "sample string 9",
      "Id": 10,
      "CompanyName": "sample string 11",
      "Address": "sample string 12",
      "Address2": "sample string 13",
      "StreetAddress": "sample string 14",
      "StreetAddressNumber": "sample string 15",
      "StreetAddressExtension": "sample string 16",
      "PostalCode": "sample string 17",
      "City": "sample string 18",
      "CountryId": 1,
      "CountryCode": "sample string 19",
      "CountryName": null,
      "EMail": "sample string 20",
      "Phone": "sample string 21",
      "Phone2": "sample string 22",
      "StateProvince": "sample string 23",
      "StateProvinceCode": "sample string 24"
    },
    "DeliveryAddress": {
      "VatNumber": "sample string 1",
      "CocNumber": "sample string 2",
      "FullName": "sample string 3",
      "DateOfBirth": "2026-02-04T03:39:32.0034177+01:00",
      "Gender": "sample string 4",
      "PersonTitle": "sample string 5",
      "MiddleName": "sample string 6",
      "FirstName": "sample string 7",
      "LastName": "sample string 8",
      "LastNamePrefix": "sample string 9",
      "Id": 10,
      "CompanyName": "sample string 11",
      "Address": "sample string 12",
      "Address2": "sample string 13",
      "StreetAddress": "sample string 14",
      "StreetAddressNumber": "sample string 15",
      "StreetAddressExtension": "sample string 16",
      "PostalCode": "sample string 17",
      "City": "sample string 18",
      "CountryId": 1,
      "CountryCode": "sample string 19",
      "CountryName": null,
      "EMail": "sample string 20",
      "Phone": "sample string 21",
      "Phone2": "sample string 22",
      "StateProvince": "sample string 23",
      "StateProvinceCode": "sample string 24"
    }
  },
  {
    "Id": 1,
    "Code": "sample string 2",
    "TypeId": 1,
    "TypeName": "sample string 3",
    "CustomerId": 4,
    "CustomerCode": "sample string 5",
    "CustomerEmail": "sample string 6",
    "StartDate": "2026-02-04T03:39:32.0034177+01:00",
    "BrandName": "sample string 7",
    "RentalProductId": 1,
    "RentalProductName": "sample string 8",
    "Location": {
      "VatNumber": "sample string 1",
      "CocNumber": "sample string 2",
      "FullName": "sample string 3",
      "DateOfBirth": "2026-02-04T03:39:32.0034177+01:00",
      "Gender": "sample string 4",
      "PersonTitle": "sample string 5",
      "MiddleName": "sample string 6",
      "FirstName": "sample string 7",
      "LastName": "sample string 8",
      "LastNamePrefix": "sample string 9",
      "Id": 10,
      "CompanyName": "sample string 11",
      "Address": "sample string 12",
      "Address2": "sample string 13",
      "StreetAddress": "sample string 14",
      "StreetAddressNumber": "sample string 15",
      "StreetAddressExtension": "sample string 16",
      "PostalCode": "sample string 17",
      "City": "sample string 18",
      "CountryId": 1,
      "CountryCode": "sample string 19",
      "CountryName": null,
      "EMail": "sample string 20",
      "Phone": "sample string 21",
      "Phone2": "sample string 22",
      "StateProvince": "sample string 23",
      "StateProvinceCode": "sample string 24"
    },
    "DeliveryAddress": {
      "VatNumber": "sample string 1",
      "CocNumber": "sample string 2",
      "FullName": "sample string 3",
      "DateOfBirth": "2026-02-04T03:39:32.0034177+01:00",
      "Gender": "sample string 4",
      "PersonTitle": "sample string 5",
      "MiddleName": "sample string 6",
      "FirstName": "sample string 7",
      "LastName": "sample string 8",
      "LastNamePrefix": "sample string 9",
      "Id": 10,
      "CompanyName": "sample string 11",
      "Address": "sample string 12",
      "Address2": "sample string 13",
      "StreetAddress": "sample string 14",
      "StreetAddressNumber": "sample string 15",
      "StreetAddressExtension": "sample string 16",
      "PostalCode": "sample string 17",
      "City": "sample string 18",
      "CountryId": 1,
      "CountryCode": "sample string 19",
      "CountryName": null,
      "EMail": "sample string 20",
      "Phone": "sample string 21",
      "Phone2": "sample string 22",
      "StateProvince": "sample string 23",
      "StateProvinceCode": "sample string 24"
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfRentalContractBase xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <RentalContractBase>
    <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-02-04T03:39:32.0034177+01:00</StartDate>
    <BrandName>sample string 7</BrandName>
    <RentalProductId>1</RentalProductId>
    <RentalProductName>sample string 8</RentalProductName>
    <Location>
      <Id>10</Id>
      <CompanyName>sample string 11</CompanyName>
      <Address>sample string 12</Address>
      <Address2>sample string 13</Address2>
      <StreetAddress>sample string 14</StreetAddress>
      <StreetAddressNumber>sample string 15</StreetAddressNumber>
      <StreetAddressExtension>sample string 16</StreetAddressExtension>
      <PostalCode>sample string 17</PostalCode>
      <City>sample string 18</City>
      <CountryId>1</CountryId>
      <CountryCode>sample string 19</CountryCode>
      <EMail>sample string 20</EMail>
      <Phone>sample string 21</Phone>
      <Phone2>sample string 22</Phone2>
      <StateProvince>sample string 23</StateProvince>
      <StateProvinceCode>sample string 24</StateProvinceCode>
      <VatNumber>sample string 1</VatNumber>
      <CocNumber>sample string 2</CocNumber>
      <FullName>sample string 3</FullName>
      <DateOfBirth>2026-02-04T03:39:32.0034177+01:00</DateOfBirth>
      <Gender>sample string 4</Gender>
      <PersonTitle>sample string 5</PersonTitle>
      <MiddleName>sample string 6</MiddleName>
      <FirstName>sample string 7</FirstName>
      <LastName>sample string 8</LastName>
      <LastNamePrefix>sample string 9</LastNamePrefix>
    </Location>
    <DeliveryAddress>
      <Id>10</Id>
      <CompanyName>sample string 11</CompanyName>
      <Address>sample string 12</Address>
      <Address2>sample string 13</Address2>
      <StreetAddress>sample string 14</StreetAddress>
      <StreetAddressNumber>sample string 15</StreetAddressNumber>
      <StreetAddressExtension>sample string 16</StreetAddressExtension>
      <PostalCode>sample string 17</PostalCode>
      <City>sample string 18</City>
      <CountryId>1</CountryId>
      <CountryCode>sample string 19</CountryCode>
      <EMail>sample string 20</EMail>
      <Phone>sample string 21</Phone>
      <Phone2>sample string 22</Phone2>
      <StateProvince>sample string 23</StateProvince>
      <StateProvinceCode>sample string 24</StateProvinceCode>
      <VatNumber>sample string 1</VatNumber>
      <CocNumber>sample string 2</CocNumber>
      <FullName>sample string 3</FullName>
      <DateOfBirth>2026-02-04T03:39:32.0034177+01:00</DateOfBirth>
      <Gender>sample string 4</Gender>
      <PersonTitle>sample string 5</PersonTitle>
      <MiddleName>sample string 6</MiddleName>
      <FirstName>sample string 7</FirstName>
      <LastName>sample string 8</LastName>
      <LastNamePrefix>sample string 9</LastNamePrefix>
    </DeliveryAddress>
  </RentalContractBase>
  <RentalContractBase>
    <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-02-04T03:39:32.0034177+01:00</StartDate>
    <BrandName>sample string 7</BrandName>
    <RentalProductId>1</RentalProductId>
    <RentalProductName>sample string 8</RentalProductName>
    <Location>
      <Id>10</Id>
      <CompanyName>sample string 11</CompanyName>
      <Address>sample string 12</Address>
      <Address2>sample string 13</Address2>
      <StreetAddress>sample string 14</StreetAddress>
      <StreetAddressNumber>sample string 15</StreetAddressNumber>
      <StreetAddressExtension>sample string 16</StreetAddressExtension>
      <PostalCode>sample string 17</PostalCode>
      <City>sample string 18</City>
      <CountryId>1</CountryId>
      <CountryCode>sample string 19</CountryCode>
      <EMail>sample string 20</EMail>
      <Phone>sample string 21</Phone>
      <Phone2>sample string 22</Phone2>
      <StateProvince>sample string 23</StateProvince>
      <StateProvinceCode>sample string 24</StateProvinceCode>
      <VatNumber>sample string 1</VatNumber>
      <CocNumber>sample string 2</CocNumber>
      <FullName>sample string 3</FullName>
      <DateOfBirth>2026-02-04T03:39:32.0034177+01:00</DateOfBirth>
      <Gender>sample string 4</Gender>
      <PersonTitle>sample string 5</PersonTitle>
      <MiddleName>sample string 6</MiddleName>
      <FirstName>sample string 7</FirstName>
      <LastName>sample string 8</LastName>
      <LastNamePrefix>sample string 9</LastNamePrefix>
    </Location>
    <DeliveryAddress>
      <Id>10</Id>
      <CompanyName>sample string 11</CompanyName>
      <Address>sample string 12</Address>
      <Address2>sample string 13</Address2>
      <StreetAddress>sample string 14</StreetAddress>
      <StreetAddressNumber>sample string 15</StreetAddressNumber>
      <StreetAddressExtension>sample string 16</StreetAddressExtension>
      <PostalCode>sample string 17</PostalCode>
      <City>sample string 18</City>
      <CountryId>1</CountryId>
      <CountryCode>sample string 19</CountryCode>
      <EMail>sample string 20</EMail>
      <Phone>sample string 21</Phone>
      <Phone2>sample string 22</Phone2>
      <StateProvince>sample string 23</StateProvince>
      <StateProvinceCode>sample string 24</StateProvinceCode>
      <VatNumber>sample string 1</VatNumber>
      <CocNumber>sample string 2</CocNumber>
      <FullName>sample string 3</FullName>
      <DateOfBirth>2026-02-04T03:39:32.0034177+01:00</DateOfBirth>
      <Gender>sample string 4</Gender>
      <PersonTitle>sample string 5</PersonTitle>
      <MiddleName>sample string 6</MiddleName>
      <FirstName>sample string 7</FirstName>
      <LastName>sample string 8</LastName>
      <LastNamePrefix>sample string 9</LastNamePrefix>
    </DeliveryAddress>
  </RentalContractBase>
</ArrayOfRentalContractBase>