POST api/Dashboard/DataChartTopImportedProducts
Request Information
URI Parameters
None.
Body Parameters
ChartRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DateFrom | date |
None. |
|
| DateTo | date |
None. |
|
| AccountId | globally unique identifier |
None. |
|
| CustomerId | integer |
None. |
|
| OrderType | integer |
None. |
|
| PageIndex | integer |
None. |
|
| PageSize | integer |
None. |
|
| KeySearch | string |
None. |
|
| SupplierIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"dateFrom": "2026-11-27T01:55:44.8444953+07:00",
"dateTo": "2026-11-27T01:55:44.8444953+07:00",
"accountId": "19df858c-ac05-4b86-bc30-93193ced9b67",
"customerId": 1,
"orderType": 1,
"pageIndex": 1,
"pageSize": 1,
"keySearch": "sample string 1",
"supplierIds": [
1,
2
]
}
application/xml, text/xml
Sample:
<ChartRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Dashboard">
<AccountId>19df858c-ac05-4b86-bc30-93193ced9b67</AccountId>
<CustomerId>1</CustomerId>
<DateFrom>2026-11-27T01:55:44.8444953+07:00</DateFrom>
<DateTo>2026-11-27T01:55:44.8444953+07:00</DateTo>
<KeySearch>sample string 1</KeySearch>
<OrderType>1</OrderType>
<PageIndex>1</PageIndex>
<PageSize>1</PageSize>
<SupplierIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</SupplierIds>
</ChartRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ChartResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Labels | Collection of string |
None. |
|
| ChartDataModel | ChartDataModel |
None. |
|
| ChartDataModels | Collection of ChartDataModel |
None. |
|
| TotalPrice | Collection of decimal number |
None. |
|
| TotalPriceCost | integer |
None. |
|
| TotalQuantity | Collection of integer |
None. |
|
| SupplierIds | Collection of integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"labels": [
"sample string 1",
"sample string 2"
],
"chartDataModel": {
"data": [
1.0,
2.0
],
"label": "sample string 1"
},
"chartDataModels": [
{
"data": [
1.0,
2.0
],
"label": "sample string 1"
},
{
"data": [
1.0,
2.0
],
"label": "sample string 1"
}
],
"totalPrice": [
1.0,
2.0
],
"totalPriceCost": 1,
"totalQuantity": [
1,
2
],
"supplierIds": [
1,
2
]
}
application/xml, text/xml
Sample:
<ChartResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Response.Dashboard">
<ChartDataModel>
<Data xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:decimal>1</d3p1:decimal>
<d3p1:decimal>2</d3p1:decimal>
</Data>
<Label>sample string 1</Label>
</ChartDataModel>
<ChartDataModels>
<ChartDataModel>
<Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:decimal>1</d4p1:decimal>
<d4p1:decimal>2</d4p1:decimal>
</Data>
<Label>sample string 1</Label>
</ChartDataModel>
<ChartDataModel>
<Data xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:decimal>1</d4p1:decimal>
<d4p1:decimal>2</d4p1:decimal>
</Data>
<Label>sample string 1</Label>
</ChartDataModel>
</ChartDataModels>
<Labels xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Labels>
<SupplierIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</SupplierIds>
<TotalPrice xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:decimal>1</d2p1:decimal>
<d2p1:decimal>2</d2p1:decimal>
</TotalPrice>
<TotalPriceCost>1</TotalPriceCost>
<TotalQuantity xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</TotalQuantity>
</ChartResponseModel>