POST api/Dashboard/DataChartSaleTop10
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. |
Request Formats
application/json, text/json
Sample:
{
"DateFrom": "2025-10-26T13:05:16.8935823+07:00",
"DateTo": "2025-10-26T13:05:16.8935823+07:00",
"AccountId": "54268141-3ef9-4fbe-b81a-977fd127752c",
"CustomerId": 1
}
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>54268141-3ef9-4fbe-b81a-977fd127752c</AccountId> <CustomerId>1</CustomerId> <DateFrom>2025-10-26T13:05:16.8935823+07:00</DateFrom> <DateTo>2025-10-26T13:05:16.8935823+07:00</DateTo> </ChartRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |
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
]
}
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>
<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>