Home / API / ASP.NET Web API Details

GET api/v1/Account/GetAccountListByCompany?companyid={companyid}&page={page}&pagelimit={pagelimit}

Description

Get Account List By Company

Request Information

Parameters

NameDescriptionAdditional information
companyid

Define this parameter in the request URI.

page

Define this parameter in the request URI.

pagelimit

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "accountid": 1,
    "companyid": 2,
    "accountnumber": "sample string 3",
    "isactive": 4,
    "utclastchanged": "2025-02-23T06:10:56.0186947+00:00",
    "lastchangeby": "sample string 5",
    "utctimestamp": "2025-02-23T06:10:56.0186947+00:00",
    "customerid": 6,
    "customertype": 7,
    "iscustomeractive": true,
    "customerfirstname": "sample string 9",
    "customermiddlename": "sample string 10",
    "customerlastname": "sample string 11",
    "customerutcLastChanged": "2025-02-23T06:10:56.0186947+00:00",
    "customerlastchangedby": "sample string 12",
    "customerutctimestamp": "2025-02-23T06:10:56.0186947+00:00",
    "locationutclastchanged": "2025-02-23T06:10:56.0186947+00:00",
    "locationlastchangedby": "sample string 13",
    "locationutctimestamp": "2025-02-23T06:10:56.0186947+00:00",
    "secondaryaddress": "sample string 14",
    "phonenumber": "sample string 15",
    "emailaddress": "sample string 16",
    "businessaddres": {
      "accountid": 1,
      "siteid": 2,
      "addressid": 3,
      "streetnumber": "sample string 4",
      "streetsuffix": "sample string 5",
      "streetname": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "postalcode": "sample string 9"
    },
    "sitesadress": [
      {
        "accountid": 1,
        "siteid": 2,
        "addressid": 3,
        "streetnumber": "sample string 4",
        "streetsuffix": "sample string 5",
        "streetname": "sample string 6",
        "city": "sample string 7",
        "state": "sample string 8",
        "postalcode": "sample string 9"
      },
      {
        "accountid": 1,
        "siteid": 2,
        "addressid": 3,
        "streetnumber": "sample string 4",
        "streetsuffix": "sample string 5",
        "streetname": "sample string 6",
        "city": "sample string 7",
        "state": "sample string 8",
        "postalcode": "sample string 9"
      }
    ]
  },
  {
    "accountid": 1,
    "companyid": 2,
    "accountnumber": "sample string 3",
    "isactive": 4,
    "utclastchanged": "2025-02-23T06:10:56.0186947+00:00",
    "lastchangeby": "sample string 5",
    "utctimestamp": "2025-02-23T06:10:56.0186947+00:00",
    "customerid": 6,
    "customertype": 7,
    "iscustomeractive": true,
    "customerfirstname": "sample string 9",
    "customermiddlename": "sample string 10",
    "customerlastname": "sample string 11",
    "customerutcLastChanged": "2025-02-23T06:10:56.0186947+00:00",
    "customerlastchangedby": "sample string 12",
    "customerutctimestamp": "2025-02-23T06:10:56.0186947+00:00",
    "locationutclastchanged": "2025-02-23T06:10:56.0186947+00:00",
    "locationlastchangedby": "sample string 13",
    "locationutctimestamp": "2025-02-23T06:10:56.0186947+00:00",
    "secondaryaddress": "sample string 14",
    "phonenumber": "sample string 15",
    "emailaddress": "sample string 16",
    "businessaddres": {
      "accountid": 1,
      "siteid": 2,
      "addressid": 3,
      "streetnumber": "sample string 4",
      "streetsuffix": "sample string 5",
      "streetname": "sample string 6",
      "city": "sample string 7",
      "state": "sample string 8",
      "postalcode": "sample string 9"
    },
    "sitesadress": [
      {
        "accountid": 1,
        "siteid": 2,
        "addressid": 3,
        "streetnumber": "sample string 4",
        "streetsuffix": "sample string 5",
        "streetname": "sample string 6",
        "city": "sample string 7",
        "state": "sample string 8",
        "postalcode": "sample string 9"
      },
      {
        "accountid": 1,
        "siteid": 2,
        "addressid": 3,
        "streetnumber": "sample string 4",
        "streetsuffix": "sample string 5",
        "streetname": "sample string 6",
        "city": "sample string 7",
        "state": "sample string 8",
        "postalcode": "sample string 9"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfAccountByCompanyModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APICOMMON">
  <AccountByCompanyModel>
    <accountid>1</accountid>
    <accountnumber>sample string 3</accountnumber>
    <businessaddres>
      <accountid>1</accountid>
      <addressid>3</addressid>
      <city>sample string 7</city>
      <postalcode>sample string 9</postalcode>
      <siteid>2</siteid>
      <state>sample string 8</state>
      <streetname>sample string 6</streetname>
      <streetnumber>sample string 4</streetnumber>
      <streetsuffix>sample string 5</streetsuffix>
    </businessaddres>
    <companyid>2</companyid>
    <customerfirstname>sample string 9</customerfirstname>
    <customerid>6</customerid>
    <customerlastchangedby>sample string 12</customerlastchangedby>
    <customerlastname>sample string 11</customerlastname>
    <customermiddlename>sample string 10</customermiddlename>
    <customertype>7</customertype>
    <customerutcLastChanged>2025-02-23T06:10:56.0186947+00:00</customerutcLastChanged>
    <customerutctimestamp>2025-02-23T06:10:56.0186947+00:00</customerutctimestamp>
    <emailaddress>sample string 16</emailaddress>
    <isactive>4</isactive>
    <iscustomeractive>true</iscustomeractive>
    <lastchangeby>sample string 5</lastchangeby>
    <locationlastchangedby>sample string 13</locationlastchangedby>
    <locationutclastchanged>2025-02-23T06:10:56.0186947+00:00</locationutclastchanged>
    <locationutctimestamp>2025-02-23T06:10:56.0186947+00:00</locationutctimestamp>
    <phonenumber>sample string 15</phonenumber>
    <secondaryaddress>sample string 14</secondaryaddress>
    <sitesadress>
      <shortaddressmodel>
        <accountid>1</accountid>
        <addressid>3</addressid>
        <city>sample string 7</city>
        <postalcode>sample string 9</postalcode>
        <siteid>2</siteid>
        <state>sample string 8</state>
        <streetname>sample string 6</streetname>
        <streetnumber>sample string 4</streetnumber>
        <streetsuffix>sample string 5</streetsuffix>
      </shortaddressmodel>
      <shortaddressmodel>
        <accountid>1</accountid>
        <addressid>3</addressid>
        <city>sample string 7</city>
        <postalcode>sample string 9</postalcode>
        <siteid>2</siteid>
        <state>sample string 8</state>
        <streetname>sample string 6</streetname>
        <streetnumber>sample string 4</streetnumber>
        <streetsuffix>sample string 5</streetsuffix>
      </shortaddressmodel>
    </sitesadress>
    <utclastchanged>2025-02-23T06:10:56.0186947+00:00</utclastchanged>
    <utctimestamp>2025-02-23T06:10:56.0186947+00:00</utctimestamp>
  </AccountByCompanyModel>
  <AccountByCompanyModel>
    <accountid>1</accountid>
    <accountnumber>sample string 3</accountnumber>
    <businessaddres>
      <accountid>1</accountid>
      <addressid>3</addressid>
      <city>sample string 7</city>
      <postalcode>sample string 9</postalcode>
      <siteid>2</siteid>
      <state>sample string 8</state>
      <streetname>sample string 6</streetname>
      <streetnumber>sample string 4</streetnumber>
      <streetsuffix>sample string 5</streetsuffix>
    </businessaddres>
    <companyid>2</companyid>
    <customerfirstname>sample string 9</customerfirstname>
    <customerid>6</customerid>
    <customerlastchangedby>sample string 12</customerlastchangedby>
    <customerlastname>sample string 11</customerlastname>
    <customermiddlename>sample string 10</customermiddlename>
    <customertype>7</customertype>
    <customerutcLastChanged>2025-02-23T06:10:56.0186947+00:00</customerutcLastChanged>
    <customerutctimestamp>2025-02-23T06:10:56.0186947+00:00</customerutctimestamp>
    <emailaddress>sample string 16</emailaddress>
    <isactive>4</isactive>
    <iscustomeractive>true</iscustomeractive>
    <lastchangeby>sample string 5</lastchangeby>
    <locationlastchangedby>sample string 13</locationlastchangedby>
    <locationutclastchanged>2025-02-23T06:10:56.0186947+00:00</locationutclastchanged>
    <locationutctimestamp>2025-02-23T06:10:56.0186947+00:00</locationutctimestamp>
    <phonenumber>sample string 15</phonenumber>
    <secondaryaddress>sample string 14</secondaryaddress>
    <sitesadress>
      <shortaddressmodel>
        <accountid>1</accountid>
        <addressid>3</addressid>
        <city>sample string 7</city>
        <postalcode>sample string 9</postalcode>
        <siteid>2</siteid>
        <state>sample string 8</state>
        <streetname>sample string 6</streetname>
        <streetnumber>sample string 4</streetnumber>
        <streetsuffix>sample string 5</streetsuffix>
      </shortaddressmodel>
      <shortaddressmodel>
        <accountid>1</accountid>
        <addressid>3</addressid>
        <city>sample string 7</city>
        <postalcode>sample string 9</postalcode>
        <siteid>2</siteid>
        <state>sample string 8</state>
        <streetname>sample string 6</streetname>
        <streetnumber>sample string 4</streetnumber>
        <streetsuffix>sample string 5</streetsuffix>
      </shortaddressmodel>
    </sitesadress>
    <utclastchanged>2025-02-23T06:10:56.0186947+00:00</utclastchanged>
    <utctimestamp>2025-02-23T06:10:56.0186947+00:00</utctimestamp>
  </AccountByCompanyModel>
</ArrayOfAccountByCompanyModel>