Click or drag to resize

IeCommerceJsonOneListCalculate Method

Same as BasketCalc except takes in OneList Basket Object and returns Order Object

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: LS Omni 3.7.0
Syntax
C#
Order OneListCalculate(
	OneList oneList
)

Parameters

oneList
Type: LSRetail.Omni.Domain.DataModel.Loyalty.BasketsOneList
OneList Object

Return Value

Type: Order
Order Object that can be used to Create Order
Remarks
This function can be used to send in Basket and convert it to Order.

Basic Order data is then set for finalize it by setting the Order setting, Contact Info, Payment and then it can be posted for Creation

Examples
Sample requests including minimum data needed to be able to process the request in OMNI

Basket with 2 of same Items

REST Sample Request
{
  "oneList": {
    "Id": null,
    "CardId": "10021",
    "Items": [{
      "Id": null,
      "Item": {
        "Id": "40020"
            },
      "Quantity": 2,
      "VariantReg": {
        "Id": "002"
        }
        }],
    "ListType": 0,
    "StoreId": "S0001"
  },
  "calculate": true
}
Basket with 2 of same Items and with XMAS Coupon that gives discount
REST Sample Request
{
  "oneList": {
    "Id": null,
    "CardId": "10021",
    "Items": [{
      "Id": null,
      "Item": {
        "Id": "40020"

               },
      "Quantity": 2,
      "VariantReg": {
        "Id": "002"
      }
        }],
    "PublishedOffers": [{
      "Id": "XMAS",
      "Type": "9",
        }],
    "ListType": 0,
    "StoreId": "S0001"
  },
  "calculate": true
}
See Also