POST api/SaleReport/GetAllProductStockAgainstSaleSummary

Request Information

URI Parameters

None.

Body Parameters

SaleIdsRequest
NameDescriptionTypeAdditional information
SaleIds

Collection of integer

None.

PageSize

integer

None.

PageNo

integer

None.

Search

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SaleIds": [
    1,
    2
  ],
  "PageSize": 1,
  "PageNo": 2,
  "Search": "sample string 3"
}

application/xml, text/xml

Sample:
<SaleIdsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request">
  <PageNo>2</PageNo>
  <PageSize>1</PageSize>
  <SaleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </SaleIds>
  <Search>sample string 3</Search>
</SaleIdsRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SaleDetailResponse
NameDescriptionTypeAdditional information
TotalRecords

integer

None.

SaleDetails

Collection of SaleDetailModel

None.

ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TotalRecords": 1,
  "SaleDetails": [
    {
      "ID": 1,
      "SaleID": 1,
      "ProductID": 1,
      "ProductVariantID": 1,
      "Quantity": 1,
      "TaxAmount": 1.0,
      "dTotalValue": 1.0,
      "dTotalDiscount": 1.0,
      "ReturnedTyped": 1,
      "IsReturned": true,
      "ReturnedQuantity": 1,
      "Keenland": "sample string 2",
      "IsKeenlandExists": true,
      "TaxPer": 1.0,
      "dTotalUnitValue": 1.0,
      "dDiscountPer": 1.0,
      "Product": "sample string 3",
      "ProductVariant": "sample string 4",
      "ProductPrice": 1.0,
      "ProductPriceString": "sample string 5",
      "isReturnProductChecked": true,
      "ProductVarientBarCode": "sample string 7",
      "ProductQRCode": "sample string 8",
      "BLabel": "sample string 9",
      "ProductImage": "sample string 10",
      "TrackableProductsSaleDetails": [
        {
          "ID": 1,
          "ProductID": 1,
          "ProductVariantID": 1,
          "SaleDetailID": 1,
          "TrackableCode": "sample string 2",
          "IsReturned": true,
          "CreatedAt": "2025-01-22T21:10:29.2627739-06:00",
          "Product": "sample string 3",
          "ProductVariant": "sample string 4"
        },
        {
          "ID": 1,
          "ProductID": 1,
          "ProductVariantID": 1,
          "SaleDetailID": 1,
          "TrackableCode": "sample string 2",
          "IsReturned": true,
          "CreatedAt": "2025-01-22T21:10:29.2627739-06:00",
          "Product": "sample string 3",
          "ProductVariant": "sample string 4"
        }
      ],
      "SaleDetailNonTrackableLocations": [
        {
          "ID": 1,
          "SaleDetailID": 1,
          "LevelID": 1,
          "Quantity": 1,
          "Location": "sample string 2",
          "NonTrackableProductsLocationID": 1
        },
        {
          "ID": 1,
          "SaleDetailID": 1,
          "LevelID": 1,
          "Quantity": 1,
          "Location": "sample string 2",
          "NonTrackableProductsLocationID": 1
        }
      ],
      "dTotalAmount": 1.0,
      "OriginalQuantity": 1,
      "ManufacturerCode": "sample string 11"
    },
    {
      "ID": 1,
      "SaleID": 1,
      "ProductID": 1,
      "ProductVariantID": 1,
      "Quantity": 1,
      "TaxAmount": 1.0,
      "dTotalValue": 1.0,
      "dTotalDiscount": 1.0,
      "ReturnedTyped": 1,
      "IsReturned": true,
      "ReturnedQuantity": 1,
      "Keenland": "sample string 2",
      "IsKeenlandExists": true,
      "TaxPer": 1.0,
      "dTotalUnitValue": 1.0,
      "dDiscountPer": 1.0,
      "Product": "sample string 3",
      "ProductVariant": "sample string 4",
      "ProductPrice": 1.0,
      "ProductPriceString": "sample string 5",
      "isReturnProductChecked": true,
      "ProductVarientBarCode": "sample string 7",
      "ProductQRCode": "sample string 8",
      "BLabel": "sample string 9",
      "ProductImage": "sample string 10",
      "TrackableProductsSaleDetails": [
        {
          "ID": 1,
          "ProductID": 1,
          "ProductVariantID": 1,
          "SaleDetailID": 1,
          "TrackableCode": "sample string 2",
          "IsReturned": true,
          "CreatedAt": "2025-01-22T21:10:29.2627739-06:00",
          "Product": "sample string 3",
          "ProductVariant": "sample string 4"
        },
        {
          "ID": 1,
          "ProductID": 1,
          "ProductVariantID": 1,
          "SaleDetailID": 1,
          "TrackableCode": "sample string 2",
          "IsReturned": true,
          "CreatedAt": "2025-01-22T21:10:29.2627739-06:00",
          "Product": "sample string 3",
          "ProductVariant": "sample string 4"
        }
      ],
      "SaleDetailNonTrackableLocations": [
        {
          "ID": 1,
          "SaleDetailID": 1,
          "LevelID": 1,
          "Quantity": 1,
          "Location": "sample string 2",
          "NonTrackableProductsLocationID": 1
        },
        {
          "ID": 1,
          "SaleDetailID": 1,
          "LevelID": 1,
          "Quantity": 1,
          "Location": "sample string 2",
          "NonTrackableProductsLocationID": 1
        }
      ],
      "dTotalAmount": 1.0,
      "OriginalQuantity": 1,
      "ManufacturerCode": "sample string 11"
    }
  ],
  "ResponseCode": 2,
  "ResponseText": "sample string 3"
}

application/xml, text/xml

Sample:
<SaleDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
  <ResponseCode>2</ResponseCode>
  <ResponseText>sample string 3</ResponseText>
  <SaleDetails>
    <SaleDetailModel>
      <BLabel>sample string 9</BLabel>
      <ID>1</ID>
      <IsKeenlandExists>true</IsKeenlandExists>
      <IsReturned>true</IsReturned>
      <Keenland>sample string 2</Keenland>
      <ManufacturerCode>sample string 11</ManufacturerCode>
      <OriginalQuantity>1</OriginalQuantity>
      <Product>sample string 3</Product>
      <ProductID>1</ProductID>
      <ProductImage>sample string 10</ProductImage>
      <ProductPrice>1</ProductPrice>
      <ProductPriceString>sample string 5</ProductPriceString>
      <ProductQRCode>sample string 8</ProductQRCode>
      <ProductVariant>sample string 4</ProductVariant>
      <ProductVariantID>1</ProductVariantID>
      <ProductVarientBarCode>sample string 7</ProductVarientBarCode>
      <Quantity>1</Quantity>
      <ReturnedQuantity>1</ReturnedQuantity>
      <ReturnedTyped>1</ReturnedTyped>
      <SaleDetailNonTrackableLocations>
        <SaleDetailNonTrackableLocationModel>
          <ID>1</ID>
          <LevelID>1</LevelID>
          <Location>sample string 2</Location>
          <NonTrackableProductsLocationID>1</NonTrackableProductsLocationID>
          <Quantity>1</Quantity>
          <SaleDetailID>1</SaleDetailID>
        </SaleDetailNonTrackableLocationModel>
        <SaleDetailNonTrackableLocationModel>
          <ID>1</ID>
          <LevelID>1</LevelID>
          <Location>sample string 2</Location>
          <NonTrackableProductsLocationID>1</NonTrackableProductsLocationID>
          <Quantity>1</Quantity>
          <SaleDetailID>1</SaleDetailID>
        </SaleDetailNonTrackableLocationModel>
      </SaleDetailNonTrackableLocations>
      <SaleID>1</SaleID>
      <TaxAmount>1</TaxAmount>
      <TaxPer>1</TaxPer>
      <TrackableProductsSaleDetails>
        <TrackableProductsSaleDetailModel>
          <CreatedAt>2025-01-22T21:10:29.2627739-06:00</CreatedAt>
          <ID>1</ID>
          <IsReturned>true</IsReturned>
          <Product>sample string 3</Product>
          <ProductID>1</ProductID>
          <ProductVariant>sample string 4</ProductVariant>
          <ProductVariantID>1</ProductVariantID>
          <SaleDetailID>1</SaleDetailID>
          <TrackableCode>sample string 2</TrackableCode>
        </TrackableProductsSaleDetailModel>
        <TrackableProductsSaleDetailModel>
          <CreatedAt>2025-01-22T21:10:29.2627739-06:00</CreatedAt>
          <ID>1</ID>
          <IsReturned>true</IsReturned>
          <Product>sample string 3</Product>
          <ProductID>1</ProductID>
          <ProductVariant>sample string 4</ProductVariant>
          <ProductVariantID>1</ProductVariantID>
          <SaleDetailID>1</SaleDetailID>
          <TrackableCode>sample string 2</TrackableCode>
        </TrackableProductsSaleDetailModel>
      </TrackableProductsSaleDetails>
      <dDiscountPer>1</dDiscountPer>
      <dTotalAmount>1</dTotalAmount>
      <dTotalDiscount>1</dTotalDiscount>
      <dTotalUnitValue>1</dTotalUnitValue>
      <dTotalValue>1</dTotalValue>
      <isReturnProductChecked>true</isReturnProductChecked>
    </SaleDetailModel>
    <SaleDetailModel>
      <BLabel>sample string 9</BLabel>
      <ID>1</ID>
      <IsKeenlandExists>true</IsKeenlandExists>
      <IsReturned>true</IsReturned>
      <Keenland>sample string 2</Keenland>
      <ManufacturerCode>sample string 11</ManufacturerCode>
      <OriginalQuantity>1</OriginalQuantity>
      <Product>sample string 3</Product>
      <ProductID>1</ProductID>
      <ProductImage>sample string 10</ProductImage>
      <ProductPrice>1</ProductPrice>
      <ProductPriceString>sample string 5</ProductPriceString>
      <ProductQRCode>sample string 8</ProductQRCode>
      <ProductVariant>sample string 4</ProductVariant>
      <ProductVariantID>1</ProductVariantID>
      <ProductVarientBarCode>sample string 7</ProductVarientBarCode>
      <Quantity>1</Quantity>
      <ReturnedQuantity>1</ReturnedQuantity>
      <ReturnedTyped>1</ReturnedTyped>
      <SaleDetailNonTrackableLocations>
        <SaleDetailNonTrackableLocationModel>
          <ID>1</ID>
          <LevelID>1</LevelID>
          <Location>sample string 2</Location>
          <NonTrackableProductsLocationID>1</NonTrackableProductsLocationID>
          <Quantity>1</Quantity>
          <SaleDetailID>1</SaleDetailID>
        </SaleDetailNonTrackableLocationModel>
        <SaleDetailNonTrackableLocationModel>
          <ID>1</ID>
          <LevelID>1</LevelID>
          <Location>sample string 2</Location>
          <NonTrackableProductsLocationID>1</NonTrackableProductsLocationID>
          <Quantity>1</Quantity>
          <SaleDetailID>1</SaleDetailID>
        </SaleDetailNonTrackableLocationModel>
      </SaleDetailNonTrackableLocations>
      <SaleID>1</SaleID>
      <TaxAmount>1</TaxAmount>
      <TaxPer>1</TaxPer>
      <TrackableProductsSaleDetails>
        <TrackableProductsSaleDetailModel>
          <CreatedAt>2025-01-22T21:10:29.2627739-06:00</CreatedAt>
          <ID>1</ID>
          <IsReturned>true</IsReturned>
          <Product>sample string 3</Product>
          <ProductID>1</ProductID>
          <ProductVariant>sample string 4</ProductVariant>
          <ProductVariantID>1</ProductVariantID>
          <SaleDetailID>1</SaleDetailID>
          <TrackableCode>sample string 2</TrackableCode>
        </TrackableProductsSaleDetailModel>
        <TrackableProductsSaleDetailModel>
          <CreatedAt>2025-01-22T21:10:29.2627739-06:00</CreatedAt>
          <ID>1</ID>
          <IsReturned>true</IsReturned>
          <Product>sample string 3</Product>
          <ProductID>1</ProductID>
          <ProductVariant>sample string 4</ProductVariant>
          <ProductVariantID>1</ProductVariantID>
          <SaleDetailID>1</SaleDetailID>
          <TrackableCode>sample string 2</TrackableCode>
        </TrackableProductsSaleDetailModel>
      </TrackableProductsSaleDetails>
      <dDiscountPer>1</dDiscountPer>
      <dTotalAmount>1</dTotalAmount>
      <dTotalDiscount>1</dTotalDiscount>
      <dTotalUnitValue>1</dTotalUnitValue>
      <dTotalValue>1</dTotalValue>
      <isReturnProductChecked>true</isReturnProductChecked>
    </SaleDetailModel>
  </SaleDetails>
  <TotalRecords>1</TotalRecords>
</SaleDetailResponse>