rami_levy_remove_item
Remove one product from the cart by productId and re-sync it with the Rami Levy server. Get the updated totals, plus clear notifications if items were rejected or the cart was reset after a recent order.
Instructions
Remove one product from the cart by productId, then re-syncs the remaining cart to the real account. Returns cartTotal (local estimate) and serverTotal (Rami Levy's own total — authoritative). ok:false with a transport reason means nothing changed. reason items_rejected means the server refused the listed products; they have been removed from the cart too, so tell the user and pick alternatives. If resetAfterOrder {orderId, createdAt} is present, an order was placed since the last sync, so the items from before it were treated as bought and cleared first; tell the user the cart started fresh after that order.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes |