GET api/v1/widgets/toppurchasesproductswdgt?refresh={refresh}&number={number}&monthsBack={monthsBack}
Request Information
URI Parameters
| Name | Description | Type | Additional 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| Name | Description | Type | Additional information |
|---|---|---|---|
| Meta | MetaSingleResult |
None. |
|
| Notifications |
None. |
Response Formats
application/json, text/json
Sample:
{
"meta": {},
"notifications": [
{},
{}
],
"result": {
"id": "317fa4ec-e4bc-4fc1-8f58-479af11891d2",
"code": "sample string 2",
"data": [
{
"id": "ab7d7db0-c6c2-4cad-a838-23ae4131a18e",
"name": "sample string 2",
"brandCode": "sample string 3",
"brandName": "sample string 4",
"total": 5.0,
"date": "2026-03-23T09:17:56.6595354+00:00"
},
{
"id": "ab7d7db0-c6c2-4cad-a838-23ae4131a18e",
"name": "sample string 2",
"brandCode": "sample string 3",
"brandName": "sample string 4",
"total": 5.0,
"date": "2026-03-23T09:17:56.6595354+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-03-23T09:17:56.6595354+00:00</d2p1:Date>
<d2p1:Id>ab7d7db0-c6c2-4cad-a838-23ae4131a18e</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-03-23T09:17:56.6595354+00:00</d2p1:Date>
<d2p1:Id>ab7d7db0-c6c2-4cad-a838-23ae4131a18e</d2p1:Id>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:Total>5</d2p1:Total>
</d2p1:PurchasedProductData>
</d2p1:Data>
<d2p1:Id>317fa4ec-e4bc-4fc1-8f58-479af11891d2</d2p1:Id>
</Result>
</SingleResultResponseOfWidgetWithDataDtoOfArrayOfPurchasedProductDatadOvjT49_PdOvjT49_P>