POST api/ProductSalesReport/GetProductSalesStatistics
Request Information
URI Parameters
None.
Body Parameters
ProductSalesStatisticsReq| Name | Description | Type | Additional information |
|---|---|---|---|
| ShopIds | Collection of integer |
None. |
|
| StartTime | date |
None. |
|
| EndTime | date |
None. |
|
| ProductName | string |
None. |
|
| ProductSku | string |
None. |
|
| Sort | OrderByField |
None. |
|
| PageIndex | integer |
None. |
|
| PageSize | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ShopIds": [
1,
2
],
"StartTime": "2026-08-11 21:22:33",
"EndTime": "2026-08-11 21:22:33",
"ProductName": "sample string 1",
"ProductSku": "sample string 2",
"Sort": {
"IsDesc": true,
"Field": "sample string 2"
},
"PageIndex": 3,
"PageSize": 4
}
application/xml, text/xml
Sample:
<ProductSalesStatisticsReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MS.Report.Model.ProductSalesReport">
<PageIndex xmlns="http://schemas.datacontract.org/2004/07/MS.Common">3</PageIndex>
<PageSize xmlns="http://schemas.datacontract.org/2004/07/MS.Common">4</PageSize>
<EndTime>2026-08-11T21:22:33.368995+08:00</EndTime>
<ProductName>sample string 1</ProductName>
<ProductSku>sample string 2</ProductSku>
<ShopIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ShopIds>
<Sort>
<Field>sample string 2</Field>
<IsDesc>true</IsDesc>
</Sort>
<StartTime>2026-08-11T21:22:33.368995+08:00</StartTime>
</ProductSalesStatisticsReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseResultOfProductSalesStatisticsRes| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| ErrorCode | string |
None. |
|
| ErrorMessage | string |
None. |
|
| Data | ProductSalesStatisticsRes |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": true,
"ErrorCode": "sample string 2",
"ErrorMessage": "sample string 3",
"Data": {
"ProductIdentityTotal": 1,
"SalesTotal": 2,
"SalesAmount": 3.0,
"RefundAmount": 4.0,
"RefundTotal": 5
}
}
application/xml, text/xml
Sample:
<ResponseResultOfProductSalesStatisticsResMmDogPUX xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Willv.Common">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/MS.Report.Model.ProductSalesReport">
<d2p1:ProductIdentityTotal>1</d2p1:ProductIdentityTotal>
<d2p1:RefundAmount>4</d2p1:RefundAmount>
<d2p1:RefundTotal>5</d2p1:RefundTotal>
<d2p1:SalesAmount>3</d2p1:SalesAmount>
<d2p1:SalesTotal>2</d2p1:SalesTotal>
</Data>
<ErrorCode>sample string 2</ErrorCode>
<ErrorMessage>sample string 3</ErrorMessage>
<Status>true</Status>
</ResponseResultOfProductSalesStatisticsResMmDogPUX>