IUCServiceOrderCancelEx Method |
Cancel Customer Order with lineNo and quantity to cancel items from individual lines
Namespace: LSOmni.ServiceAssembly: LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2026.8.0
Syntaxbool OrderCancelEx(
string orderId,
string storeId,
string userId,
List<OrderCancelLine> lines
)
Parameters
- orderId String
- Customer Order Id
- storeId String
- Web Store Id
- userId String
- User who cancels the order, use Contact ID for logged in user
- lines ListOrderCancelLine
- List of Order Lines to cancel from, if empty whole order will be canceled
Return Value
Boolean
Remarks
LS Central WS2: CustomerOrderCancel
Example
This Sample request can be used in SOAP UI application to send request to LS Commerce.
Cancel a single quantity of one line on an existing Customer Order (leave lines empty to cancel the whole 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/2017">
<soapenv:Header/>
<soapenv:Body>
<ser:OrderCancelEx>
<ser:orderId>CO000123</ser:orderId>
<ser:storeId>S0013</ser:storeId>
<ser:userId>10021</ser:userId>
<ser:lines>
<ns1:OrderCancelLine>
<ns1:ItemNo>40020</ns1:ItemNo>
<ns1:LineNo>1</ns1:LineNo>
<ns1:Quantity>1</ns1:Quantity>
</ns1:OrderCancelLine>
</ser:lines>
</ser:OrderCancelEx>
</soapenv:Body>
</soapenv:Envelope>
See Also