GET api/v1/widgets/toppurchasesproductswdgt?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

SingleResultResponseOfWidgetWithDataDtoOfICollectionOfPurchasedProductData
NameDescriptionTypeAdditional information
Meta

MetaSingleResult

None.

Notifications

None.

Response Formats

application/json, text/json

Sample:
{
  "meta": {},
  "notifications": [
    {},
    {}
  ],
  "result": {
    "id": "122f7d23-a820-497f-8f98-29ca750510e2",
    "code": "sample string 2",
    "data": [
      {
        "id": "91988baa-8ff2-4053-b4aa-8072e225048b",
        "name": "sample string 2",
        "brandCode": "sample string 3",
        "brandName": "sample string 4",
        "total": 5.0,
        "date": "2026-06-20T22:46:52.2359962+00:00"
      },
      {
        "id": "91988baa-8ff2-4053-b4aa-8072e225048b",
        "name": "sample string 2",
        "brandCode": "sample string 3",
        "brandName": "sample string 4",
        "total": 5.0,
        "date": "2026-06-20T22:46:52.2359962+00:00"
      }
    ]
  }
}

application/xml, text/xml

Sample:
<SingleResultResponseOfWidgetWithDataDtoOfArrayOfPurchasedProductDatadOvjT49_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:PurchasedProductData>
        <d2p1:BrandCode>sample string 3</d2p1:BrandCode>
        <d2p1:BrandName>sample string 4</d2p1:BrandName>
        <d2p1:Date>2026-06-20T22:46:52.2359962+00:00</d2p1:Date>
        <d2p1:Id>91988baa-8ff2-4053-b4aa-8072e225048b</d2p1:Id>
        <d2p1:Name>sample string 2</d2p1:Name>
        <d2p1:Total>5</d2p1:Total>
      </d2p1:PurchasedProductData>
      <d2p1:PurchasedProductData>
        <d2p1:BrandCode>sample string 3</d2p1:BrandCode>
        <d2p1:BrandName>sample string 4</d2p1:BrandName>
        <d2p1:Date>2026-06-20T22:46:52.2359962+00:00</d2p1:Date>
        <d2p1:Id>91988baa-8ff2-4053-b4aa-8072e225048b</d2p1:Id>
        <d2p1:Name>sample string 2</d2p1:Name>
        <d2p1:Total>5</d2p1:Total>
      </d2p1:PurchasedProductData>
    </d2p1:Data>
    <d2p1:Id>122f7d23-a820-497f-8f98-29ca750510e2</d2p1:Id>
  </Result>
</SingleResultResponseOfWidgetWithDataDtoOfArrayOfPurchasedProductDatadOvjT49_PdOvjT49_P>