Add a product to the Auchan cart
Automatically add a product to the Auchan cart on auchan.fr. Add a product of the Auchan France store (auchan.fr) to the cart of this browser, from its product id, reference or link, with a quantity from 1 to 99, and return the cart afterwards: each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in euros, plus the item count and the cart total. Works as a guest, with no account; lines already in the cart stay and are listed too. Grocery products need a store: pass a postcode and the script chooses the nearest drive or Click & Collect store Auchan lists for it, or keep the store this browser chose before. For a product that marketplace sellers sell, pass the offer id from Get Auchan product offers to buy from that seller; without it, the offer the site shows first is added. Nothing is paid or ordered, and no delivery slot is booked. An unknown product, a link that is not an Auchan product page, a quantity out of range, an offer the product does not have, and a product the site does not sell now fail with a message that says so.
Inputs
product requiredThe product id or reference from Search Auchan products, or an auchan.fr product link.
offerId optionalThe offer id from Get Auchan product offers, to buy from that seller.
postcode optionalFrench postcode (5 digits). When given, the script chooses the nearest drive or Click & Collect store Auchan lists for it before the add.
quantity optionalHow many units to add, from 1 to 99.
Default: 1Output
name requiredadded requiredUnits this run added to the cart.
count requiredUnits in the cart after the add.
lines requiredtotal requiredCart total in euros after the add.
seller requiredofferId requiredcurrency requiredproductId requiredFAQ
Remove a product from the Auchan cart
Remove a product from the Auchan France (auchan.fr) cart of this browser by its product id, whatever its quantity, 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 euros, plus the item count and the cart total. Give the offer id or the line id from List Auchan cart items to remove one seller's line only when the product is in the cart from several sellers. Works as a guest, with no account. A product that is not in the cart gives removed false, and nothing is changed.
List Auchan cart items
List the items in the Auchan France (auchan.fr) cart of this browser, as the site holds it: for each line its line id, product id, offer id, name with the brand, seller (the drive or Click & Collect store, or the marketplace seller), quantity, unit price and line price in euros, plus the number of items and the cart total. The cart is the guest cart of the browser, so no sign-in is needed; its prices are those of the store this browser chose. An empty cart returns an empty list and a zero count.
Get an Auchan product
Read one product of the Auchan France store (auchan.fr) from its product id, its reference or its link: name, brand, description, packaging, price in euros, price per kilo or per litre, availability, rating and review count, images, the breadcrumb of categories, and the offer the page shows first (offer id, seller id and type, delivery channel, stock), with the number of offers when marketplace sellers also sell it (Get Auchan product offers lists them). Auchan shows grocery prices only for a chosen store: pass a postcode and the script chooses the nearest drive or Click & Collect store the site lists for it, as a guest. Without a postcode, and when this browser has chosen no store before, grocery prices are null. An id or link that the store does not have fails with a message that says so.
