GET api/v1/widgets/toppurchasescustomerswdgt?refresh={refresh}&number={number}&monthsBack={monthsBack}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
refresh

boolean

Default value is False

number

integer

Default value is 5

monthsBack

integer

Default value is 12

Body Parameters

None.

Response Information

Resource Description

SingleResultResponseOfWidgetWithDataDtoOfICollectionOfTopPurchasesCustomerData
NameDescriptionTypeAdditional information
Meta

MetaSingleResult

None.

Notifications

None.

Response Formats

application/json, text/json

Sample:
{
  "meta": {},
  "notifications": [
    {},
    {}
  ],
  "result": {
    "id": "12c5744b-607e-4e59-9990-6468ef40c1d0",
    "code": "sample string 2",
    "data": [
      {
        "id": "da4b46fb-a841-4097-9728-0f50141169f8",
        "firstName": "sample string 2",
        "lastName": "sample string 3",
        "total": 4.0,
        "gender": 0,
        "urlPhoto": "sample string 5"
      },
      {
        "id": "da4b46fb-a841-4097-9728-0f50141169f8",
        "firstName": "sample string 2",
        "lastName": "sample string 3",
        "total": 4.0,
        "gender": 0,
        "urlPhoto": "sample string 5"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<SingleResultResponseOfWidgetWithDataDtoOfArrayOfTopPurchasesCustomerDatadOvjT49_PdOvjT49_P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Presentation.WebApi.Dtos.Response">
  <Meta />
  <Notifications>
    <Notification />
    <Notification />
  </Notifications>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Application.Services.Dtos">
    <d2p1:Code>sample string 2</d2p1:Code>
    <d2p1:Data>
      <d2p1:TopPurchasesCustomerData>
        <d2p1:FirstName>sample string 2</d2p1:FirstName>
        <d2p1:Gender>Male</d2p1:Gender>
        <d2p1:Id>da4b46fb-a841-4097-9728-0f50141169f8</d2p1:Id>
        <d2p1:LastName>sample string 3</d2p1:LastName>
        <d2p1:Total>4</d2p1:Total>
        <d2p1:UrlPhoto>sample string 5</d2p1:UrlPhoto>
      </d2p1:TopPurchasesCustomerData>
      <d2p1:TopPurchasesCustomerData>
        <d2p1:FirstName>sample string 2</d2p1:FirstName>
        <d2p1:Gender>Male</d2p1:Gender>
        <d2p1:Id>da4b46fb-a841-4097-9728-0f50141169f8</d2p1:Id>
        <d2p1:LastName>sample string 3</d2p1:LastName>
        <d2p1:Total>4</d2p1:Total>
        <d2p1:UrlPhoto>sample string 5</d2p1:UrlPhoto>
      </d2p1:TopPurchasesCustomerData>
    </d2p1:Data>
    <d2p1:Id>12c5744b-607e-4e59-9990-6468ef40c1d0</d2p1:Id>
  </Result>
</SingleResultResponseOfWidgetWithDataDtoOfArrayOfTopPurchasesCustomerDatadOvjT49_PdOvjT49_P>