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.4
SyntaxOneList OneListItemModify(
string oneListId,
OneListItem item,
string cardId,
bool remove,
bool calculate
)
Parameters
- oneListId
- Type: SystemString
OneList Id - item
- Type: LSRetail.Omni.Domain.DataModel.Loyalty.BasketsOneListItem
OneList Item to add or remove - cardId
- Type: SystemString
Card Id of the person making the changes - remove
- Type: SystemBoolean
true if remove item, else false - calculate
- Type: SystemBoolean
Recalculate OneList
Return Value
Type:
OneListUpdated OneList
Examples
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