POST api/OpenPurchase/GetByStockHistoryID

Request Information

URI Parameters

None.

Body Parameters

RequestIDModel
NameDescriptionTypeAdditional information
ID

integer

Required

RequestedUserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "RequestedUserID": 1
}

application/xml, text/xml

Sample:
<RequestIDModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Request">
  <RequestedUserID>1</RequestedUserID>
  <ID>1</ID>
</RequestIDModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GetPurchaseByIDResponse
NameDescriptionTypeAdditional information
PurchaseModel

PurchaseModel

None.

ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PurchaseModel": {
    "ID": 1,
    "SuppierInvoiceNo": "sample string 2",
    "Supplier": "sample string 3",
    "PaymentMode": "sample string 4",
    "dTotalPurchaseValue": 1.0,
    "dTotalPurchaseValueFC": 1.0,
    "dTotalPurchaseValueString": "sample string 5",
    "dDiscountPercentage": 1.0,
    "dDiscountValue": 1.0,
    "dDiscountValueFC": 1.0,
    "dDiscountValueString": "sample string 6",
    "dTotalPaidValue": 1.0,
    "dTotalPaidValueFC": 1.0,
    "dTotalPaidValueString": "sample string 7",
    "PurchaseDate": "2025-01-22T21:00:51.0022707-06:00",
    "PurchaseDateString": "sample string 8",
    "DueDate": "2025-01-22T21:00:51.0022707-06:00",
    "DueDateString": "sample string 9",
    "sRemarks": "sample string 10",
    "CreatedAt": "2025-01-22T21:00:51.0022707-06:00",
    "UpdatedAt": "2025-01-22T21:00:51.0022707-06:00",
    "CreatedByUserID": 1,
    "SupplierID": 1,
    "PaymentModeID": 1,
    "ReturnedTyped": 1,
    "IsReceived": true,
    "IsReturned": true,
    "isReturnVisible": "sample string 11",
    "ExchangeRateID": 1,
    "CurrentExchangeRate": 1.0,
    "OutletID": 1,
    "Outlet": "sample string 12",
    "OpenPurchaseID": 1,
    "ExchangeRate": "sample string 13",
    "IsHoldPurchase": true,
    "PurchasesDetails": [
      {
        "ID": 1,
        "Product": "sample string 2",
        "Image": "sample string 3",
        "Description": "sample string 4",
        "ProductVariant": "sample string 5",
        "PurchaseID": 1,
        "ProductID": 1,
        "ProductVariantID": 1,
        "ProductUnitPrice": 6.0,
        "ProductUnitPriceString": "sample string 7",
        "OriginalQuantity": 1,
        "Quantity": 1,
        "dTotalAmount": 1.0,
        "dTotalAmountFC": 1.0,
        "Keenland": "sample string 8",
        "IsKeenlandExists": true,
        "dTotalAmountString": "sample string 9",
        "TaxAmount": 1.0,
        "TaxAmountFC": 1.0,
        "VPSalePrice": 1.0,
        "ShopSalePrice": 1.0,
        "TaxAmountString": "sample string 10",
        "dTotalDiscount": 1.0,
        "dTotalDiscountFC": 1.0,
        "dTotalDiscountValue": 1.0,
        "dTotalDiscountValueFC": 1.0,
        "dTotalDiscountValueString": "sample string 11",
        "IsActive": true,
        "IsTrackableVisibility": "sample string 12",
        "ReturnedTyped": 1,
        "IsReturned": true,
        "ReturnedQuantity": 1,
        "isReturnProductChecked": true,
        "ProductPrice": 14.0,
        "ProductPriceString": "sample string 15",
        "BLabel": "sample string 16",
        "ManufacturerCode": "sample string 17",
        "NonTrackableLocations": [
          {
            "NonTrackableProductLocationID": 1,
            "ProductID": 1,
            "ProductVariantID": 1,
            "PurchaseDetailID": 1,
            "LevelID": 1,
            "Quantity": 1,
            "Location": "sample string 2"
          },
          {
            "NonTrackableProductLocationID": 1,
            "ProductID": 1,
            "ProductVariantID": 1,
            "PurchaseDetailID": 1,
            "LevelID": 1,
            "Quantity": 1,
            "Location": "sample string 2"
          }
        ],
        "TrackableProductsPurchaseDetails": [
          {
            "ID": 1,
            "PurchaseDetailID": 1,
            "ProductID": 1,
            "ProductVariantID": 1,
            "Product": "sample string 2",
            "ProductVariant": "sample string 3",
            "TrackableCode": "sample string 4",
            "CreatedAt": "2025-01-22T21:00:51.0022707-06:00",
            "IsReturned": true,
            "IsReturnedItem": true
          },
          {
            "ID": 1,
            "PurchaseDetailID": 1,
            "ProductID": 1,
            "ProductVariantID": 1,
            "Product": "sample string 2",
            "ProductVariant": "sample string 3",
            "TrackableCode": "sample string 4",
            "CreatedAt": "2025-01-22T21:00:51.0022707-06:00",
            "IsReturned": true,
            "IsReturnedItem": true
          }
        ]
      },
      {
        "ID": 1,
        "Product": "sample string 2",
        "Image": "sample string 3",
        "Description": "sample string 4",
        "ProductVariant": "sample string 5",
        "PurchaseID": 1,
        "ProductID": 1,
        "ProductVariantID": 1,
        "ProductUnitPrice": 6.0,
        "ProductUnitPriceString": "sample string 7",
        "OriginalQuantity": 1,
        "Quantity": 1,
        "dTotalAmount": 1.0,
        "dTotalAmountFC": 1.0,
        "Keenland": "sample string 8",
        "IsKeenlandExists": true,
        "dTotalAmountString": "sample string 9",
        "TaxAmount": 1.0,
        "TaxAmountFC": 1.0,
        "VPSalePrice": 1.0,
        "ShopSalePrice": 1.0,
        "TaxAmountString": "sample string 10",
        "dTotalDiscount": 1.0,
        "dTotalDiscountFC": 1.0,
        "dTotalDiscountValue": 1.0,
        "dTotalDiscountValueFC": 1.0,
        "dTotalDiscountValueString": "sample string 11",
        "IsActive": true,
        "IsTrackableVisibility": "sample string 12",
        "ReturnedTyped": 1,
        "IsReturned": true,
        "ReturnedQuantity": 1,
        "isReturnProductChecked": true,
        "ProductPrice": 14.0,
        "ProductPriceString": "sample string 15",
        "BLabel": "sample string 16",
        "ManufacturerCode": "sample string 17",
        "NonTrackableLocations": [
          {
            "NonTrackableProductLocationID": 1,
            "ProductID": 1,
            "ProductVariantID": 1,
            "PurchaseDetailID": 1,
            "LevelID": 1,
            "Quantity": 1,
            "Location": "sample string 2"
          },
          {
            "NonTrackableProductLocationID": 1,
            "ProductID": 1,
            "ProductVariantID": 1,
            "PurchaseDetailID": 1,
            "LevelID": 1,
            "Quantity": 1,
            "Location": "sample string 2"
          }
        ],
        "TrackableProductsPurchaseDetails": [
          {
            "ID": 1,
            "PurchaseDetailID": 1,
            "ProductID": 1,
            "ProductVariantID": 1,
            "Product": "sample string 2",
            "ProductVariant": "sample string 3",
            "TrackableCode": "sample string 4",
            "CreatedAt": "2025-01-22T21:00:51.0022707-06:00",
            "IsReturned": true,
            "IsReturnedItem": true
          },
          {
            "ID": 1,
            "PurchaseDetailID": 1,
            "ProductID": 1,
            "ProductVariantID": 1,
            "Product": "sample string 2",
            "ProductVariant": "sample string 3",
            "TrackableCode": "sample string 4",
            "CreatedAt": "2025-01-22T21:00:51.0022707-06:00",
            "IsReturned": true,
            "IsReturnedItem": true
          }
        ]
      }
    ],
    "StockHistories": [
      {
        "ID": 1,
        "Product": "sample string 2",
        "ProductVariant": "sample string 3",
        "TotalStock": 1,
        "RemainingStock": 1,
        "HoldStock": 1,
        "SalePrice": 1.0,
        "PurchasePrice": 1.0,
        "SalePriceString": "sample string 4",
        "PurchasePriceString": "sample string 5",
        "ProductID": 1,
        "ProductVariantID": 1,
        "PurchaseID": 1,
        "PurchaseDate": "2025-01-22T21:00:51.0022707-06:00",
        "PurchaseDateString": "sample string 6",
        "CreateAt": "2025-01-22T21:00:51.0022707-06:00",
        "UpdatedAt": "2025-01-22T21:00:51.0022707-06:00",
        "IsActive": true,
        "By": "sample string 7"
      },
      {
        "ID": 1,
        "Product": "sample string 2",
        "ProductVariant": "sample string 3",
        "TotalStock": 1,
        "RemainingStock": 1,
        "HoldStock": 1,
        "SalePrice": 1.0,
        "PurchasePrice": 1.0,
        "SalePriceString": "sample string 4",
        "PurchasePriceString": "sample string 5",
        "ProductID": 1,
        "ProductVariantID": 1,
        "PurchaseID": 1,
        "PurchaseDate": "2025-01-22T21:00:51.0022707-06:00",
        "PurchaseDateString": "sample string 6",
        "CreateAt": "2025-01-22T21:00:51.0022707-06:00",
        "UpdatedAt": "2025-01-22T21:00:51.0022707-06:00",
        "IsActive": true,
        "By": "sample string 7"
      }
    ],
    "PurchaseTaxDetails": {
      "ID": 1,
      "PurchaseID": 2,
      "dTotalTaxAmount": 1.0,
      "IsWithHolding": true,
      "CreatedAt": "2025-01-22T21:00:51.0022707-06:00"
    }
  },
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<GetPurchaseByIDResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.Response">
  <ResponseCode xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">1</ResponseCode>
  <ResponseText xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">sample string 2</ResponseText>
  <PurchaseModel xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
    <d2p1:CreatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:CreatedAt>
    <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID>
    <d2p1:CurrentExchangeRate>1</d2p1:CurrentExchangeRate>
    <d2p1:DueDate>2025-01-22T21:00:51.0022707-06:00</d2p1:DueDate>
    <d2p1:DueDateString>sample string 9</d2p1:DueDateString>
    <d2p1:ExchangeRate>sample string 13</d2p1:ExchangeRate>
    <d2p1:ExchangeRateID>1</d2p1:ExchangeRateID>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:IsHoldPurchase>true</d2p1:IsHoldPurchase>
    <d2p1:IsReceived>true</d2p1:IsReceived>
    <d2p1:IsReturned>true</d2p1:IsReturned>
    <d2p1:OpenPurchaseID>1</d2p1:OpenPurchaseID>
    <d2p1:Outlet>sample string 12</d2p1:Outlet>
    <d2p1:OutletID>1</d2p1:OutletID>
    <d2p1:PaymentMode>sample string 4</d2p1:PaymentMode>
    <d2p1:PaymentModeID>1</d2p1:PaymentModeID>
    <d2p1:PurchaseDate>2025-01-22T21:00:51.0022707-06:00</d2p1:PurchaseDate>
    <d2p1:PurchaseDateString>sample string 8</d2p1:PurchaseDateString>
    <d2p1:PurchaseTaxDetails>
      <d2p1:CreatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:CreatedAt>
      <d2p1:ID>1</d2p1:ID>
      <d2p1:IsWithHolding>true</d2p1:IsWithHolding>
      <d2p1:PurchaseID>2</d2p1:PurchaseID>
      <d2p1:dTotalTaxAmount>1</d2p1:dTotalTaxAmount>
    </d2p1:PurchaseTaxDetails>
    <d2p1:PurchasesDetails>
      <d2p1:PurchaseDetailModel>
        <d2p1:BLabel>sample string 16</d2p1:BLabel>
        <d2p1:Description>sample string 4</d2p1:Description>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:Image>sample string 3</d2p1:Image>
        <d2p1:IsActive>true</d2p1:IsActive>
        <d2p1:IsKeenlandExists>true</d2p1:IsKeenlandExists>
        <d2p1:IsReturned>true</d2p1:IsReturned>
        <d2p1:IsTrackableVisibility>sample string 12</d2p1:IsTrackableVisibility>
        <d2p1:Keenland>sample string 8</d2p1:Keenland>
        <d2p1:ManufacturerCode>sample string 17</d2p1:ManufacturerCode>
        <d2p1:NonTrackableLocations>
          <d2p1:NonTrackableLocationModel>
            <d2p1:LevelID>1</d2p1:LevelID>
            <d2p1:Location>sample string 2</d2p1:Location>
            <d2p1:NonTrackableProductLocationID>1</d2p1:NonTrackableProductLocationID>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:PurchaseDetailID>1</d2p1:PurchaseDetailID>
            <d2p1:Quantity>1</d2p1:Quantity>
          </d2p1:NonTrackableLocationModel>
          <d2p1:NonTrackableLocationModel>
            <d2p1:LevelID>1</d2p1:LevelID>
            <d2p1:Location>sample string 2</d2p1:Location>
            <d2p1:NonTrackableProductLocationID>1</d2p1:NonTrackableProductLocationID>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:PurchaseDetailID>1</d2p1:PurchaseDetailID>
            <d2p1:Quantity>1</d2p1:Quantity>
          </d2p1:NonTrackableLocationModel>
        </d2p1:NonTrackableLocations>
        <d2p1:OriginalQuantity>1</d2p1:OriginalQuantity>
        <d2p1:Product>sample string 2</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductPrice>14</d2p1:ProductPrice>
        <d2p1:ProductPriceString>sample string 15</d2p1:ProductPriceString>
        <d2p1:ProductUnitPrice>6</d2p1:ProductUnitPrice>
        <d2p1:ProductUnitPriceString>sample string 7</d2p1:ProductUnitPriceString>
        <d2p1:ProductVariant>sample string 5</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:PurchaseID>1</d2p1:PurchaseID>
        <d2p1:Quantity>1</d2p1:Quantity>
        <d2p1:ReturnedQuantity>1</d2p1:ReturnedQuantity>
        <d2p1:ReturnedTyped>1</d2p1:ReturnedTyped>
        <d2p1:ShopSalePrice>1</d2p1:ShopSalePrice>
        <d2p1:TaxAmount>1</d2p1:TaxAmount>
        <d2p1:TaxAmountFC>1</d2p1:TaxAmountFC>
        <d2p1:TaxAmountString>sample string 10</d2p1:TaxAmountString>
        <d2p1:TrackableProductsPurchaseDetails>
          <d2p1:TrackableProductsPurchaseDetailModel>
            <d2p1:CreatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:CreatedAt>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:IsReturned>true</d2p1:IsReturned>
            <d2p1:IsReturnedItem>true</d2p1:IsReturnedItem>
            <d2p1:Product>sample string 2</d2p1:Product>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:PurchaseDetailID>1</d2p1:PurchaseDetailID>
            <d2p1:TrackableCode>sample string 4</d2p1:TrackableCode>
          </d2p1:TrackableProductsPurchaseDetailModel>
          <d2p1:TrackableProductsPurchaseDetailModel>
            <d2p1:CreatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:CreatedAt>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:IsReturned>true</d2p1:IsReturned>
            <d2p1:IsReturnedItem>true</d2p1:IsReturnedItem>
            <d2p1:Product>sample string 2</d2p1:Product>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:PurchaseDetailID>1</d2p1:PurchaseDetailID>
            <d2p1:TrackableCode>sample string 4</d2p1:TrackableCode>
          </d2p1:TrackableProductsPurchaseDetailModel>
        </d2p1:TrackableProductsPurchaseDetails>
        <d2p1:VPSalePrice>1</d2p1:VPSalePrice>
        <d2p1:dTotalAmount>1</d2p1:dTotalAmount>
        <d2p1:dTotalAmountFC>1</d2p1:dTotalAmountFC>
        <d2p1:dTotalAmountString>sample string 9</d2p1:dTotalAmountString>
        <d2p1:dTotalDiscount>1</d2p1:dTotalDiscount>
        <d2p1:dTotalDiscountFC>1</d2p1:dTotalDiscountFC>
        <d2p1:dTotalDiscountValue>1</d2p1:dTotalDiscountValue>
        <d2p1:dTotalDiscountValueFC>1</d2p1:dTotalDiscountValueFC>
        <d2p1:dTotalDiscountValueString>sample string 11</d2p1:dTotalDiscountValueString>
        <d2p1:isReturnProductChecked>true</d2p1:isReturnProductChecked>
      </d2p1:PurchaseDetailModel>
      <d2p1:PurchaseDetailModel>
        <d2p1:BLabel>sample string 16</d2p1:BLabel>
        <d2p1:Description>sample string 4</d2p1:Description>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:Image>sample string 3</d2p1:Image>
        <d2p1:IsActive>true</d2p1:IsActive>
        <d2p1:IsKeenlandExists>true</d2p1:IsKeenlandExists>
        <d2p1:IsReturned>true</d2p1:IsReturned>
        <d2p1:IsTrackableVisibility>sample string 12</d2p1:IsTrackableVisibility>
        <d2p1:Keenland>sample string 8</d2p1:Keenland>
        <d2p1:ManufacturerCode>sample string 17</d2p1:ManufacturerCode>
        <d2p1:NonTrackableLocations>
          <d2p1:NonTrackableLocationModel>
            <d2p1:LevelID>1</d2p1:LevelID>
            <d2p1:Location>sample string 2</d2p1:Location>
            <d2p1:NonTrackableProductLocationID>1</d2p1:NonTrackableProductLocationID>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:PurchaseDetailID>1</d2p1:PurchaseDetailID>
            <d2p1:Quantity>1</d2p1:Quantity>
          </d2p1:NonTrackableLocationModel>
          <d2p1:NonTrackableLocationModel>
            <d2p1:LevelID>1</d2p1:LevelID>
            <d2p1:Location>sample string 2</d2p1:Location>
            <d2p1:NonTrackableProductLocationID>1</d2p1:NonTrackableProductLocationID>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:PurchaseDetailID>1</d2p1:PurchaseDetailID>
            <d2p1:Quantity>1</d2p1:Quantity>
          </d2p1:NonTrackableLocationModel>
        </d2p1:NonTrackableLocations>
        <d2p1:OriginalQuantity>1</d2p1:OriginalQuantity>
        <d2p1:Product>sample string 2</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductPrice>14</d2p1:ProductPrice>
        <d2p1:ProductPriceString>sample string 15</d2p1:ProductPriceString>
        <d2p1:ProductUnitPrice>6</d2p1:ProductUnitPrice>
        <d2p1:ProductUnitPriceString>sample string 7</d2p1:ProductUnitPriceString>
        <d2p1:ProductVariant>sample string 5</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:PurchaseID>1</d2p1:PurchaseID>
        <d2p1:Quantity>1</d2p1:Quantity>
        <d2p1:ReturnedQuantity>1</d2p1:ReturnedQuantity>
        <d2p1:ReturnedTyped>1</d2p1:ReturnedTyped>
        <d2p1:ShopSalePrice>1</d2p1:ShopSalePrice>
        <d2p1:TaxAmount>1</d2p1:TaxAmount>
        <d2p1:TaxAmountFC>1</d2p1:TaxAmountFC>
        <d2p1:TaxAmountString>sample string 10</d2p1:TaxAmountString>
        <d2p1:TrackableProductsPurchaseDetails>
          <d2p1:TrackableProductsPurchaseDetailModel>
            <d2p1:CreatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:CreatedAt>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:IsReturned>true</d2p1:IsReturned>
            <d2p1:IsReturnedItem>true</d2p1:IsReturnedItem>
            <d2p1:Product>sample string 2</d2p1:Product>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:PurchaseDetailID>1</d2p1:PurchaseDetailID>
            <d2p1:TrackableCode>sample string 4</d2p1:TrackableCode>
          </d2p1:TrackableProductsPurchaseDetailModel>
          <d2p1:TrackableProductsPurchaseDetailModel>
            <d2p1:CreatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:CreatedAt>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:IsReturned>true</d2p1:IsReturned>
            <d2p1:IsReturnedItem>true</d2p1:IsReturnedItem>
            <d2p1:Product>sample string 2</d2p1:Product>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:PurchaseDetailID>1</d2p1:PurchaseDetailID>
            <d2p1:TrackableCode>sample string 4</d2p1:TrackableCode>
          </d2p1:TrackableProductsPurchaseDetailModel>
        </d2p1:TrackableProductsPurchaseDetails>
        <d2p1:VPSalePrice>1</d2p1:VPSalePrice>
        <d2p1:dTotalAmount>1</d2p1:dTotalAmount>
        <d2p1:dTotalAmountFC>1</d2p1:dTotalAmountFC>
        <d2p1:dTotalAmountString>sample string 9</d2p1:dTotalAmountString>
        <d2p1:dTotalDiscount>1</d2p1:dTotalDiscount>
        <d2p1:dTotalDiscountFC>1</d2p1:dTotalDiscountFC>
        <d2p1:dTotalDiscountValue>1</d2p1:dTotalDiscountValue>
        <d2p1:dTotalDiscountValueFC>1</d2p1:dTotalDiscountValueFC>
        <d2p1:dTotalDiscountValueString>sample string 11</d2p1:dTotalDiscountValueString>
        <d2p1:isReturnProductChecked>true</d2p1:isReturnProductChecked>
      </d2p1:PurchaseDetailModel>
    </d2p1:PurchasesDetails>
    <d2p1:ReturnedTyped>1</d2p1:ReturnedTyped>
    <d2p1:StockHistories>
      <d2p1:StockHistoryModel>
        <d2p1:By>sample string 7</d2p1:By>
        <d2p1:CreateAt>2025-01-22T21:00:51.0022707-06:00</d2p1:CreateAt>
        <d2p1:HoldStock>1</d2p1:HoldStock>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsActive>true</d2p1:IsActive>
        <d2p1:Product>sample string 2</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:PurchaseDate>2025-01-22T21:00:51.0022707-06:00</d2p1:PurchaseDate>
        <d2p1:PurchaseDateString>sample string 6</d2p1:PurchaseDateString>
        <d2p1:PurchaseID>1</d2p1:PurchaseID>
        <d2p1:PurchasePrice>1</d2p1:PurchasePrice>
        <d2p1:PurchasePriceString>sample string 5</d2p1:PurchasePriceString>
        <d2p1:RemainingStock>1</d2p1:RemainingStock>
        <d2p1:SalePrice>1</d2p1:SalePrice>
        <d2p1:SalePriceString>sample string 4</d2p1:SalePriceString>
        <d2p1:TotalStock>1</d2p1:TotalStock>
        <d2p1:UpdatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:UpdatedAt>
      </d2p1:StockHistoryModel>
      <d2p1:StockHistoryModel>
        <d2p1:By>sample string 7</d2p1:By>
        <d2p1:CreateAt>2025-01-22T21:00:51.0022707-06:00</d2p1:CreateAt>
        <d2p1:HoldStock>1</d2p1:HoldStock>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsActive>true</d2p1:IsActive>
        <d2p1:Product>sample string 2</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductVariant>sample string 3</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:PurchaseDate>2025-01-22T21:00:51.0022707-06:00</d2p1:PurchaseDate>
        <d2p1:PurchaseDateString>sample string 6</d2p1:PurchaseDateString>
        <d2p1:PurchaseID>1</d2p1:PurchaseID>
        <d2p1:PurchasePrice>1</d2p1:PurchasePrice>
        <d2p1:PurchasePriceString>sample string 5</d2p1:PurchasePriceString>
        <d2p1:RemainingStock>1</d2p1:RemainingStock>
        <d2p1:SalePrice>1</d2p1:SalePrice>
        <d2p1:SalePriceString>sample string 4</d2p1:SalePriceString>
        <d2p1:TotalStock>1</d2p1:TotalStock>
        <d2p1:UpdatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:UpdatedAt>
      </d2p1:StockHistoryModel>
    </d2p1:StockHistories>
    <d2p1:SuppierInvoiceNo>sample string 2</d2p1:SuppierInvoiceNo>
    <d2p1:Supplier>sample string 3</d2p1:Supplier>
    <d2p1:SupplierID>1</d2p1:SupplierID>
    <d2p1:UpdatedAt>2025-01-22T21:00:51.0022707-06:00</d2p1:UpdatedAt>
    <d2p1:dDiscountPercentage>1</d2p1:dDiscountPercentage>
    <d2p1:dDiscountValue>1</d2p1:dDiscountValue>
    <d2p1:dDiscountValueFC>1</d2p1:dDiscountValueFC>
    <d2p1:dDiscountValueString>sample string 6</d2p1:dDiscountValueString>
    <d2p1:dTotalPaidValue>1</d2p1:dTotalPaidValue>
    <d2p1:dTotalPaidValueFC>1</d2p1:dTotalPaidValueFC>
    <d2p1:dTotalPaidValueString>sample string 7</d2p1:dTotalPaidValueString>
    <d2p1:dTotalPurchaseValue>1</d2p1:dTotalPurchaseValue>
    <d2p1:dTotalPurchaseValueFC>1</d2p1:dTotalPurchaseValueFC>
    <d2p1:dTotalPurchaseValueString>sample string 5</d2p1:dTotalPurchaseValueString>
    <d2p1:isReturnVisible>sample string 11</d2p1:isReturnVisible>
    <d2p1:sRemarks>sample string 10</d2p1:sRemarks>
  </PurchaseModel>
</GetPurchaseByIDResponse>