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": "2025-12-15T16:18:48.0406272-05:00",
"End": "2025-12-15T16:18:48.0406272-05:00",
"StartDateObjectString": "{\"year\":2025,\"month\":12,\"date\":15,\"hours\":16,\"minutes\":18,\"seconds\":48,\"miliseconds\":40}",
"EndDateObjectString": "{\"year\":2025,\"month\":12,\"date\":15,\"hours\":16,\"minutes\":18,\"seconds\":48,\"miliseconds\":40}",
"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">2025-12-15T16:18:48.0406272-05: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">2025-12-15T16:18:48.0406272-05: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. |
|
| TotalPrice | 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. |
|
| Discount | decimal number |
None. |
|
| SubTotal | 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": 3.0,
"AveragePrice": 4.0,
"Quantity": 5.0,
"TotalCost": 6.0,
"TotalPrice": 7.0,
"TotalProfit": 8.0,
"DiscountPercentage": 9.0,
"QuantityOnHand": 10.0,
"QuantityOnHandValue": 11.0,
"MarkupPercentage": 1.0,
"Margin": 1.0,
"SellThroughPercantage": 12.0,
"Discount": 13.0,
"SubTotal": 14.0,
"TotalPriceWithoutZeroCostServices": 15.0,
"ProductIds": [
1,
2
]
},
{
"LocationId": 1,
"Location": "sample string 2",
"AverageCost": 3.0,
"AveragePrice": 4.0,
"Quantity": 5.0,
"TotalCost": 6.0,
"TotalPrice": 7.0,
"TotalProfit": 8.0,
"DiscountPercentage": 9.0,
"QuantityOnHand": 10.0,
"QuantityOnHandValue": 11.0,
"MarkupPercentage": 1.0,
"Margin": 1.0,
"SellThroughPercantage": 12.0,
"Discount": 13.0,
"SubTotal": 14.0,
"TotalPriceWithoutZeroCostServices": 15.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>
<AverageCost>3</AverageCost>
<AveragePrice>4</AveragePrice>
<Discount>13</Discount>
<DiscountPercentage>9</DiscountPercentage>
<Location>sample string 2</Location>
<LocationId>1</LocationId>
<Margin>1</Margin>
<MarkupPercentage>1</MarkupPercentage>
<ProductIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</ProductIds>
<Quantity>5</Quantity>
<QuantityOnHand>10</QuantityOnHand>
<QuantityOnHandValue>11</QuantityOnHandValue>
<SellThroughPercantage>12</SellThroughPercantage>
<SubTotal>14</SubTotal>
<TotalCost>6</TotalCost>
<TotalPrice>7</TotalPrice>
<TotalPriceWithoutZeroCostServices>15</TotalPriceWithoutZeroCostServices>
<TotalProfit>8</TotalProfit>
</CostOfGoodsSoldReportItemLevel1>
<CostOfGoodsSoldReportItemLevel1>
<AverageCost>3</AverageCost>
<AveragePrice>4</AveragePrice>
<Discount>13</Discount>
<DiscountPercentage>9</DiscountPercentage>
<Location>sample string 2</Location>
<LocationId>1</LocationId>
<Margin>1</Margin>
<MarkupPercentage>1</MarkupPercentage>
<ProductIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</ProductIds>
<Quantity>5</Quantity>
<QuantityOnHand>10</QuantityOnHand>
<QuantityOnHandValue>11</QuantityOnHandValue>
<SellThroughPercantage>12</SellThroughPercantage>
<SubTotal>14</SubTotal>
<TotalCost>6</TotalCost>
<TotalPrice>7</TotalPrice>
<TotalPriceWithoutZeroCostServices>15</TotalPriceWithoutZeroCostServices>
<TotalProfit>8</TotalProfit>
</CostOfGoodsSoldReportItemLevel1>
</ArrayOfCostOfGoodsSoldReportItemLevel1>