App Logo
johnlewis.com

Add John Lewis product to basket

Automatically add John Lewis product to basket on johnlewis.com. 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).

Inputs

product required

John Lewis product number (product_id of Search John Lewis products) or product link (https://www.johnlewis.com/<name>/p<number>).

sku_id optional

Sku id of the colour or size to add (sku_id of Get John Lewis product). Needed when the product has more than one variant.

quantity optional

Number of units to add, 1 to 10.

Default: 1

Output

name required
added required

Units added by this call.

count required

Number of units in the basket after the add, all lines together.

lines required
total required

Basket subtotal before delivery, in pounds sterling.

offerId required

Always null: John Lewis has no offer id.

currency required

GBP

productId required

Sku id of the variant added, as in the basket lines.

FAQ

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).
Ask an AI agent connected to Reduck to run reduck/johnlewis.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/johnlewis.com/add_to_cart
You do not need one. "Add John Lewis product to basket" drives the real johnlewis.com pages in a browser, so it works whether or not johnlewis.com offers an API for this.
Required: product. Optional: sku_id, quantity.
It returns name, added, count, lines, total, offerId, currency, productId.
No. It only uses pages of johnlewis.com that are reachable without signing in.
It makes changes on johnlewis.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/johnlewis.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/johnlewis.com/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking