GET company/getcustomers?accountnumber={accountnumber}

Gets all the customers for the company. This method will not return passwords

Request Information

Parameters

NameDescriptionAdditional information
accountNumber
The account number for the company.

Define this parameter in the request URI.

Response Information

List of Company users or customers for the specified company

Response body formats

application/json, text/json

Sample:
[
  {
    "Email": "sample string 1",
    "Forename": "sample string 2",
    "Surname": "sample string 3",
    "DateAdded": "2024-12-21T14:00:11.7345347+00:00",
    "Password": "sample string 5",
    "AccountNumber": "sample string 6"
  },
  {
    "Email": "sample string 1",
    "Forename": "sample string 2",
    "Surname": "sample string 3",
    "DateAdded": "2024-12-21T14:00:11.7345347+00:00",
    "Password": "sample string 5",
    "AccountNumber": "sample string 6"
  },
  {
    "Email": "sample string 1",
    "Forename": "sample string 2",
    "Surname": "sample string 3",
    "DateAdded": "2024-12-21T14:00:11.7345347+00:00",
    "Password": "sample string 5",
    "AccountNumber": "sample string 6"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webi.Api2.Models">
  <CustomerModel>
    <AccountNumber>sample string 6</AccountNumber>
    <DateAdded>2024-12-21T14:00:11.7345347+00:00</DateAdded>
    <Email>sample string 1</Email>
    <Forename>sample string 2</Forename>
    <Password>sample string 5</Password>
    <Surname>sample string 3</Surname>
  </CustomerModel>
  <CustomerModel>
    <AccountNumber>sample string 6</AccountNumber>
    <DateAdded>2024-12-21T14:00:11.7345347+00:00</DateAdded>
    <Email>sample string 1</Email>
    <Forename>sample string 2</Forename>
    <Password>sample string 5</Password>
    <Surname>sample string 3</Surname>
  </CustomerModel>
  <CustomerModel>
    <AccountNumber>sample string 6</AccountNumber>
    <DateAdded>2024-12-21T14:00:11.7345347+00:00</DateAdded>
    <Email>sample string 1</Email>
    <Forename>sample string 2</Forename>
    <Password>sample string 5</Password>
    <Surname>sample string 3</Surname>
  </CustomerModel>
</ArrayOfCustomerModel>