GET api/Customer/GetCustWithLinkedUsers?customerID={customerID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerID

integer

Required

Body Parameters

None.

Response Information

Resource Description

CustomerWithLinkedUsersDTO
NameDescriptionTypeAdditional information
Customer

CustomerDTO

None.

SystemUsers

Collection of CustomerUserLinkDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "Customer": {
    "ID": 1,
    "RegionID": 2,
    "Name": "sample string 3",
    "FirstName": "sample string 4",
    "LastName": "sample string 5",
    "ContactTel": "sample string 6",
    "EmailAddress": "sample string 7",
    "AddressLine1": "sample string 8",
    "AddressLine2": "sample string 9",
    "Suburb": "sample string 10",
    "Province": "sample string 11",
    "Username": "sample string 12",
    "Password": "sample string 13",
    "InActive": true,
    "IsDeleted": true,
    "RegionName": "sample string 16"
  },
  "SystemUsers": [
    {
      "ID": 1,
      "SystemUserID": 2,
      "CustomerID": 3,
      "CanNotify": true,
      "Title": "sample string 5",
      "FirstName": "sample string 6",
      "LastName": "sample string 7",
      "CustomerName": "sample string 8",
      "SystemUserFullName": "sample string 9"
    },
    {
      "ID": 1,
      "SystemUserID": 2,
      "CustomerID": 3,
      "CanNotify": true,
      "Title": "sample string 5",
      "FirstName": "sample string 6",
      "LastName": "sample string 7",
      "CustomerName": "sample string 8",
      "SystemUserFullName": "sample string 9"
    }
  ]
}

application/xml, text/xml

Sample:
<CustomerWithLinkedUsersDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.DTO">
  <Customer>
    <AddressLine1>sample string 8</AddressLine1>
    <AddressLine2>sample string 9</AddressLine2>
    <ContactTel>sample string 6</ContactTel>
    <EmailAddress>sample string 7</EmailAddress>
    <FirstName>sample string 4</FirstName>
    <ID>1</ID>
    <InActive>true</InActive>
    <IsDeleted>true</IsDeleted>
    <LastName>sample string 5</LastName>
    <Name>sample string 3</Name>
    <Password>sample string 13</Password>
    <Province>sample string 11</Province>
    <RegionID>2</RegionID>
    <RegionName>sample string 16</RegionName>
    <Suburb>sample string 10</Suburb>
    <Username>sample string 12</Username>
  </Customer>
  <SystemUsers>
    <CustomerUserLinkDTO>
      <CanNotify>true</CanNotify>
      <CustomerID>3</CustomerID>
      <CustomerName>sample string 8</CustomerName>
      <FirstName>sample string 6</FirstName>
      <ID>1</ID>
      <LastName>sample string 7</LastName>
      <SystemUserFullName>sample string 9</SystemUserFullName>
      <SystemUserID>2</SystemUserID>
      <Title>sample string 5</Title>
    </CustomerUserLinkDTO>
    <CustomerUserLinkDTO>
      <CanNotify>true</CanNotify>
      <CustomerID>3</CustomerID>
      <CustomerName>sample string 8</CustomerName>
      <FirstName>sample string 6</FirstName>
      <ID>1</ID>
      <LastName>sample string 7</LastName>
      <SystemUserFullName>sample string 9</SystemUserFullName>
      <SystemUserID>2</SystemUserID>
      <Title>sample string 5</Title>
    </CustomerUserLinkDTO>
  </SystemUsers>
</CustomerWithLinkedUsersDTO>