POST CostOfGoodsSoldReport/GenerateReportView

Request Information

URI Parameters

None.

Body Parameters

IConnect.Domain.Reports.ProductReport.CostOfGoodsSoldReport.ReportViewModel
NameDescriptionTypeAdditional information
SelectedCompanies

Collection of integer

None.

SelectedManufacturer

integer

None.

IsShowOnlyOnSaleProducts

boolean

None.

ProductTag

string

None.

SelectedCategory

integer

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
  ],
  "SelectedManufacturer": 1,
  "IsShowOnlyOnSaleProducts": true,
  "ProductTag": "sample string 3",
  "SelectedCategory": 4,
  "Start": "2024-10-18T04:28:51.5305264-04:00",
  "End": "2024-10-18T04:28:51.5305264-04:00",
  "StartDateObjectString": "{\"year\":2024,\"month\":10,\"date\":18,\"hours\":4,\"minutes\":28,\"seconds\":51,\"miliseconds\":530}",
  "EndDateObjectString": "{\"year\":2024,\"month\":10,\"date\":18,\"hours\":4,\"minutes\":28,\"seconds\":51,\"miliseconds\":530}",
  "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">2024-10-18T04:28:51.5305264-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">2024-10-18T04:28:51.5305264-04:00</_x003C_Start_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_SelectedCategory_x003E_k__BackingField>4</_x003C_SelectedCategory_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_SelectedManufacturer_x003E_k__BackingField>1</_x003C_SelectedManufacturer_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
NameDescriptionTypeAdditional 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>