POST api/ProductSalesReport/GetProductSalesReport
Request Information
URI Parameters
None.
Body Parameters
ProductSalesReportQueryReq| 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:
<ProductSalesReportQueryReq 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.3377387+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.3377387+08:00</StartTime>
</ProductSalesReportQueryReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseResultOfPageListModelOfProductSalesReportQueryRes| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| ErrorCode | string |
None. |
|
| ErrorMessage | string |
None. |
|
| Data | PageListModelOfProductSalesReportQueryRes |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": true,
"ErrorCode": "sample string 2",
"ErrorMessage": "sample string 3",
"Data": {
"Rows": [
{
"ProductName": "sample string 1",
"ProductSku": "sample string 2",
"Properties": {},
"ProductImgUrl": "sample string 4",
"ShopName": "sample string 5",
"ShopId": 6,
"ProductIdentity": 7,
"SalesTotal": 8,
"SalesAmount": 9.0,
"RefundAmount": 10.0,
"RefundTotal": 11
},
{
"ProductName": "sample string 1",
"ProductSku": "sample string 2",
"Properties": {},
"ProductImgUrl": "sample string 4",
"ShopName": "sample string 5",
"ShopId": 6,
"ProductIdentity": 7,
"SalesTotal": 8,
"SalesAmount": 9.0,
"RefundAmount": 10.0,
"RefundTotal": 11
}
],
"Total": 1,
"PageIndex": 2,
"PageSize": 3
}
}
application/xml, text/xml
Sample:
<ResponseResultOfPageListModelOfProductSalesReportQueryResMmDogPUXG0fLBEQf 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.Common">
<d2p1:PageIndex>2</d2p1:PageIndex>
<d2p1:PageSize>3</d2p1:PageSize>
<d2p1:Rows xmlns:d3p1="http://schemas.datacontract.org/2004/07/MS.Report.Model.ProductSalesReport">
<d3p1:ProductSalesReportQueryRes>
<d3p1:ProductIdentity>7</d3p1:ProductIdentity>
<d3p1:ProductImgUrl>sample string 4</d3p1:ProductImgUrl>
<d3p1:ProductName>sample string 1</d3p1:ProductName>
<d3p1:ProductSku>sample string 2</d3p1:ProductSku>
<d3p1:Properties />
<d3p1:RefundAmount>10</d3p1:RefundAmount>
<d3p1:RefundTotal>11</d3p1:RefundTotal>
<d3p1:SalesAmount>9</d3p1:SalesAmount>
<d3p1:SalesTotal>8</d3p1:SalesTotal>
<d3p1:ShopId>6</d3p1:ShopId>
<d3p1:ShopName>sample string 5</d3p1:ShopName>
</d3p1:ProductSalesReportQueryRes>
<d3p1:ProductSalesReportQueryRes>
<d3p1:ProductIdentity>7</d3p1:ProductIdentity>
<d3p1:ProductImgUrl>sample string 4</d3p1:ProductImgUrl>
<d3p1:ProductName>sample string 1</d3p1:ProductName>
<d3p1:ProductSku>sample string 2</d3p1:ProductSku>
<d3p1:Properties />
<d3p1:RefundAmount>10</d3p1:RefundAmount>
<d3p1:RefundTotal>11</d3p1:RefundTotal>
<d3p1:SalesAmount>9</d3p1:SalesAmount>
<d3p1:SalesTotal>8</d3p1:SalesTotal>
<d3p1:ShopId>6</d3p1:ShopId>
<d3p1:ShopName>sample string 5</d3p1:ShopName>
</d3p1:ProductSalesReportQueryRes>
</d2p1:Rows>
<d2p1:Total>1</d2p1:Total>
</Data>
<ErrorCode>sample string 2</ErrorCode>
<ErrorMessage>sample string 3</ErrorMessage>
<Status>true</Status>
</ResponseResultOfPageListModelOfProductSalesReportQueryResMmDogPUXG0fLBEQf>