Click or drag to resize

IUCServiceOneListCalculate Method

Calculates OneList Basket Object and returns Order Object

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2024.6
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
LS Central WS2 : EcomCalculateBasket

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

NOTE: Image Ids are added if not provided with the item or returned from Central, this will result in extra calls, so to speed up things, provide Image object with Image Id only (not including blob)

Examples
This Sample request can be used in SOAP UI application to send request to LS Commerce.

Include minimum data needed to be able to process the request

SOAP Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://lsretail.com/LSOmniService/EComm/2017/Service" xmlns:ns="http://lsretail.com/LSOmniService/Base/2017" xmlns:ns1="http://lsretail.com/LSOmniService/Loy/2017">
  <soapenv:Header/>
  <soapenv:Body>
    <ser:OneListCalculate>
       <ser:oneList>
          <!--Empty for anonymous basket:-->
          <ns1:CardId>10021</ns1:CardId>
          <ns1:Items>
              <ns1:OneListItem>
                 <ns1:Image>
                    <ns:Id>40020</ns:Id>
                 </ns1:Image>
                 <ns1:ItemDescription>Skirt Linda Professional Wear</ns1:ItemDescription>
                 <ns1:ItemId>40020</ns1:ItemId>
                 <ns1:Quantity>2</ns1:Quantity>
                 <ns1:VariantDescription>YELLOW/38</ns1:VariantDescription>
                 <ns1:VariantId>002</ns1:VariantId>
              </ns1:OneListItem>
          </ns1:Items>
          <ns1:ListType>Basket</ns1:ListType>
          <ns1:StoreId>S0013</ns1:StoreId>
       </ser:oneList>
    </ser:OneListCalculate>
   </soapenv:Body>
</soapenv:Envelope>
See Also