Remove John Lewis product from basket
Automatically remove John Lewis product from basket on johnlewis.com. Remove a product from the John Lewis UK store (johnlewis.com) basket of this browser by its product id (the sku id, as returned by List John Lewis basket items), whatever its quantity, and return what is left in the basket: each line with its line id, product id, offer id, name with the brand, seller, quantity, unit price and line price, plus the item count, the basket total and the currency (GBP). A product that is not in the basket is reported with removed false and the basket unchanged, not as a failure. Works as a guest, with no account.
Inputs
product_id requiredSku id of the line to remove: productId of List John Lewis basket items or Add John Lewis product to basket.
Output
count requiredNumber of units left in the basket.
lines requiredtotal requiredBasket subtotal before delivery, in pounds sterling.
removed requiredTrue when the product was in the basket and is gone now; false when it was not in the basket.
currency requiredGBP
FAQ
Add John Lewis product to basket
Add a product of the John Lewis UK store (johnlewis.com) to the basket of this browser, by its product number or link, with a quantity from 1 to 10, and return the whole basket afterwards: each line with its line id, product id (the sku id), offer id (always null), name with the brand, seller, quantity, unit price and line price, plus the item count, the basket total and the currency (GBP). A product with several colours or sizes needs the sku id of one of them (sku_id of Get John Lewis product). Works as a guest, with no account: lines already in the basket stay and are listed too. Nothing is paid or ordered. A variant that cannot be ordered, an unknown product number or sku id, and a link that is not a John Lewis product page fail with an error that says so. On a cloud browser, John Lewis accepts the add only from a UK address (country GB).
List John Lewis basket items
List the items in the John Lewis UK store (johnlewis.com) basket of this browser, as the site holds it: for each line its line id, product id (the sku id of the exact colour or size), offer id (always null), name with the brand, seller (always John Lewis), quantity, unit price and line price, plus the number of items, the basket total before delivery and the currency (GBP). The basket is the guest basket of the browser, so no sign-in is needed. An empty basket returns an empty list and a zero count. Saved-for-later items are not included.
Get John Lewis product
Read one product of the John Lewis UK store (johnlewis.com) by its product number or link. Returns the product number, link, title, brand, lowest and highest price in pounds sterling, rating, review count, description, category path, specifications, offer labels, the delivery and collection options with their prices, and every variant (colour or size) with its sku id, price, earlier price when reduced, availability, link and barcode. Pass a variant's sku id to Add John Lewis product to basket. An unknown product number, and a link that John Lewis answers with its "page not found" page, fail with an error that says so.
