GET api/Customer/GetCustomers?pageIndex={pageIndex}&pageSize={pageSize}

Gets a list of all Customers. Pagination is supported.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
pageIndex

Optional page index (default is 0).

integer

None.

pageSize

Optional page size (default is 200).

integer

None.

Body Parameters

None.

Response Information

Resource Description

GetCustomersResult
NameDescriptionTypeAdditional information
PagedCustomers

A page with Customer rows.

CustomerRow

None.

Response Formats

application/json, text/json

Sample:
{
  "PagedCustomers": {
    "PageIndex": 0,
    "PageSize": 10,
    "TotalItems": 1,
    "TotalPages": 1,
    "Items": [
      {
        "Id": 1,
        "Name": "Company Ltd.",
        "Location": "",
        "Disabled": false,
        "FieldData": null,
        "LastUpdatedUtc": null,
        "CustomerGroups": [
          {
            "Id": 1,
            "Name": "VIP",
            "Color": "#ffffff",
            "Description": "Our best customers"
          }
        ],
        "Tags": [
          {
            "Id": 1,
            "Name": "Sample tag",
            "Static": true,
            "Color": "#ffffff",
            "Type": 2
          },
          {
            "Id": 2,
            "Name": "Sample 2",
            "Static": true,
            "Color": "#fafafa",
            "Type": 2
          }
        ],
        "ExternalId": null
      }
    ]
  }
}

application/xml, text/xml

Sample:
<GetCustomersResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <PagedCustomers>
    <Items>
      <GetCustomersResult.CustomerRow>
        <CustomerGroups xmlns:d5p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">
          <d5p1:CustomerGroupData>
            <d5p1:Color>#ffffff</d5p1:Color>
            <d5p1:Description>Our best customers</d5p1:Description>
            <d5p1:Id>1</d5p1:Id>
            <d5p1:Name>VIP</d5p1:Name>
          </d5p1:CustomerGroupData>
        </CustomerGroups>
        <Disabled>false</Disabled>
        <ExternalId i:nil="true" />
        <FieldData xmlns:d5p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures" i:nil="true" />
        <Id>1</Id>
        <LastUpdatedUtc i:nil="true" />
        <Location></Location>
        <Name>Company Ltd.</Name>
        <Tags xmlns:d5p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">
          <d5p1:TagData>
            <d5p1:Color>#ffffff</d5p1:Color>
            <d5p1:Id>1</d5p1:Id>
            <d5p1:Name>Sample tag</d5p1:Name>
            <d5p1:Static>true</d5p1:Static>
            <d5p1:Type>UserAndCompany</d5p1:Type>
          </d5p1:TagData>
          <d5p1:TagData>
            <d5p1:Color>#fafafa</d5p1:Color>
            <d5p1:Id>2</d5p1:Id>
            <d5p1:Name>Sample 2</d5p1:Name>
            <d5p1:Static>true</d5p1:Static>
            <d5p1:Type>UserAndCompany</d5p1:Type>
          </d5p1:TagData>
        </Tags>
      </GetCustomersResult.CustomerRow>
    </Items>
    <PageIndex>0</PageIndex>
    <PageSize>10</PageSize>
    <TotalItems>1</TotalItems>
    <TotalPages>1</TotalPages>
  </PagedCustomers>
</GetCustomersResult>