IUCJsonOneListItemModify Method |
Add or remove Item in OneList without sending whole list
Namespace: LSOmni.ServiceAssembly: LSOmni.Service (in LSOmni.Service.dll) Version: Commerce Service for LS Central 2026.8.0
SyntaxOneList 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
OneListUpdated 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
{
"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