POST
api/v1/profit-loss-product-category-report
Request Information
Body Parameters
ProductsRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ClientId | integer |
None. |
|
| SellerId | integer |
None. |
|
| PageNumber | integer |
None. |
|
| PageSize | integer |
None. |
|
| Search | string |
None. |
|
| OrderBy | string |
None. |
|
| OrderDir | string |
None. |
|
| FromDate | date |
None. |
|
| ToDate | date |
None. |
Request Formats
application/json, text/json
{
"ClientId": 1,
"SellerId": 2,
"PageNumber": 3,
"PageSize": 4,
"Search": "sample string 5",
"OrderBy": "sample string 6",
"OrderDir": "sample string 7",
"FromDate": "2026-02-05T07:22:18.0567916+00:00",
"ToDate": "2026-02-05T07:22:18.0567916+00:00"
}
text/html
{"ClientId":1,"SellerId":2,"PageNumber":3,"PageSize":4,"Search":"sample string 5","OrderBy":"sample string 6","OrderDir":"sample string 7","FromDate":"2026-02-05T07:22:18.0567916+00:00","ToDate":"2026-02-05T07:22:18.0567916+00:00"}
application/xml, text/xml
<ProductsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI.Models.Order"> <ClientId>1</ClientId> <FromDate>2026-02-05T07:22:18.0567916+00:00</FromDate> <OrderBy>sample string 6</OrderBy> <OrderDir>sample string 7</OrderDir> <PageNumber>3</PageNumber> <PageSize>4</PageSize> <Search>sample string 5</Search> <SellerId>2</SellerId> <ToDate>2026-02-05T07:22:18.0567916+00:00</ToDate> </ProductsRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Description:
Return type: Collection of ProfitAndLossProductCategoryReport
Response Formats
application/json, text/json
[
{
"ProductCategory": "sample string 1",
"TotalSales": 2.0,
"COGS": 3.0,
"GrossProfit": 4.0,
"OperatingExpenses": 5.0,
"NetProfit": 6.0,
"ProfitMargin": 7.1,
"TotalRows": 8
},
{
"ProductCategory": "sample string 1",
"TotalSales": 2.0,
"COGS": 3.0,
"GrossProfit": 4.0,
"OperatingExpenses": 5.0,
"NetProfit": 6.0,
"ProfitMargin": 7.1,
"TotalRows": 8
}
]
text/html
[{"ProductCategory":"sample string 1","TotalSales":2.0,"COGS":3.0,"GrossProfit":4.0,"OperatingExpenses":5.0,"NetProfit":6.0,"ProfitMargin":7.1,"TotalRows":8},{"ProductCategory":"sample string 1","TotalSales":2.0,"COGS":3.0,"GrossProfit":4.0,"OperatingExpenses":5.0,"NetProfit":6.0,"ProfitMargin":7.1,"TotalRows":8}]
application/xml, text/xml
<ArrayOfProfitAndLossProductCategoryReport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI.Models.Order">
<ProfitAndLossProductCategoryReport>
<COGS>3</COGS>
<GrossProfit>4</GrossProfit>
<NetProfit>6</NetProfit>
<OperatingExpenses>5</OperatingExpenses>
<ProductCategory>sample string 1</ProductCategory>
<ProfitMargin>7.1</ProfitMargin>
<TotalRows>8</TotalRows>
<TotalSales>2</TotalSales>
</ProfitAndLossProductCategoryReport>
<ProfitAndLossProductCategoryReport>
<COGS>3</COGS>
<GrossProfit>4</GrossProfit>
<NetProfit>6</NetProfit>
<OperatingExpenses>5</OperatingExpenses>
<ProductCategory>sample string 1</ProductCategory>
<ProfitMargin>7.1</ProfitMargin>
<TotalRows>8</TotalRows>
<TotalSales>2</TotalSales>
</ProfitAndLossProductCategoryReport>
</ArrayOfProfitAndLossProductCategoryReport>
