Remove a product from the Samsung cart
Automatically remove a product from the Samsung cart on samsung.com. Remove a product from the Samsung US store (samsung.com/us) cart of this browser by its product id (the model code, as returned by List Samsung cart items), whatever its quantity and on every line it sits on, and return what is left in the cart: each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars, plus the item count and the subtotal. A product that is not in the cart is reported with removed false and the cart unchanged, not as a failure. Works as a guest, with no account.
Inputs
product_id requiredModel code (SKU) of the product to remove: productId of List Samsung cart items or Add a product to the Samsung cart.
Output
count requiredNumber of units left in the cart.
lines requiredtotal requiredSubtotal of the cart in US dollars, before tax and delivery.
removed requiredTrue when the product was in the cart and is gone now; false when it was not in the cart.
FAQ
List Samsung cart items
List the items in the Samsung US store (samsung.com/us) cart of this browser, as the site holds it: for each line its line id, product id (the model code), offer id (the same model code), name, seller (always Samsung), quantity, unit price and line price in US dollars, plus the number of items and the subtotal of the cart, before tax and delivery. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart returns an empty list and a zero count.
Get Samsung product
Get a product of the Samsung US store (samsung.com/us) by its model code (SKU) or its product link. Returns the model asked for (name, family, category, link, sale and regular price in US dollars, stock status, rating, review count, images) and every configuration of its product family (color, storage, size, carrier...), each with its own model code to pass to Add a product to the Samsung cart, its options, price, stock status and link. A link to a product family page with no model code in it, a link that is not a Samsung US product link, and a model code Samsung US does not sell fail with an error that says so.
Add a product to the Samsung cart
Add a product of the Samsung US store (samsung.com/us) to the cart of this browser, by its model code (SKU) or its product link, with a quantity from 1 to 10, and return the whole cart afterwards: each line with its line id, product id (the model code), offer id, name, seller (always Samsung), quantity, unit price and line price in US dollars, plus the item count and the subtotal, and the product added with the number of units Samsung added. Pick the configuration (color, storage, size, carrier) with Get Samsung product: each one has its own model code. Works as a guest, with no account; lines already in the cart stay. Nothing is paid or ordered. A family page link with no model code, an unknown model code, and a product or quantity Samsung does not sell online fail with an error that gives Samsung's reason.
