Click or drag to resize

IUCServiceOrderHospCreate Method

Create a Hospitality Order

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2024.6
Syntax
C#
SalesEntry OrderHospCreate(
	OrderHosp request,
	bool returnOrderIdOnly
)

Parameters

request
Type: LSRetail.Omni.Domain.DataModel.Loyalty.OrderHospOrderHosp
returnOrderIdOnly
Type: SystemBoolean
Only return Order Id back, not full order object

Return Value

Type: SalesEntry
Remarks
LS Central WS2 : CreateHospOrder
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, Sample Order for EasyBurger Restaurant, Cheese Burger Meal, with Jalapeno Popper and Reg Orange Soda. Based on OneListHospCalculate result.

SOAP Sample Request for Delivery order
<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/2020" xmlns:ns2="http://lsretail.com/LSOmniService/Loy/2017">
    <soapenv:Header/>
    <soapenv:Body>
        <ser:OrderHospCreate>
            <ser:request>
                <ns1:Address>
                    <ns:Address1>SomeStreet 4</ns:Address1>
                    <ns:CellPhoneNumber>555-1234</ns:CellPhoneNumber>
                    <ns:City>Kopavogur</ns:City>
                    <ns:Country/>
                    <ns:PostCode>200</ns:PostCode>
                    <ns:StateProvinceRegion/>
                    <ns:Type>Residential</ns:Type>
                </ns1:Address>
                <ns1:CardId>10021</ns1:CardId>
                <ns1:Comment>Im Hungry</ns1:Comment>
                <ns1:DeliveryType>Home</ns1:DeliveryType>
                <ns1:Directions>Go around the corner</ns1:Directions>
                <ns1:Email>tom@xyz.com</ns1:Email>
                <ns1:Name>Tom Tomsson</ns1:Name>
                <ns1:OrderDiscountLines>
                    <ns2:OrderDiscountLine>
                        <ns2:Description>Deal</ns2:Description>
                        <ns2:DiscountAmount>0.00</ns2:DiscountAmount>
                        <ns2:DiscountPercent>0.00</ns2:DiscountPercent>
                        <ns2:DiscountType>Deal</ns2:DiscountType>
                        <ns2:LineNumber>9750</ns2:LineNumber>
                        <ns2:No>{540B4057-A092-4356-B34D-433CCD3EADAE}</ns2:No>
                        <ns2:OfferNumber>S10025</ns2:OfferNumber>
                        <ns2:OrderId/>
                        <ns2:PeriodicDiscGroup/>
                        <ns2:PeriodicDiscType>Unknown</ns2:PeriodicDiscType>
                    </ns2:OrderDiscountLine>
                    <ns2:OrderDiscountLine>
                        <ns2:Description>Deal</ns2:Description>
                        <ns2:DiscountAmount>0.00</ns2:DiscountAmount>
                        <ns2:DiscountPercent>0.00</ns2:DiscountPercent>
                        <ns2:DiscountType>Deal</ns2:DiscountType>
                        <ns2:LineNumber>10000</ns2:LineNumber>
                        <ns2:No>{540B4057-A092-4356-B34D-433CCD3EADAE}</ns2:No>
                        <ns2:OfferNumber>S10025</ns2:OfferNumber>
                        <ns2:OrderId/>
                        <ns2:PeriodicDiscGroup/>
                        <ns2:PeriodicDiscType>Unknown</ns2:PeriodicDiscType>
                    </ns2:OrderDiscountLine>
                    <ns2:OrderDiscountLine>
                        <ns2:Description>Deal</ns2:Description>
                        <ns2:DiscountAmount>0.00</ns2:DiscountAmount>
                        <ns2:DiscountPercent>0.00</ns2:DiscountPercent>
                        <ns2:DiscountType>Deal</ns2:DiscountType>
                        <ns2:LineNumber>20000</ns2:LineNumber>
                        <ns2:No>{540B4057-A092-4356-B34D-433CCD3EADAE}</ns2:No>
                        <ns2:OfferNumber>S10025</ns2:OfferNumber>
                        <ns2:OrderId/>
                        <ns2:PeriodicDiscGroup/>
                        <ns2:PeriodicDiscType>Unknown</ns2:PeriodicDiscType>
                    </ns2:OrderDiscountLine>
                    <ns2:OrderDiscountLine>
                        <ns2:Description>Deal</ns2:Description>
                        <ns2:DiscountAmount>0.00</ns2:DiscountAmount>
                        <ns2:DiscountPercent>0.00</ns2:DiscountPercent>
                        <ns2:DiscountType>Deal</ns2:DiscountType>
                        <ns2:LineNumber>30000</ns2:LineNumber>
                        <ns2:No>{540B4057-A092-4356-B34D-433CCD3EADAE}</ns2:No>
                        <ns2:OfferNumber>S10025</ns2:OfferNumber>
                        <ns2:OrderId/>
                        <ns2:PeriodicDiscGroup/>
                        <ns2:PeriodicDiscType>Unknown</ns2:PeriodicDiscType>
                    </ns2:OrderDiscountLine>
                </ns1:OrderDiscountLines>
                <ns1:OrderLines>
                    <ns1:OrderHospLine>
                        <Id>{540B4057-A092-4356-B34D-433CCD3EADAE}</Id>
                        <ns1:Amount>7.50</ns1:Amount>
                        <ns1:DiscountAmount>0.00</ns1:DiscountAmount>
                        <ns1:DiscountPercent>0.00</ns1:DiscountPercent>
                        <ns1:IsADeal>true</ns1:IsADeal>
                        <ns1:ItemDescription>Cheese Burger Meal</ns1:ItemDescription>
                        <ns1:ItemId>S10025</ns1:ItemId>
                        <ns1:LineNumber>9750</ns1:LineNumber>
                        <ns1:LineType>Item</ns1:LineType>
                        <ns1:NetAmount>6.82</ns1:NetAmount>
                        <ns1:NetPrice>6.82</ns1:NetPrice>
                        <ns1:Price>7.50</ns1:Price>
                        <ns1:PriceModified>false</ns1:PriceModified>
                        <ns1:Quantity>1.00</ns1:Quantity>
                        <ns1:SubLines>
                            <ns1:OrderHospSubLine>
                                <ns1:Amount>5.32</ns1:Amount>
                                <ns1:DealCode>S10025</ns1:DealCode>
                                <ns1:DealLineId>10000</ns1:DealLineId>
                                <ns1:DealModifierLineId>0</ns1:DealModifierLineId>
                                <ns1:Description>Cheese Burger</ns1:Description>
                                <ns1:DiscountAmount>0.00</ns1:DiscountAmount>
                                <ns1:DiscountPercent>0.00</ns1:DiscountPercent>
                                <ns1:ItemId>R0024</ns1:ItemId>
                                <ns1:LineNumber>10000</ns1:LineNumber>
                                <ns1:ManualDiscountAmount>0.0</ns1:ManualDiscountAmount>
                                <ns1:ManualDiscountPercent>0.0</ns1:ManualDiscountPercent>
                                <ns1:ModifierGroupCode/>
                                <ns1:ModifierSubCode/>
                                <ns1:NetAmount>4.84</ns1:NetAmount>
                                <ns1:NetPrice>4.84</ns1:NetPrice>
                                <ns1:ParentSubLineId>0</ns1:ParentSubLineId>
                                <ns1:Price>5.32</ns1:Price>
                                <ns1:PriceReductionOnExclusion>false</ns1:PriceReductionOnExclusion>
                                <ns1:Quantity>1.00</ns1:Quantity>
                                <ns1:TAXAmount>0.48</ns1:TAXAmount>
                                <ns1:Type>Deal</ns1:Type>
                                <ns1:Uom>PORTION</ns1:Uom>
                            </ns1:OrderHospSubLine>
                            <ns1:OrderHospSubLine>
                                <ns1:Amount>1.28</ns1:Amount>
                                <ns1:DealCode>S10025</ns1:DealCode>
                                <ns1:DealLineId>20000</ns1:DealLineId>
                                <ns1:DealModifierLineId>70000</ns1:DealModifierLineId>
                                <ns1:Description>Jalapeno Popper</ns1:Description>
                                <ns1:DiscountAmount>0.00</ns1:DiscountAmount>
                                <ns1:DiscountPercent>0.00</ns1:DiscountPercent>
                                <ns1:ItemId>33430</ns1:ItemId>
                                <ns1:LineNumber>20000</ns1:LineNumber>
                                <ns1:ManualDiscountAmount>0.0</ns1:ManualDiscountAmount>
                                <ns1:ManualDiscountPercent>0.0</ns1:ManualDiscountPercent>
                                <ns1:ModifierGroupCode/>
                                <ns1:ModifierSubCode/>
                                <ns1:NetAmount>1.16</ns1:NetAmount>
                                <ns1:NetPrice>1.16</ns1:NetPrice>
                                <ns1:ParentSubLineId>0</ns1:ParentSubLineId>
                                <ns1:Price>1.28</ns1:Price>
                                <ns1:PriceReductionOnExclusion>false</ns1:PriceReductionOnExclusion>
                                <ns1:Quantity>1.00</ns1:Quantity>
                                <ns1:TAXAmount>0.12</ns1:TAXAmount>
                                <ns1:Type>Deal</ns1:Type>
                                <ns1:Uom>PORTION</ns1:Uom>
                            </ns1:OrderHospSubLine>
                            <ns1:OrderHospSubLine>
                                <ns1:Amount>0.90</ns1:Amount>
                                <ns1:DealCode>S10025</ns1:DealCode>
                                <ns1:DealLineId>30000</ns1:DealLineId>
                                <ns1:DealModifierLineId>70000</ns1:DealModifierLineId>
                                <ns1:Description>Orange Soda</ns1:Description>
                                <ns1:DiscountAmount>0.00</ns1:DiscountAmount>
                                <ns1:DiscountPercent>0.00</ns1:DiscountPercent>
                                <ns1:ItemId>30520</ns1:ItemId>
                                <ns1:LineNumber>30000</ns1:LineNumber>
                                <ns1:ManualDiscountAmount>0.0</ns1:ManualDiscountAmount>
                                <ns1:ManualDiscountPercent>0.0</ns1:ManualDiscountPercent>
                                <ns1:ModifierGroupCode/>
                                <ns1:ModifierSubCode/>
                                <ns1:NetAmount>0.82</ns1:NetAmount>
                                <ns1:NetPrice>0.82</ns1:NetPrice>
                                <ns1:ParentSubLineId>0</ns1:ParentSubLineId>
                                <ns1:Price>0.90</ns1:Price>
                                <ns1:PriceReductionOnExclusion>false</ns1:PriceReductionOnExclusion>
                                <ns1:Quantity>1.00</ns1:Quantity>
                                <ns1:TAXAmount>0.08</ns1:TAXAmount>
                                <ns1:Type>Deal</ns1:Type>
                                <ns1:Uom>REG</ns1:Uom>
                            </ns1:OrderHospSubLine>
                        </ns1:SubLines>
                        <ns1:TaxAmount>0.68</ns1:TaxAmount>
                        <ns1:UomId/>
                        <ns1:VariantDescription/>
                        <ns1:VariantId/>
                    </ns1:OrderHospLine>
                </ns1:OrderLines>
                <ns1:OrderPayment>
                    <ns1:Amount>7.50</ns1:Amount>
                    <ns1:AuthorizationCode>123456</ns1:AuthorizationCode>
                    <ns1:CardNumber>45XX..5555</ns1:CardNumber>
                    <ns1:CardType>VISA</ns1:CardType>
                    <ns1:CurrencyCode/>
                    <ns1:CurrencyFactor>1</ns1:CurrencyFactor>
                    <ns1:ExternalReference>My123456</ns1:ExternalReference>
                    <ns1:LineNumber>1</ns1:LineNumber>
                    <ns1:PaymentType>PreAuthorization</ns1:PaymentType>
                    <ns1:PreApprovedValidDate>2030-01-01</ns1:PreApprovedValidDate>
                    <ns1:TenderType>1</ns1:TenderType>
                    <ns1:TokenNumber>123456</ns1:TokenNumber>
                </ns1:OrderPayment>
                <ns1:PickupTime>2022-06-10T10:00:00</ns1:PickupTime>
                <ns1:RestaurantNo>S0017</ns1:RestaurantNo>
                <ns1:SalesType>TAKEAWAY</ns1:SalesType>
                <ns1:StoreId>S0017</ns1:StoreId>
                <ns1:TotalAmount>7.50</ns1:TotalAmount>
                <ns1:TotalDiscount>0.00</ns1:TotalDiscount>
                <ns1:TotalNetAmount>6.82</ns1:TotalNetAmount>
            </ser:request>
            <ser:returnOrderIdOnly>false</ser:returnOrderIdOnly>
        </ser:OrderHospCreate>
    </soapenv:Body>
</soapenv:Envelope>
See Also