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 2026.8.0
Syntax
C#
OneList OneListItemModify(
	string oneListId,
	OneListItem item,
	string cardId,
	bool remove,
	bool calculate
)

Parameters

oneListId  String
OneList Id
item  OneListItem
OneList Item to add or remove
cardId  String
Card Id of the person making the changes
remove  Boolean
true if remove item, else false
calculate  Boolean
Recalculate OneList

Return Value

OneList
Updated OneList
Remarks
LS Central WS2: WishListItemModify

LS Central PageWS: wishLists/ItemModify

Example
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