Click or drag to resize

IUCJsonOneListItemModify Method

Add or remove Item in OneList without sending whole list

Namespace:  LSOmni.Service
Assembly:  LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2024.6
Syntax
C#
OneList OneListItemModify(
	string oneListId,
	OneListItem item,
	bool remove,
	bool calculate
)

Parameters

oneListId
Type: SystemString
OneList Id
item
Type: LSRetail.Omni.Domain.DataModel.Loyalty.BasketsOneListItem
OneList Item to add or remove
remove
Type: SystemBoolean
true if remove item, else false
calculate
Type: SystemBoolean
Recalculate OneList

Return Value

Type: OneList
Updated OneList
Examples
Sample requests including minimum data needed to be able to process the request in LS Commerce

REST Sample Request
{
    "onelistId":"1117AC57-10BD-4F7C-974D-FA19B1B027FB",
    "item": {
        "ItemDescription": "T-shirt Linda Wear",
        "ItemId": "40045",
        "Quantity": 1,
        "VariantDescription": "BLACK/40",
        "VariantId": "015"
    },
    "remove": false,
    "calculate": true
}
See Also