POST CostOfGoodsSoldReport/GenerateReportView
Request Information
URI Parameters
None.
Body Parameters
IConnect.Domain.Reports.ProductReport.CostOfGoodsSoldReport.ReportViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| SelectedCompanies | Collection of integer |
None. |
|
| SelectedProductType | integer |
None. |
|
| SelectedManufacturers | Collection of integer |
None. |
|
| IsShowOnlyOnSaleProducts | boolean |
None. |
|
| ProductTag | string |
None. |
|
| SelectedCategories | Collection of integer |
None. |
|
| DefaultProductType | IConnect.Domain.Reports.ProductTypeWithDefaultProductsServices |
None. |
|
| ProductTypeList | Collection of IConnect.Core.JsonSimpleViewModel |
None. |
|
| Start | date |
None. |
|
| End | date |
None. |
|
| StartDateObjectString | string |
None. |
|
| EndDateObjectString | string |
None. |
|
| SkipTimeZoneConvertion | boolean |
None. |
|
| ForceImmediateExport | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"SelectedCompanies": [
1,
2
],
"SelectedProductType": 1,
"SelectedManufacturers": [
1,
2
],
"IsShowOnlyOnSaleProducts": true,
"ProductTag": "sample string 3",
"SelectedCategories": [
1,
2
],
"DefaultProductType": 0,
"ProductTypeList": [
{
"id": {},
"name": "sample string 2"
},
{
"id": {},
"name": "sample string 2"
}
],
"Start": "2026-03-28T07:52:15.1555322-04:00",
"End": "2026-03-28T07:52:15.1555322-04:00",
"StartDateObjectString": "{\"year\":2026,\"month\":3,\"date\":28,\"hours\":7,\"minutes\":52,\"seconds\":15,\"miliseconds\":155}",
"EndDateObjectString": "{\"year\":2026,\"month\":3,\"date\":28,\"hours\":7,\"minutes\":52,\"seconds\":15,\"miliseconds\":155}",
"SkipTimeZoneConvertion": true,
"ForceImmediateExport": true
}
application/xml, text/xml
Sample:
<ReportViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Reports.ProductReport.CostOfGoodsSoldReport">
<_x003C_End_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Reports">2026-03-28T07:52:15.1555322-04:00</_x003C_End_x003E_k__BackingField>
<_x003C_ForceImmediateExport_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Reports">true</_x003C_ForceImmediateExport_x003E_k__BackingField>
<_x003C_SkipTimeZoneConvertion_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Reports">true</_x003C_SkipTimeZoneConvertion_x003E_k__BackingField>
<_x003C_Start_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Reports">2026-03-28T07:52:15.1555322-04:00</_x003C_Start_x003E_k__BackingField>
<_x003C_DefaultProductType_x003E_k__BackingField>ProductsAndServices</_x003C_DefaultProductType_x003E_k__BackingField>
<_x003C_IsShowOnlyOnSaleProducts_x003E_k__BackingField>true</_x003C_IsShowOnlyOnSaleProducts_x003E_k__BackingField>
<_x003C_ProductTag_x003E_k__BackingField>sample string 3</_x003C_ProductTag_x003E_k__BackingField>
<_x003C_ProductTypeList_x003E_k__BackingField xmlns:d2p1="http://schemas.datacontract.org/2004/07/IConnect.Core">
<d2p1:JsonSimpleViewModel>
<d2p1:Id />
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:JsonSimpleViewModel>
<d2p1:JsonSimpleViewModel>
<d2p1:Id />
<d2p1:Name>sample string 2</d2p1:Name>
</d2p1:JsonSimpleViewModel>
</_x003C_ProductTypeList_x003E_k__BackingField>
<_x003C_SelectedCategories_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</_x003C_SelectedCategories_x003E_k__BackingField>
<_x003C_SelectedCompanies_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</_x003C_SelectedCompanies_x003E_k__BackingField>
<_x003C_SelectedManufacturers_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</_x003C_SelectedManufacturers_x003E_k__BackingField>
<_x003C_SelectedProductType_x003E_k__BackingField>1</_x003C_SelectedProductType_x003E_k__BackingField>
</ReportViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of IConnect.Domain.Reports.ProductReport.CostOfGoodsSoldReport.CostOfGoodsSoldReportItemLevel1| Name | Description | Type | Additional information |
|---|---|---|---|
| LocationId | integer |
None. |
|
| Location | string |
None. |
|
| AverageCost | decimal number |
None. |
|
| AveragePrice | decimal number |
None. |
|
| Quantity | decimal number |
None. |
|
| TotalCost | decimal number |
None. |
|
| GrossSales | decimal number |
None. |
|
| Returns | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| NetSales | decimal number |
None. |
|
| Tax | decimal number |
None. |
|
| TotalCollected | decimal number |
None. |
|
| TotalProfit | decimal number |
None. |
|
| DiscountPercentage | decimal number |
None. |
|
| QuantityOnHand | decimal number |
None. |
|
| QuantityOnHandValue | decimal number |
None. |
|
| MarkupPercentage | decimal number |
None. |
|
| Margin | decimal number |
None. |
|
| SellThroughPercantage | decimal number |
None. |
|
| TotalPriceWithoutZeroCostServices | decimal number |
None. |
|
| ProductIds | Collection of integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"LocationId": 1,
"Location": "sample string 2",
"AverageCost": 1.3333333333333333,
"AveragePrice": 1.6666666666666667,
"Quantity": 3.0,
"TotalCost": 4.0,
"GrossSales": 5.0,
"Returns": 6.0,
"Discount": 7.0,
"NetSales": 8.0,
"Tax": 9.0,
"TotalCollected": 10.0,
"TotalProfit": 4.0,
"DiscountPercentage": 140.0,
"QuantityOnHand": 11.0,
"QuantityOnHandValue": 12.0,
"MarkupPercentage": 225.0,
"Margin": 69.23,
"SellThroughPercantage": 21.43,
"TotalPriceWithoutZeroCostServices": 13.0,
"ProductIds": [
1,
2
]
},
{
"LocationId": 1,
"Location": "sample string 2",
"AverageCost": 1.3333333333333333,
"AveragePrice": 1.6666666666666667,
"Quantity": 3.0,
"TotalCost": 4.0,
"GrossSales": 5.0,
"Returns": 6.0,
"Discount": 7.0,
"NetSales": 8.0,
"Tax": 9.0,
"TotalCollected": 10.0,
"TotalProfit": 4.0,
"DiscountPercentage": 140.0,
"QuantityOnHand": 11.0,
"QuantityOnHandValue": 12.0,
"MarkupPercentage": 225.0,
"Margin": 69.23,
"SellThroughPercantage": 21.43,
"TotalPriceWithoutZeroCostServices": 13.0,
"ProductIds": [
1,
2
]
}
]
application/xml, text/xml
Sample:
<ArrayOfCostOfGoodsSoldReportItemLevel1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Reports.ProductReport.CostOfGoodsSoldReport">
<CostOfGoodsSoldReportItemLevel1>
<Discount>7</Discount>
<GrossSales>5</GrossSales>
<Location>sample string 2</Location>
<LocationId>1</LocationId>
<NetSales>8</NetSales>
<ProductIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</ProductIds>
<Quantity>3</Quantity>
<QuantityOnHand>11</QuantityOnHand>
<QuantityOnHandValue>12</QuantityOnHandValue>
<Returns>6</Returns>
<Tax>9</Tax>
<TotalCollected>10</TotalCollected>
<TotalCost>4</TotalCost>
<TotalPriceWithoutZeroCostServices>13</TotalPriceWithoutZeroCostServices>
</CostOfGoodsSoldReportItemLevel1>
<CostOfGoodsSoldReportItemLevel1>
<Discount>7</Discount>
<GrossSales>5</GrossSales>
<Location>sample string 2</Location>
<LocationId>1</LocationId>
<NetSales>8</NetSales>
<ProductIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</ProductIds>
<Quantity>3</Quantity>
<QuantityOnHand>11</QuantityOnHand>
<QuantityOnHandValue>12</QuantityOnHandValue>
<Returns>6</Returns>
<Tax>9</Tax>
<TotalCollected>10</TotalCollected>
<TotalCost>4</TotalCost>
<TotalPriceWithoutZeroCostServices>13</TotalPriceWithoutZeroCostServices>
</CostOfGoodsSoldReportItemLevel1>
</ArrayOfCostOfGoodsSoldReportItemLevel1>