POST api/Quotes/Insert
Inserts a new customer quotation
Request Information
URI Parameters
None.
Body Parameters
EskimoClassLibraries.QuoteInsertName | Description | Type | Additional information |
---|---|---|---|
Till | integer |
Required Range: inclusive between 1 and 7.92281625142643E+28 |
|
Receipt | integer |
Required Range: inclusive between 1 and 7.92281625142643E+28 |
|
Quote | EskimoClassLibraries.clsQuote |
Required |
Request Formats
application/json, text/json
Sample:
{ "Till": 1, "Receipt": 2, "Quote": { "ReceiptNumber": 1, "CustomerName": "sample string 1", "OperatorName": "sample string 2", "Status": 0, "ValidUntil": "2025-01-18T03:44:26.8072454+00:00", "ReplacementQuoteNum": 1, "ID": 1, "StoreID": "sample string 4", "DateStored": "2025-01-18T03:44:26.8072454+00:00", "OperatorID": "sample string 6", "Products": [ { "OriginalOrderDetailID": 1, "DepositAmount": 1.0, "CustomerAction": 1, "AdminOverrides": [ { "PermID": 1, "AdminOperatorID": "sample string 2", "Timestamp": "2025-01-18T03:44:26.8072454+00:00" }, { "PermID": 1, "AdminOperatorID": "sample string 2", "Timestamp": "2025-01-18T03:44:26.8072454+00:00" } ], "LineID": 2, "KitProductType": 1, "KitParentLine": 1, "RefundDetails": { "OriginalSalesRef": "sample string 1", "OriginalSalesLine": 2 }, "VatID": 1, "PLU": "sample string 3", "Qty": 4, "UnitPrice": 2.5, "FreeText": "sample string 5", "LineDiscount": 6.0, "LineDiscountPromo": 7.0, "Description": "sample string 8", "GiftCardDetails": { "Activated": true, "CardNumber": "sample string 2", "CardSerial": "sample string 3", "Reference": "sample string 4", "Balance": 5.0, "ExpiryDate": "2025-01-18T03:44:26.8072454+00:00" }, "NoDiscountAllowed": true, "LinePrice": 10.0 }, { "OriginalOrderDetailID": 1, "DepositAmount": 1.0, "CustomerAction": 1, "AdminOverrides": [ { "PermID": 1, "AdminOperatorID": "sample string 2", "Timestamp": "2025-01-18T03:44:26.8072454+00:00" }, { "PermID": 1, "AdminOperatorID": "sample string 2", "Timestamp": "2025-01-18T03:44:26.8072454+00:00" } ], "LineID": 2, "KitProductType": 1, "KitParentLine": 1, "RefundDetails": { "OriginalSalesRef": "sample string 1", "OriginalSalesLine": 2 }, "VatID": 1, "PLU": "sample string 3", "Qty": 4, "UnitPrice": 2.5, "FreeText": "sample string 5", "LineDiscount": 6.0, "LineDiscountPromo": 7.0, "Description": "sample string 8", "GiftCardDetails": { "Activated": true, "CardNumber": "sample string 2", "CardSerial": "sample string 3", "Reference": "sample string 4", "Balance": 5.0, "ExpiryDate": "2025-01-18T03:44:26.8072454+00:00" }, "NoDiscountAllowed": true, "LinePrice": 10.0 } ], "CustomerID": "sample string 7" } }
application/xml, text/xml
Sample:
<QuoteInsert xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EskimoClassLibraries"> <Quote> <CustomerID>sample string 7</CustomerID> <DateStored>2025-01-18T03:44:26.8072454+00:00</DateStored> <ID>1</ID> <OperatorID>sample string 6</OperatorID> <Products> <clsPreSaleItemBase> <Description>sample string 8</Description> <FreeText>sample string 5</FreeText> <GiftCardDetails> <Balance>5</Balance> <CardNumber>sample string 2</CardNumber> <CardSerial>sample string 3</CardSerial> <ExpiryDate>2025-01-18T03:44:26.8072454+00:00</ExpiryDate> <Reference>sample string 4</Reference> <Activated>true</Activated> </GiftCardDetails> <LineDiscount>6</LineDiscount> <LineDiscountPromo>7</LineDiscountPromo> <LinePrice>10</LinePrice> <NoDiscountAllowed>true</NoDiscountAllowed> <PLU>sample string 3</PLU> <Qty>4</Qty> <AdminOverrides> <clsAdminOverride> <AdminOperatorID>sample string 2</AdminOperatorID> <PermID>1</PermID> <Timestamp>2025-01-18T03:44:26.8072454+00:00</Timestamp> </clsAdminOverride> <clsAdminOverride> <AdminOperatorID>sample string 2</AdminOperatorID> <PermID>1</PermID> <Timestamp>2025-01-18T03:44:26.8072454+00:00</Timestamp> </clsAdminOverride> </AdminOverrides> <CustomerAction>1</CustomerAction> <DepositAmount>1</DepositAmount> <KitParentLine>1</KitParentLine> <KitProductType>FixedHeader</KitProductType> <LineID>2</LineID> <RefundDetails> <OriginalSalesLine>2</OriginalSalesLine> <OriginalSalesRef>sample string 1</OriginalSalesRef> </RefundDetails> <VatID>1</VatID> <OriginalOrderDetailID>1</OriginalOrderDetailID> </clsPreSaleItemBase> <clsPreSaleItemBase> <Description>sample string 8</Description> <FreeText>sample string 5</FreeText> <GiftCardDetails> <Balance>5</Balance> <CardNumber>sample string 2</CardNumber> <CardSerial>sample string 3</CardSerial> <ExpiryDate>2025-01-18T03:44:26.8072454+00:00</ExpiryDate> <Reference>sample string 4</Reference> <Activated>true</Activated> </GiftCardDetails> <LineDiscount>6</LineDiscount> <LineDiscountPromo>7</LineDiscountPromo> <LinePrice>10</LinePrice> <NoDiscountAllowed>true</NoDiscountAllowed> <PLU>sample string 3</PLU> <Qty>4</Qty> <AdminOverrides> <clsAdminOverride> <AdminOperatorID>sample string 2</AdminOperatorID> <PermID>1</PermID> <Timestamp>2025-01-18T03:44:26.8072454+00:00</Timestamp> </clsAdminOverride> <clsAdminOverride> <AdminOperatorID>sample string 2</AdminOperatorID> <PermID>1</PermID> <Timestamp>2025-01-18T03:44:26.8072454+00:00</Timestamp> </clsAdminOverride> </AdminOverrides> <CustomerAction>1</CustomerAction> <DepositAmount>1</DepositAmount> <KitParentLine>1</KitParentLine> <KitProductType>FixedHeader</KitProductType> <LineID>2</LineID> <RefundDetails> <OriginalSalesLine>2</OriginalSalesLine> <OriginalSalesRef>sample string 1</OriginalSalesRef> </RefundDetails> <VatID>1</VatID> <OriginalOrderDetailID>1</OriginalOrderDetailID> </clsPreSaleItemBase> </Products> <StoreID>sample string 4</StoreID> <CustomerName>sample string 1</CustomerName> <OperatorName>sample string 2</OperatorName> <ReceiptNumber>1</ReceiptNumber> <ReplacementQuoteNum>1</ReplacementQuoteNum> <Status>InPreparation</Status> <ValidUntil>2025-01-18T03:44:26.8072454+00:00</ValidUntil> </Quote> <Receipt>2</Receipt> <Till>1</Till> </QuoteInsert>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EskimoClassLibraries.clsQuoteName | Description | Type | Additional information |
---|---|---|---|
ReceiptNumber | integer |
None. |
|
CustomerName | string |
None. |
|
OperatorName | string |
None. |
|
Status | EskimoClassLibraries.clsQuote+QuoteStatusEnum |
None. |
|
ValidUntil | date |
None. |
|
ReplacementQuoteNum | integer |
None. |
|
ID | integer |
None. |
|
StoreID | string |
Required String length: inclusive between 3 and 3 |
|
DateStored |
The date the layaway was created |
date |
None. |
OperatorID |
The ID of the sales clerk (or operator) that performed the layaway |
string |
None. |
Products | Collection of EskimoClassLibraries.clsPreSaleItemBase |
Required |
|
CustomerID |
The Customer ID selected against the sale. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "ReceiptNumber": 1, "CustomerName": "sample string 1", "OperatorName": "sample string 2", "Status": 0, "ValidUntil": "2025-01-18T03:44:26.8072454+00:00", "ReplacementQuoteNum": 1, "ID": 1, "StoreID": "sample string 4", "DateStored": "2025-01-18T03:44:26.8072454+00:00", "OperatorID": "sample string 6", "Products": [ { "OriginalOrderDetailID": 1, "DepositAmount": 1.0, "CustomerAction": 1, "AdminOverrides": [ { "PermID": 1, "AdminOperatorID": "sample string 2", "Timestamp": "2025-01-18T03:44:26.8072454+00:00" }, { "PermID": 1, "AdminOperatorID": "sample string 2", "Timestamp": "2025-01-18T03:44:26.8072454+00:00" } ], "LineID": 2, "KitProductType": 1, "KitParentLine": 1, "RefundDetails": { "OriginalSalesRef": "sample string 1", "OriginalSalesLine": 2 }, "VatID": 1, "PLU": "sample string 3", "Qty": 4, "UnitPrice": 2.5, "FreeText": "sample string 5", "LineDiscount": 6.0, "LineDiscountPromo": 7.0, "Description": "sample string 8", "GiftCardDetails": { "Activated": true, "CardNumber": "sample string 2", "CardSerial": "sample string 3", "Reference": "sample string 4", "Balance": 5.0, "ExpiryDate": "2025-01-18T03:44:26.8072454+00:00" }, "NoDiscountAllowed": true, "LinePrice": 10.0 }, { "OriginalOrderDetailID": 1, "DepositAmount": 1.0, "CustomerAction": 1, "AdminOverrides": [ { "PermID": 1, "AdminOperatorID": "sample string 2", "Timestamp": "2025-01-18T03:44:26.8072454+00:00" }, { "PermID": 1, "AdminOperatorID": "sample string 2", "Timestamp": "2025-01-18T03:44:26.8072454+00:00" } ], "LineID": 2, "KitProductType": 1, "KitParentLine": 1, "RefundDetails": { "OriginalSalesRef": "sample string 1", "OriginalSalesLine": 2 }, "VatID": 1, "PLU": "sample string 3", "Qty": 4, "UnitPrice": 2.5, "FreeText": "sample string 5", "LineDiscount": 6.0, "LineDiscountPromo": 7.0, "Description": "sample string 8", "GiftCardDetails": { "Activated": true, "CardNumber": "sample string 2", "CardSerial": "sample string 3", "Reference": "sample string 4", "Balance": 5.0, "ExpiryDate": "2025-01-18T03:44:26.8072454+00:00" }, "NoDiscountAllowed": true, "LinePrice": 10.0 } ], "CustomerID": "sample string 7" }
application/xml, text/xml
Sample:
<clsQuote xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EskimoClassLibraries"> <CustomerID>sample string 7</CustomerID> <DateStored>2025-01-18T03:44:26.8072454+00:00</DateStored> <ID>1</ID> <OperatorID>sample string 6</OperatorID> <Products> <clsPreSaleItemBase> <Description>sample string 8</Description> <FreeText>sample string 5</FreeText> <GiftCardDetails> <Balance>5</Balance> <CardNumber>sample string 2</CardNumber> <CardSerial>sample string 3</CardSerial> <ExpiryDate>2025-01-18T03:44:26.8072454+00:00</ExpiryDate> <Reference>sample string 4</Reference> <Activated>true</Activated> </GiftCardDetails> <LineDiscount>6</LineDiscount> <LineDiscountPromo>7</LineDiscountPromo> <LinePrice>10</LinePrice> <NoDiscountAllowed>true</NoDiscountAllowed> <PLU>sample string 3</PLU> <Qty>4</Qty> <AdminOverrides> <clsAdminOverride> <AdminOperatorID>sample string 2</AdminOperatorID> <PermID>1</PermID> <Timestamp>2025-01-18T03:44:26.8072454+00:00</Timestamp> </clsAdminOverride> <clsAdminOverride> <AdminOperatorID>sample string 2</AdminOperatorID> <PermID>1</PermID> <Timestamp>2025-01-18T03:44:26.8072454+00:00</Timestamp> </clsAdminOverride> </AdminOverrides> <CustomerAction>1</CustomerAction> <DepositAmount>1</DepositAmount> <KitParentLine>1</KitParentLine> <KitProductType>FixedHeader</KitProductType> <LineID>2</LineID> <RefundDetails> <OriginalSalesLine>2</OriginalSalesLine> <OriginalSalesRef>sample string 1</OriginalSalesRef> </RefundDetails> <VatID>1</VatID> <OriginalOrderDetailID>1</OriginalOrderDetailID> </clsPreSaleItemBase> <clsPreSaleItemBase> <Description>sample string 8</Description> <FreeText>sample string 5</FreeText> <GiftCardDetails> <Balance>5</Balance> <CardNumber>sample string 2</CardNumber> <CardSerial>sample string 3</CardSerial> <ExpiryDate>2025-01-18T03:44:26.8072454+00:00</ExpiryDate> <Reference>sample string 4</Reference> <Activated>true</Activated> </GiftCardDetails> <LineDiscount>6</LineDiscount> <LineDiscountPromo>7</LineDiscountPromo> <LinePrice>10</LinePrice> <NoDiscountAllowed>true</NoDiscountAllowed> <PLU>sample string 3</PLU> <Qty>4</Qty> <AdminOverrides> <clsAdminOverride> <AdminOperatorID>sample string 2</AdminOperatorID> <PermID>1</PermID> <Timestamp>2025-01-18T03:44:26.8072454+00:00</Timestamp> </clsAdminOverride> <clsAdminOverride> <AdminOperatorID>sample string 2</AdminOperatorID> <PermID>1</PermID> <Timestamp>2025-01-18T03:44:26.8072454+00:00</Timestamp> </clsAdminOverride> </AdminOverrides> <CustomerAction>1</CustomerAction> <DepositAmount>1</DepositAmount> <KitParentLine>1</KitParentLine> <KitProductType>FixedHeader</KitProductType> <LineID>2</LineID> <RefundDetails> <OriginalSalesLine>2</OriginalSalesLine> <OriginalSalesRef>sample string 1</OriginalSalesRef> </RefundDetails> <VatID>1</VatID> <OriginalOrderDetailID>1</OriginalOrderDetailID> </clsPreSaleItemBase> </Products> <StoreID>sample string 4</StoreID> <CustomerName>sample string 1</CustomerName> <OperatorName>sample string 2</OperatorName> <ReceiptNumber>1</ReceiptNumber> <ReplacementQuoteNum>1</ReplacementQuoteNum> <Status>InPreparation</Status> <ValidUntil>2025-01-18T03:44:26.8072454+00:00</ValidUntil> </clsQuote>