POST api/Sale/Add

Request Information

URI Parameters

None.

Body Parameters

SaleModel
NameDescriptionTypeAdditional information
ID

integer

None.

CustomerID

integer

None.

SaleDate

date

None.

DueDate

date

None.

PaymentModeID

integer

None.

dDiscountPercentage

decimal number

None.

dDiscountValue

decimal number

None.

dTotalSaleValue

decimal number

None.

dTotalPaidValue

decimal number

None.

dDiscountValueString

string

None.

dTotalSaleValueString

string

None.

dTotalPaidValueString

string

None.

ReturnedTyped

integer

None.

IsReturned

boolean

None.

IsOnlineOrder

boolean

None.

IsPrinted

boolean

None.

IsLabelCreated

boolean

None.

sRemarks

string

None.

CreatedAt

date

None.

UpdatedAt

date

None.

CreatedByUserID

integer

None.

dtDate

date

None.

CreatedAtString

string

None.

CashRegisterHistoryID

integer

None.

OutletID

integer

None.

CashRegister

string

None.

Outlet

string

None.

IsAssignedToDeliveryPerson

boolean

None.

Customer

string

None.

PaymentMode

string

None.

isReturnVisible

string

None.

SaleDetails

Collection of SaleDetailModel

None.

IsInvoiceCreated

boolean

None.

IsTraceable

boolean

None.

IsRefundable

boolean

None.

IsShipped

boolean

None.

PaymentConditionID

integer

None.

PaymentCondition

string

None.

DeliveredToID

integer

None.

DeliveredTo

string

None.

TypeID

integer

None.

Type

string

None.

ShippingMethodID

integer

None.

ShippingCost

decimal number

None.

ShippingMethod

string

None.

SaleInvoiceNo

string

None.

DeliveryAddressID

integer

None.

SlipUrl

string

None.

InvoiceUrl

string

None.

DeliveryAddress

string

None.

InvoiceAddressID

integer

None.

InvoiceAddress

string

None.

NGB

decimal number

None.

PerfomaSaleID

integer

None.

IsFromPerfomaSale

boolean

None.

isInvoiceSelected

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "CustomerID": 1,
  "SaleDate": "2025-01-22T21:10:13.2156032-06:00",
  "DueDate": "2025-01-22T21:10:13.2156032-06:00",
  "PaymentModeID": 1,
  "dDiscountPercentage": 1.0,
  "dDiscountValue": 1.0,
  "dTotalSaleValue": 1.0,
  "dTotalPaidValue": 1.0,
  "dDiscountValueString": "sample string 2",
  "dTotalSaleValueString": "sample string 3",
  "dTotalPaidValueString": "sample string 4",
  "ReturnedTyped": 1,
  "IsReturned": true,
  "IsOnlineOrder": true,
  "IsPrinted": true,
  "IsLabelCreated": true,
  "sRemarks": "sample string 5",
  "CreatedAt": "2025-01-22T21:10:13.2156032-06:00",
  "UpdatedAt": "2025-01-22T21:10:13.2156032-06:00",
  "CreatedByUserID": 1,
  "dtDate": "2025-01-22T21:10:13.2156032-06:00",
  "CreatedAtString": "sample string 6",
  "CashRegisterHistoryID": 1,
  "OutletID": 1,
  "CashRegister": "sample string 7",
  "Outlet": "sample string 8",
  "IsAssignedToDeliveryPerson": true,
  "Customer": "sample string 9",
  "PaymentMode": "sample string 10",
  "isReturnVisible": "sample string 11",
  "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:13.2156032-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:13.2156032-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:13.2156032-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:13.2156032-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"
    }
  ],
  "IsInvoiceCreated": true,
  "IsTraceable": true,
  "IsRefundable": true,
  "IsShipped": true,
  "PaymentConditionID": 1,
  "PaymentCondition": "sample string 12",
  "DeliveredToID": 1,
  "DeliveredTo": "sample string 13",
  "TypeID": 1,
  "Type": "sample string 14",
  "ShippingMethodID": 1,
  "ShippingCost": 1.0,
  "ShippingMethod": "sample string 15",
  "SaleInvoiceNo": "sample string 16",
  "DeliveryAddressID": 1,
  "SlipUrl": "sample string 17",
  "InvoiceUrl": "sample string 18",
  "DeliveryAddress": "sample string 19",
  "InvoiceAddressID": 1,
  "InvoiceAddress": "sample string 20",
  "NGB": 21.0,
  "PerfomaSaleID": 1,
  "IsFromPerfomaSale": true,
  "isInvoiceSelected": true
}

application/xml, text/xml

Sample:
<SaleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
  <CashRegister>sample string 7</CashRegister>
  <CashRegisterHistoryID>1</CashRegisterHistoryID>
  <CreatedAt>2025-01-22T21:10:13.2156032-06:00</CreatedAt>
  <CreatedAtString>sample string 6</CreatedAtString>
  <CreatedByUserID>1</CreatedByUserID>
  <Customer>sample string 9</Customer>
  <CustomerID>1</CustomerID>
  <DeliveredTo>sample string 13</DeliveredTo>
  <DeliveredToID>1</DeliveredToID>
  <DeliveryAddress>sample string 19</DeliveryAddress>
  <DeliveryAddressID>1</DeliveryAddressID>
  <DueDate>2025-01-22T21:10:13.2156032-06:00</DueDate>
  <ID>1</ID>
  <InvoiceAddress>sample string 20</InvoiceAddress>
  <InvoiceAddressID>1</InvoiceAddressID>
  <InvoiceUrl>sample string 18</InvoiceUrl>
  <IsAssignedToDeliveryPerson>true</IsAssignedToDeliveryPerson>
  <IsFromPerfomaSale>true</IsFromPerfomaSale>
  <IsInvoiceCreated>true</IsInvoiceCreated>
  <IsLabelCreated>true</IsLabelCreated>
  <IsOnlineOrder>true</IsOnlineOrder>
  <IsPrinted>true</IsPrinted>
  <IsRefundable>true</IsRefundable>
  <IsReturned>true</IsReturned>
  <IsShipped>true</IsShipped>
  <IsTraceable>true</IsTraceable>
  <NGB>21</NGB>
  <Outlet>sample string 8</Outlet>
  <OutletID>1</OutletID>
  <PaymentCondition>sample string 12</PaymentCondition>
  <PaymentConditionID>1</PaymentConditionID>
  <PaymentMode>sample string 10</PaymentMode>
  <PaymentModeID>1</PaymentModeID>
  <PerfomaSaleID>1</PerfomaSaleID>
  <ReturnedTyped>1</ReturnedTyped>
  <SaleDate>2025-01-22T21:10:13.2156032-06:00</SaleDate>
  <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:13.2156032-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:13.2156032-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:13.2156032-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:13.2156032-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>
  <SaleInvoiceNo>sample string 16</SaleInvoiceNo>
  <ShippingCost>1</ShippingCost>
  <ShippingMethod>sample string 15</ShippingMethod>
  <ShippingMethodID>1</ShippingMethodID>
  <SlipUrl>sample string 17</SlipUrl>
  <Type>sample string 14</Type>
  <TypeID>1</TypeID>
  <UpdatedAt>2025-01-22T21:10:13.2156032-06:00</UpdatedAt>
  <dDiscountPercentage>1</dDiscountPercentage>
  <dDiscountValue>1</dDiscountValue>
  <dDiscountValueString>sample string 2</dDiscountValueString>
  <dTotalPaidValue>1</dTotalPaidValue>
  <dTotalPaidValueString>sample string 4</dTotalPaidValueString>
  <dTotalSaleValue>1</dTotalSaleValue>
  <dTotalSaleValueString>sample string 3</dTotalSaleValueString>
  <dtDate>2025-01-22T21:10:13.2156032-06:00</dtDate>
  <isInvoiceSelected>true</isInvoiceSelected>
  <isReturnVisible>sample string 11</isReturnVisible>
  <sRemarks>sample string 5</sRemarks>
</SaleModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SaleResponse
NameDescriptionTypeAdditional information
Sale

SaleModel

None.

ResponseCode

integer

None.

ResponseText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Sale": {
    "ID": 1,
    "CustomerID": 1,
    "SaleDate": "2025-01-22T21:10:13.2312283-06:00",
    "DueDate": "2025-01-22T21:10:13.2312283-06:00",
    "PaymentModeID": 1,
    "dDiscountPercentage": 1.0,
    "dDiscountValue": 1.0,
    "dTotalSaleValue": 1.0,
    "dTotalPaidValue": 1.0,
    "dDiscountValueString": "sample string 2",
    "dTotalSaleValueString": "sample string 3",
    "dTotalPaidValueString": "sample string 4",
    "ReturnedTyped": 1,
    "IsReturned": true,
    "IsOnlineOrder": true,
    "IsPrinted": true,
    "IsLabelCreated": true,
    "sRemarks": "sample string 5",
    "CreatedAt": "2025-01-22T21:10:13.2312283-06:00",
    "UpdatedAt": "2025-01-22T21:10:13.2312283-06:00",
    "CreatedByUserID": 1,
    "dtDate": "2025-01-22T21:10:13.2312283-06:00",
    "CreatedAtString": "sample string 6",
    "CashRegisterHistoryID": 1,
    "OutletID": 1,
    "CashRegister": "sample string 7",
    "Outlet": "sample string 8",
    "IsAssignedToDeliveryPerson": true,
    "Customer": "sample string 9",
    "PaymentMode": "sample string 10",
    "isReturnVisible": "sample string 11",
    "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:13.2312283-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:13.2312283-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:13.2312283-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:13.2312283-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"
      }
    ],
    "IsInvoiceCreated": true,
    "IsTraceable": true,
    "IsRefundable": true,
    "IsShipped": true,
    "PaymentConditionID": 1,
    "PaymentCondition": "sample string 12",
    "DeliveredToID": 1,
    "DeliveredTo": "sample string 13",
    "TypeID": 1,
    "Type": "sample string 14",
    "ShippingMethodID": 1,
    "ShippingCost": 1.0,
    "ShippingMethod": "sample string 15",
    "SaleInvoiceNo": "sample string 16",
    "DeliveryAddressID": 1,
    "SlipUrl": "sample string 17",
    "InvoiceUrl": "sample string 18",
    "DeliveryAddress": "sample string 19",
    "InvoiceAddressID": 1,
    "InvoiceAddress": "sample string 20",
    "NGB": 21.0,
    "PerfomaSaleID": 1,
    "IsFromPerfomaSale": true,
    "isInvoiceSelected": true
  },
  "ResponseCode": 1,
  "ResponseText": "sample string 2"
}

application/xml, text/xml

Sample:
<SaleResponse 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>
  <Sale xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel">
    <d2p1:CashRegister>sample string 7</d2p1:CashRegister>
    <d2p1:CashRegisterHistoryID>1</d2p1:CashRegisterHistoryID>
    <d2p1:CreatedAt>2025-01-22T21:10:13.2312283-06:00</d2p1:CreatedAt>
    <d2p1:CreatedAtString>sample string 6</d2p1:CreatedAtString>
    <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID>
    <d2p1:Customer>sample string 9</d2p1:Customer>
    <d2p1:CustomerID>1</d2p1:CustomerID>
    <d2p1:DeliveredTo>sample string 13</d2p1:DeliveredTo>
    <d2p1:DeliveredToID>1</d2p1:DeliveredToID>
    <d2p1:DeliveryAddress>sample string 19</d2p1:DeliveryAddress>
    <d2p1:DeliveryAddressID>1</d2p1:DeliveryAddressID>
    <d2p1:DueDate>2025-01-22T21:10:13.2312283-06:00</d2p1:DueDate>
    <d2p1:ID>1</d2p1:ID>
    <d2p1:InvoiceAddress>sample string 20</d2p1:InvoiceAddress>
    <d2p1:InvoiceAddressID>1</d2p1:InvoiceAddressID>
    <d2p1:InvoiceUrl>sample string 18</d2p1:InvoiceUrl>
    <d2p1:IsAssignedToDeliveryPerson>true</d2p1:IsAssignedToDeliveryPerson>
    <d2p1:IsFromPerfomaSale>true</d2p1:IsFromPerfomaSale>
    <d2p1:IsInvoiceCreated>true</d2p1:IsInvoiceCreated>
    <d2p1:IsLabelCreated>true</d2p1:IsLabelCreated>
    <d2p1:IsOnlineOrder>true</d2p1:IsOnlineOrder>
    <d2p1:IsPrinted>true</d2p1:IsPrinted>
    <d2p1:IsRefundable>true</d2p1:IsRefundable>
    <d2p1:IsReturned>true</d2p1:IsReturned>
    <d2p1:IsShipped>true</d2p1:IsShipped>
    <d2p1:IsTraceable>true</d2p1:IsTraceable>
    <d2p1:NGB>21</d2p1:NGB>
    <d2p1:Outlet>sample string 8</d2p1:Outlet>
    <d2p1:OutletID>1</d2p1:OutletID>
    <d2p1:PaymentCondition>sample string 12</d2p1:PaymentCondition>
    <d2p1:PaymentConditionID>1</d2p1:PaymentConditionID>
    <d2p1:PaymentMode>sample string 10</d2p1:PaymentMode>
    <d2p1:PaymentModeID>1</d2p1:PaymentModeID>
    <d2p1:PerfomaSaleID>1</d2p1:PerfomaSaleID>
    <d2p1:ReturnedTyped>1</d2p1:ReturnedTyped>
    <d2p1:SaleDate>2025-01-22T21:10:13.2312283-06:00</d2p1:SaleDate>
    <d2p1:SaleDetails>
      <d2p1:SaleDetailModel>
        <d2p1:BLabel>sample string 9</d2p1:BLabel>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsKeenlandExists>true</d2p1:IsKeenlandExists>
        <d2p1:IsReturned>true</d2p1:IsReturned>
        <d2p1:Keenland>sample string 2</d2p1:Keenland>
        <d2p1:ManufacturerCode>sample string 11</d2p1:ManufacturerCode>
        <d2p1:OriginalQuantity>1</d2p1:OriginalQuantity>
        <d2p1:Product>sample string 3</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductImage>sample string 10</d2p1:ProductImage>
        <d2p1:ProductPrice>1</d2p1:ProductPrice>
        <d2p1:ProductPriceString>sample string 5</d2p1:ProductPriceString>
        <d2p1:ProductQRCode>sample string 8</d2p1:ProductQRCode>
        <d2p1:ProductVariant>sample string 4</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:ProductVarientBarCode>sample string 7</d2p1:ProductVarientBarCode>
        <d2p1:Quantity>1</d2p1:Quantity>
        <d2p1:ReturnedQuantity>1</d2p1:ReturnedQuantity>
        <d2p1:ReturnedTyped>1</d2p1:ReturnedTyped>
        <d2p1:SaleDetailNonTrackableLocations>
          <d2p1:SaleDetailNonTrackableLocationModel>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:LevelID>1</d2p1:LevelID>
            <d2p1:Location>sample string 2</d2p1:Location>
            <d2p1:NonTrackableProductsLocationID>1</d2p1:NonTrackableProductsLocationID>
            <d2p1:Quantity>1</d2p1:Quantity>
            <d2p1:SaleDetailID>1</d2p1:SaleDetailID>
          </d2p1:SaleDetailNonTrackableLocationModel>
          <d2p1:SaleDetailNonTrackableLocationModel>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:LevelID>1</d2p1:LevelID>
            <d2p1:Location>sample string 2</d2p1:Location>
            <d2p1:NonTrackableProductsLocationID>1</d2p1:NonTrackableProductsLocationID>
            <d2p1:Quantity>1</d2p1:Quantity>
            <d2p1:SaleDetailID>1</d2p1:SaleDetailID>
          </d2p1:SaleDetailNonTrackableLocationModel>
        </d2p1:SaleDetailNonTrackableLocations>
        <d2p1:SaleID>1</d2p1:SaleID>
        <d2p1:TaxAmount>1</d2p1:TaxAmount>
        <d2p1:TaxPer>1</d2p1:TaxPer>
        <d2p1:TrackableProductsSaleDetails>
          <d2p1:TrackableProductsSaleDetailModel>
            <d2p1:CreatedAt>2025-01-22T21:10:13.2312283-06:00</d2p1:CreatedAt>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:IsReturned>true</d2p1:IsReturned>
            <d2p1:Product>sample string 3</d2p1:Product>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariant>sample string 4</d2p1:ProductVariant>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:SaleDetailID>1</d2p1:SaleDetailID>
            <d2p1:TrackableCode>sample string 2</d2p1:TrackableCode>
          </d2p1:TrackableProductsSaleDetailModel>
          <d2p1:TrackableProductsSaleDetailModel>
            <d2p1:CreatedAt>2025-01-22T21:10:13.2312283-06:00</d2p1:CreatedAt>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:IsReturned>true</d2p1:IsReturned>
            <d2p1:Product>sample string 3</d2p1:Product>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariant>sample string 4</d2p1:ProductVariant>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:SaleDetailID>1</d2p1:SaleDetailID>
            <d2p1:TrackableCode>sample string 2</d2p1:TrackableCode>
          </d2p1:TrackableProductsSaleDetailModel>
        </d2p1:TrackableProductsSaleDetails>
        <d2p1:dDiscountPer>1</d2p1:dDiscountPer>
        <d2p1:dTotalAmount>1</d2p1:dTotalAmount>
        <d2p1:dTotalDiscount>1</d2p1:dTotalDiscount>
        <d2p1:dTotalUnitValue>1</d2p1:dTotalUnitValue>
        <d2p1:dTotalValue>1</d2p1:dTotalValue>
        <d2p1:isReturnProductChecked>true</d2p1:isReturnProductChecked>
      </d2p1:SaleDetailModel>
      <d2p1:SaleDetailModel>
        <d2p1:BLabel>sample string 9</d2p1:BLabel>
        <d2p1:ID>1</d2p1:ID>
        <d2p1:IsKeenlandExists>true</d2p1:IsKeenlandExists>
        <d2p1:IsReturned>true</d2p1:IsReturned>
        <d2p1:Keenland>sample string 2</d2p1:Keenland>
        <d2p1:ManufacturerCode>sample string 11</d2p1:ManufacturerCode>
        <d2p1:OriginalQuantity>1</d2p1:OriginalQuantity>
        <d2p1:Product>sample string 3</d2p1:Product>
        <d2p1:ProductID>1</d2p1:ProductID>
        <d2p1:ProductImage>sample string 10</d2p1:ProductImage>
        <d2p1:ProductPrice>1</d2p1:ProductPrice>
        <d2p1:ProductPriceString>sample string 5</d2p1:ProductPriceString>
        <d2p1:ProductQRCode>sample string 8</d2p1:ProductQRCode>
        <d2p1:ProductVariant>sample string 4</d2p1:ProductVariant>
        <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
        <d2p1:ProductVarientBarCode>sample string 7</d2p1:ProductVarientBarCode>
        <d2p1:Quantity>1</d2p1:Quantity>
        <d2p1:ReturnedQuantity>1</d2p1:ReturnedQuantity>
        <d2p1:ReturnedTyped>1</d2p1:ReturnedTyped>
        <d2p1:SaleDetailNonTrackableLocations>
          <d2p1:SaleDetailNonTrackableLocationModel>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:LevelID>1</d2p1:LevelID>
            <d2p1:Location>sample string 2</d2p1:Location>
            <d2p1:NonTrackableProductsLocationID>1</d2p1:NonTrackableProductsLocationID>
            <d2p1:Quantity>1</d2p1:Quantity>
            <d2p1:SaleDetailID>1</d2p1:SaleDetailID>
          </d2p1:SaleDetailNonTrackableLocationModel>
          <d2p1:SaleDetailNonTrackableLocationModel>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:LevelID>1</d2p1:LevelID>
            <d2p1:Location>sample string 2</d2p1:Location>
            <d2p1:NonTrackableProductsLocationID>1</d2p1:NonTrackableProductsLocationID>
            <d2p1:Quantity>1</d2p1:Quantity>
            <d2p1:SaleDetailID>1</d2p1:SaleDetailID>
          </d2p1:SaleDetailNonTrackableLocationModel>
        </d2p1:SaleDetailNonTrackableLocations>
        <d2p1:SaleID>1</d2p1:SaleID>
        <d2p1:TaxAmount>1</d2p1:TaxAmount>
        <d2p1:TaxPer>1</d2p1:TaxPer>
        <d2p1:TrackableProductsSaleDetails>
          <d2p1:TrackableProductsSaleDetailModel>
            <d2p1:CreatedAt>2025-01-22T21:10:13.2312283-06:00</d2p1:CreatedAt>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:IsReturned>true</d2p1:IsReturned>
            <d2p1:Product>sample string 3</d2p1:Product>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariant>sample string 4</d2p1:ProductVariant>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:SaleDetailID>1</d2p1:SaleDetailID>
            <d2p1:TrackableCode>sample string 2</d2p1:TrackableCode>
          </d2p1:TrackableProductsSaleDetailModel>
          <d2p1:TrackableProductsSaleDetailModel>
            <d2p1:CreatedAt>2025-01-22T21:10:13.2312283-06:00</d2p1:CreatedAt>
            <d2p1:ID>1</d2p1:ID>
            <d2p1:IsReturned>true</d2p1:IsReturned>
            <d2p1:Product>sample string 3</d2p1:Product>
            <d2p1:ProductID>1</d2p1:ProductID>
            <d2p1:ProductVariant>sample string 4</d2p1:ProductVariant>
            <d2p1:ProductVariantID>1</d2p1:ProductVariantID>
            <d2p1:SaleDetailID>1</d2p1:SaleDetailID>
            <d2p1:TrackableCode>sample string 2</d2p1:TrackableCode>
          </d2p1:TrackableProductsSaleDetailModel>
        </d2p1:TrackableProductsSaleDetails>
        <d2p1:dDiscountPer>1</d2p1:dDiscountPer>
        <d2p1:dTotalAmount>1</d2p1:dTotalAmount>
        <d2p1:dTotalDiscount>1</d2p1:dTotalDiscount>
        <d2p1:dTotalUnitValue>1</d2p1:dTotalUnitValue>
        <d2p1:dTotalValue>1</d2p1:dTotalValue>
        <d2p1:isReturnProductChecked>true</d2p1:isReturnProductChecked>
      </d2p1:SaleDetailModel>
    </d2p1:SaleDetails>
    <d2p1:SaleInvoiceNo>sample string 16</d2p1:SaleInvoiceNo>
    <d2p1:ShippingCost>1</d2p1:ShippingCost>
    <d2p1:ShippingMethod>sample string 15</d2p1:ShippingMethod>
    <d2p1:ShippingMethodID>1</d2p1:ShippingMethodID>
    <d2p1:SlipUrl>sample string 17</d2p1:SlipUrl>
    <d2p1:Type>sample string 14</d2p1:Type>
    <d2p1:TypeID>1</d2p1:TypeID>
    <d2p1:UpdatedAt>2025-01-22T21:10:13.2312283-06:00</d2p1:UpdatedAt>
    <d2p1:dDiscountPercentage>1</d2p1:dDiscountPercentage>
    <d2p1:dDiscountValue>1</d2p1:dDiscountValue>
    <d2p1:dDiscountValueString>sample string 2</d2p1:dDiscountValueString>
    <d2p1:dTotalPaidValue>1</d2p1:dTotalPaidValue>
    <d2p1:dTotalPaidValueString>sample string 4</d2p1:dTotalPaidValueString>
    <d2p1:dTotalSaleValue>1</d2p1:dTotalSaleValue>
    <d2p1:dTotalSaleValueString>sample string 3</d2p1:dTotalSaleValueString>
    <d2p1:dtDate>2025-01-22T21:10:13.2312283-06:00</d2p1:dtDate>
    <d2p1:isInvoiceSelected>true</d2p1:isInvoiceSelected>
    <d2p1:isReturnVisible>sample string 11</d2p1:isReturnVisible>
    <d2p1:sRemarks>sample string 5</d2p1:sRemarks>
  </Sale>
</SaleResponse>