POST api/OpenSale/Add
Request Information
URI Parameters
None.
Body Parameters
OpenSaleModelName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
CustomerID | integer |
Required |
|
Customer | string |
None. |
|
SaleDate | date |
None. |
|
dtDate | date |
None. |
|
PaymentModeID | integer |
None. |
|
PaymentMode | string |
None. |
|
dDiscountPercentage | decimal number |
None. |
|
dDiscountValue | decimal number |
None. |
|
dTotalSaleValue | decimal number |
None. |
|
dDiscountValueString | string |
None. |
|
dTotalSaleValueString | string |
None. |
|
sRemarks | string |
None. |
|
OutletID | integer |
Required |
|
CreatedAt | date |
None. |
|
UpdatedAt | date |
None. |
|
CreatedByUserID | integer |
None. |
|
IsPerfomaInvoiceRequired | boolean |
None. |
|
CreatedAtString | string |
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. |
|
Outlet | string |
None. |
|
OpenSaleDetails | Collection of OpenSaleDetailModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "CustomerID": 1, "Customer": "sample string 2", "SaleDate": "2025-01-22T20:58:42.6751666-06:00", "dtDate": "2025-01-22T20:58:42.6751666-06:00", "PaymentModeID": 1, "PaymentMode": "sample string 3", "dDiscountPercentage": 1.0, "dDiscountValue": 1.0, "dTotalSaleValue": 1.0, "dDiscountValueString": "sample string 4", "dTotalSaleValueString": "sample string 5", "sRemarks": "sample string 6", "OutletID": 1, "CreatedAt": "2025-01-22T20:58:42.6751666-06:00", "UpdatedAt": "2025-01-22T20:58:42.6751666-06:00", "CreatedByUserID": 1, "IsPerfomaInvoiceRequired": true, "CreatedAtString": "sample string 7", "PaymentConditionID": 1, "PaymentCondition": "sample string 8", "DeliveredToID": 1, "DeliveredTo": "sample string 9", "TypeID": 1, "Type": "sample string 10", "ShippingMethodID": 1, "ShippingCost": 1.0, "ShippingMethod": "sample string 11", "Outlet": "sample string 12", "OpenSaleDetails": [ { "ID": 1, "OpenSaleID": 1, "ProductID": 1, "Product": "sample string 2", "ProductImage": "sample string 3", "ProductVariant": "sample string 4", "ProductVariantID": 1, "Quantity": 1, "TaxAmount": 1.0, "dTotalValue": 1.0, "dTotalDiscount": 1.0, "ProductPrice": 1.0, "ProductPriceString": "sample string 5", "BLabel": "sample string 6", "TaxPer": 1.0, "dTotalUnitValue": 1.0, "dDiscountPer": 1.0, "TrackableProductsOpenSaleDetails": [ { "ID": 1, "ProductID": 1, "ProductVariantID": 1, "OpenSaleDetailID": 1, "TrackableCode": "sample string 2", "CreatedAt": "2025-01-22T20:58:42.6751666-06:00", "Product": "sample string 3", "ProductVariant": "sample string 4" }, { "ID": 1, "ProductID": 1, "ProductVariantID": 1, "OpenSaleDetailID": 1, "TrackableCode": "sample string 2", "CreatedAt": "2025-01-22T20:58:42.6751666-06:00", "Product": "sample string 3", "ProductVariant": "sample string 4" } ], "dTotalAmount": 1.0, "ManufacturerCode": "sample string 7", "OriginalStock": 1 }, { "ID": 1, "OpenSaleID": 1, "ProductID": 1, "Product": "sample string 2", "ProductImage": "sample string 3", "ProductVariant": "sample string 4", "ProductVariantID": 1, "Quantity": 1, "TaxAmount": 1.0, "dTotalValue": 1.0, "dTotalDiscount": 1.0, "ProductPrice": 1.0, "ProductPriceString": "sample string 5", "BLabel": "sample string 6", "TaxPer": 1.0, "dTotalUnitValue": 1.0, "dDiscountPer": 1.0, "TrackableProductsOpenSaleDetails": [ { "ID": 1, "ProductID": 1, "ProductVariantID": 1, "OpenSaleDetailID": 1, "TrackableCode": "sample string 2", "CreatedAt": "2025-01-22T20:58:42.6751666-06:00", "Product": "sample string 3", "ProductVariant": "sample string 4" }, { "ID": 1, "ProductID": 1, "ProductVariantID": 1, "OpenSaleDetailID": 1, "TrackableCode": "sample string 2", "CreatedAt": "2025-01-22T20:58:42.6751666-06:00", "Product": "sample string 3", "ProductVariant": "sample string 4" } ], "dTotalAmount": 1.0, "ManufacturerCode": "sample string 7", "OriginalStock": 1 } ] }
application/xml, text/xml
Sample:
<OpenSaleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <CreatedAt>2025-01-22T20:58:42.6751666-06:00</CreatedAt> <CreatedAtString>sample string 7</CreatedAtString> <CreatedByUserID>1</CreatedByUserID> <Customer>sample string 2</Customer> <CustomerID>1</CustomerID> <DeliveredTo>sample string 9</DeliveredTo> <DeliveredToID>1</DeliveredToID> <ID>1</ID> <IsPerfomaInvoiceRequired>true</IsPerfomaInvoiceRequired> <OpenSaleDetails> <OpenSaleDetailModel> <BLabel>sample string 6</BLabel> <ID>1</ID> <ManufacturerCode>sample string 7</ManufacturerCode> <OpenSaleID>1</OpenSaleID> <OriginalStock>1</OriginalStock> <Product>sample string 2</Product> <ProductID>1</ProductID> <ProductImage>sample string 3</ProductImage> <ProductPrice>1</ProductPrice> <ProductPriceString>sample string 5</ProductPriceString> <ProductVariant>sample string 4</ProductVariant> <ProductVariantID>1</ProductVariantID> <Quantity>1</Quantity> <TaxAmount>1</TaxAmount> <TaxPer>1</TaxPer> <TrackableProductsOpenSaleDetails> <TrackableProductsOpenSaleDetailModel> <CreatedAt>2025-01-22T20:58:42.6751666-06:00</CreatedAt> <ID>1</ID> <OpenSaleDetailID>1</OpenSaleDetailID> <Product>sample string 3</Product> <ProductID>1</ProductID> <ProductVariant>sample string 4</ProductVariant> <ProductVariantID>1</ProductVariantID> <TrackableCode>sample string 2</TrackableCode> </TrackableProductsOpenSaleDetailModel> <TrackableProductsOpenSaleDetailModel> <CreatedAt>2025-01-22T20:58:42.6751666-06:00</CreatedAt> <ID>1</ID> <OpenSaleDetailID>1</OpenSaleDetailID> <Product>sample string 3</Product> <ProductID>1</ProductID> <ProductVariant>sample string 4</ProductVariant> <ProductVariantID>1</ProductVariantID> <TrackableCode>sample string 2</TrackableCode> </TrackableProductsOpenSaleDetailModel> </TrackableProductsOpenSaleDetails> <dDiscountPer>1</dDiscountPer> <dTotalAmount>1</dTotalAmount> <dTotalDiscount>1</dTotalDiscount> <dTotalUnitValue>1</dTotalUnitValue> <dTotalValue>1</dTotalValue> </OpenSaleDetailModel> <OpenSaleDetailModel> <BLabel>sample string 6</BLabel> <ID>1</ID> <ManufacturerCode>sample string 7</ManufacturerCode> <OpenSaleID>1</OpenSaleID> <OriginalStock>1</OriginalStock> <Product>sample string 2</Product> <ProductID>1</ProductID> <ProductImage>sample string 3</ProductImage> <ProductPrice>1</ProductPrice> <ProductPriceString>sample string 5</ProductPriceString> <ProductVariant>sample string 4</ProductVariant> <ProductVariantID>1</ProductVariantID> <Quantity>1</Quantity> <TaxAmount>1</TaxAmount> <TaxPer>1</TaxPer> <TrackableProductsOpenSaleDetails> <TrackableProductsOpenSaleDetailModel> <CreatedAt>2025-01-22T20:58:42.6751666-06:00</CreatedAt> <ID>1</ID> <OpenSaleDetailID>1</OpenSaleDetailID> <Product>sample string 3</Product> <ProductID>1</ProductID> <ProductVariant>sample string 4</ProductVariant> <ProductVariantID>1</ProductVariantID> <TrackableCode>sample string 2</TrackableCode> </TrackableProductsOpenSaleDetailModel> <TrackableProductsOpenSaleDetailModel> <CreatedAt>2025-01-22T20:58:42.6751666-06:00</CreatedAt> <ID>1</ID> <OpenSaleDetailID>1</OpenSaleDetailID> <Product>sample string 3</Product> <ProductID>1</ProductID> <ProductVariant>sample string 4</ProductVariant> <ProductVariantID>1</ProductVariantID> <TrackableCode>sample string 2</TrackableCode> </TrackableProductsOpenSaleDetailModel> </TrackableProductsOpenSaleDetails> <dDiscountPer>1</dDiscountPer> <dTotalAmount>1</dTotalAmount> <dTotalDiscount>1</dTotalDiscount> <dTotalUnitValue>1</dTotalUnitValue> <dTotalValue>1</dTotalValue> </OpenSaleDetailModel> </OpenSaleDetails> <Outlet>sample string 12</Outlet> <OutletID>1</OutletID> <PaymentCondition>sample string 8</PaymentCondition> <PaymentConditionID>1</PaymentConditionID> <PaymentMode>sample string 3</PaymentMode> <PaymentModeID>1</PaymentModeID> <SaleDate>2025-01-22T20:58:42.6751666-06:00</SaleDate> <ShippingCost>1</ShippingCost> <ShippingMethod>sample string 11</ShippingMethod> <ShippingMethodID>1</ShippingMethodID> <Type>sample string 10</Type> <TypeID>1</TypeID> <UpdatedAt>2025-01-22T20:58:42.6751666-06:00</UpdatedAt> <dDiscountPercentage>1</dDiscountPercentage> <dDiscountValue>1</dDiscountValue> <dDiscountValueString>sample string 4</dDiscountValueString> <dTotalSaleValue>1</dTotalSaleValue> <dTotalSaleValueString>sample string 5</dTotalSaleValueString> <dtDate>2025-01-22T20:58:42.6751666-06:00</dtDate> <sRemarks>sample string 6</sRemarks> </OpenSaleModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
OpenSaleResponseName | Description | Type | Additional information |
---|---|---|---|
OpenSale | OpenSaleModel |
None. |
|
ResponseCode | integer |
None. |
|
ResponseText | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "OpenSale": { "ID": 1, "CustomerID": 1, "Customer": "sample string 2", "SaleDate": "2025-01-22T20:58:42.690294-06:00", "dtDate": "2025-01-22T20:58:42.690294-06:00", "PaymentModeID": 1, "PaymentMode": "sample string 3", "dDiscountPercentage": 1.0, "dDiscountValue": 1.0, "dTotalSaleValue": 1.0, "dDiscountValueString": "sample string 4", "dTotalSaleValueString": "sample string 5", "sRemarks": "sample string 6", "OutletID": 1, "CreatedAt": "2025-01-22T20:58:42.690294-06:00", "UpdatedAt": "2025-01-22T20:58:42.690294-06:00", "CreatedByUserID": 1, "IsPerfomaInvoiceRequired": true, "CreatedAtString": "sample string 7", "PaymentConditionID": 1, "PaymentCondition": "sample string 8", "DeliveredToID": 1, "DeliveredTo": "sample string 9", "TypeID": 1, "Type": "sample string 10", "ShippingMethodID": 1, "ShippingCost": 1.0, "ShippingMethod": "sample string 11", "Outlet": "sample string 12", "OpenSaleDetails": [ { "ID": 1, "OpenSaleID": 1, "ProductID": 1, "Product": "sample string 2", "ProductImage": "sample string 3", "ProductVariant": "sample string 4", "ProductVariantID": 1, "Quantity": 1, "TaxAmount": 1.0, "dTotalValue": 1.0, "dTotalDiscount": 1.0, "ProductPrice": 1.0, "ProductPriceString": "sample string 5", "BLabel": "sample string 6", "TaxPer": 1.0, "dTotalUnitValue": 1.0, "dDiscountPer": 1.0, "TrackableProductsOpenSaleDetails": [ { "ID": 1, "ProductID": 1, "ProductVariantID": 1, "OpenSaleDetailID": 1, "TrackableCode": "sample string 2", "CreatedAt": "2025-01-22T20:58:42.690294-06:00", "Product": "sample string 3", "ProductVariant": "sample string 4" }, { "ID": 1, "ProductID": 1, "ProductVariantID": 1, "OpenSaleDetailID": 1, "TrackableCode": "sample string 2", "CreatedAt": "2025-01-22T20:58:42.690294-06:00", "Product": "sample string 3", "ProductVariant": "sample string 4" } ], "dTotalAmount": 1.0, "ManufacturerCode": "sample string 7", "OriginalStock": 1 }, { "ID": 1, "OpenSaleID": 1, "ProductID": 1, "Product": "sample string 2", "ProductImage": "sample string 3", "ProductVariant": "sample string 4", "ProductVariantID": 1, "Quantity": 1, "TaxAmount": 1.0, "dTotalValue": 1.0, "dTotalDiscount": 1.0, "ProductPrice": 1.0, "ProductPriceString": "sample string 5", "BLabel": "sample string 6", "TaxPer": 1.0, "dTotalUnitValue": 1.0, "dDiscountPer": 1.0, "TrackableProductsOpenSaleDetails": [ { "ID": 1, "ProductID": 1, "ProductVariantID": 1, "OpenSaleDetailID": 1, "TrackableCode": "sample string 2", "CreatedAt": "2025-01-22T20:58:42.690294-06:00", "Product": "sample string 3", "ProductVariant": "sample string 4" }, { "ID": 1, "ProductID": 1, "ProductVariantID": 1, "OpenSaleDetailID": 1, "TrackableCode": "sample string 2", "CreatedAt": "2025-01-22T20:58:42.690294-06:00", "Product": "sample string 3", "ProductVariant": "sample string 4" } ], "dTotalAmount": 1.0, "ManufacturerCode": "sample string 7", "OriginalStock": 1 } ] }, "ResponseCode": 1, "ResponseText": "sample string 2" }
application/xml, text/xml
Sample:
<OpenSaleResponse 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> <OpenSale xmlns:d2p1="http://schemas.datacontract.org/2004/07/POS.DTO.DataModel"> <d2p1:CreatedAt>2025-01-22T20:58:42.690294-06:00</d2p1:CreatedAt> <d2p1:CreatedAtString>sample string 7</d2p1:CreatedAtString> <d2p1:CreatedByUserID>1</d2p1:CreatedByUserID> <d2p1:Customer>sample string 2</d2p1:Customer> <d2p1:CustomerID>1</d2p1:CustomerID> <d2p1:DeliveredTo>sample string 9</d2p1:DeliveredTo> <d2p1:DeliveredToID>1</d2p1:DeliveredToID> <d2p1:ID>1</d2p1:ID> <d2p1:IsPerfomaInvoiceRequired>true</d2p1:IsPerfomaInvoiceRequired> <d2p1:OpenSaleDetails> <d2p1:OpenSaleDetailModel> <d2p1:BLabel>sample string 6</d2p1:BLabel> <d2p1:ID>1</d2p1:ID> <d2p1:ManufacturerCode>sample string 7</d2p1:ManufacturerCode> <d2p1:OpenSaleID>1</d2p1:OpenSaleID> <d2p1:OriginalStock>1</d2p1:OriginalStock> <d2p1:Product>sample string 2</d2p1:Product> <d2p1:ProductID>1</d2p1:ProductID> <d2p1:ProductImage>sample string 3</d2p1:ProductImage> <d2p1:ProductPrice>1</d2p1:ProductPrice> <d2p1:ProductPriceString>sample string 5</d2p1:ProductPriceString> <d2p1:ProductVariant>sample string 4</d2p1:ProductVariant> <d2p1:ProductVariantID>1</d2p1:ProductVariantID> <d2p1:Quantity>1</d2p1:Quantity> <d2p1:TaxAmount>1</d2p1:TaxAmount> <d2p1:TaxPer>1</d2p1:TaxPer> <d2p1:TrackableProductsOpenSaleDetails> <d2p1:TrackableProductsOpenSaleDetailModel> <d2p1:CreatedAt>2025-01-22T20:58:42.690294-06:00</d2p1:CreatedAt> <d2p1:ID>1</d2p1:ID> <d2p1:OpenSaleDetailID>1</d2p1:OpenSaleDetailID> <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:TrackableCode>sample string 2</d2p1:TrackableCode> </d2p1:TrackableProductsOpenSaleDetailModel> <d2p1:TrackableProductsOpenSaleDetailModel> <d2p1:CreatedAt>2025-01-22T20:58:42.690294-06:00</d2p1:CreatedAt> <d2p1:ID>1</d2p1:ID> <d2p1:OpenSaleDetailID>1</d2p1:OpenSaleDetailID> <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:TrackableCode>sample string 2</d2p1:TrackableCode> </d2p1:TrackableProductsOpenSaleDetailModel> </d2p1:TrackableProductsOpenSaleDetails> <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:OpenSaleDetailModel> <d2p1:OpenSaleDetailModel> <d2p1:BLabel>sample string 6</d2p1:BLabel> <d2p1:ID>1</d2p1:ID> <d2p1:ManufacturerCode>sample string 7</d2p1:ManufacturerCode> <d2p1:OpenSaleID>1</d2p1:OpenSaleID> <d2p1:OriginalStock>1</d2p1:OriginalStock> <d2p1:Product>sample string 2</d2p1:Product> <d2p1:ProductID>1</d2p1:ProductID> <d2p1:ProductImage>sample string 3</d2p1:ProductImage> <d2p1:ProductPrice>1</d2p1:ProductPrice> <d2p1:ProductPriceString>sample string 5</d2p1:ProductPriceString> <d2p1:ProductVariant>sample string 4</d2p1:ProductVariant> <d2p1:ProductVariantID>1</d2p1:ProductVariantID> <d2p1:Quantity>1</d2p1:Quantity> <d2p1:TaxAmount>1</d2p1:TaxAmount> <d2p1:TaxPer>1</d2p1:TaxPer> <d2p1:TrackableProductsOpenSaleDetails> <d2p1:TrackableProductsOpenSaleDetailModel> <d2p1:CreatedAt>2025-01-22T20:58:42.690294-06:00</d2p1:CreatedAt> <d2p1:ID>1</d2p1:ID> <d2p1:OpenSaleDetailID>1</d2p1:OpenSaleDetailID> <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:TrackableCode>sample string 2</d2p1:TrackableCode> </d2p1:TrackableProductsOpenSaleDetailModel> <d2p1:TrackableProductsOpenSaleDetailModel> <d2p1:CreatedAt>2025-01-22T20:58:42.690294-06:00</d2p1:CreatedAt> <d2p1:ID>1</d2p1:ID> <d2p1:OpenSaleDetailID>1</d2p1:OpenSaleDetailID> <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:TrackableCode>sample string 2</d2p1:TrackableCode> </d2p1:TrackableProductsOpenSaleDetailModel> </d2p1:TrackableProductsOpenSaleDetails> <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:OpenSaleDetailModel> </d2p1:OpenSaleDetails> <d2p1:Outlet>sample string 12</d2p1:Outlet> <d2p1:OutletID>1</d2p1:OutletID> <d2p1:PaymentCondition>sample string 8</d2p1:PaymentCondition> <d2p1:PaymentConditionID>1</d2p1:PaymentConditionID> <d2p1:PaymentMode>sample string 3</d2p1:PaymentMode> <d2p1:PaymentModeID>1</d2p1:PaymentModeID> <d2p1:SaleDate>2025-01-22T20:58:42.690294-06:00</d2p1:SaleDate> <d2p1:ShippingCost>1</d2p1:ShippingCost> <d2p1:ShippingMethod>sample string 11</d2p1:ShippingMethod> <d2p1:ShippingMethodID>1</d2p1:ShippingMethodID> <d2p1:Type>sample string 10</d2p1:Type> <d2p1:TypeID>1</d2p1:TypeID> <d2p1:UpdatedAt>2025-01-22T20:58:42.690294-06:00</d2p1:UpdatedAt> <d2p1:dDiscountPercentage>1</d2p1:dDiscountPercentage> <d2p1:dDiscountValue>1</d2p1:dDiscountValue> <d2p1:dDiscountValueString>sample string 4</d2p1:dDiscountValueString> <d2p1:dTotalSaleValue>1</d2p1:dTotalSaleValue> <d2p1:dTotalSaleValueString>sample string 5</d2p1:dTotalSaleValueString> <d2p1:dtDate>2025-01-22T20:58:42.690294-06:00</d2p1:dtDate> <d2p1:sRemarks>sample string 6</d2p1:sRemarks> </OpenSale> </OpenSaleResponse>