Get Decathlon product
Automatically get Decathlon product on decathlon.fr. Fetch one Decathlon.fr product page from its link (as returned by Search Decathlon products). Returns the title, brand, description, rating and review count, the color shown, the images, and the variants of that color: each size with its sku id (the id that Add Decathlon product to cart takes), offer id, price and struck-through list price in euros, the seller (Decathlon or a marketplace seller), the condition and whether it can be bought. Also lists the other colors of the product with their link. A link that is not a Decathlon product page fails with an error that says so.
Inputs
url requiredLink of the product page (https://www.decathlon.fr/p/...), as returned by Search Decathlon products.
Output
url requiredtitle requiredvariants requiredbrand optionalcolor optionalimages optionalrating optionalmodel_id optionaldescription optionalother_colors optionalreview_count optionalitem_group_id optionalFAQ
Remove Decathlon product from cart
Remove a product from the Decathlon.fr cart of this browser by its product id (the sku id of the exact size, as returned by List Decathlon cart items), whatever its quantity, and return what is left in the cart: each line with its product id, offer id, name, seller, quantity, unit price and line price in euros, plus the item count and the total. 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.
List Decathlon cart items
List the items in the Decathlon.fr cart of this browser, as the site holds it: for each line its line id, product id (the sku id of the exact size), offer id, name, seller, quantity, unit price and line price in euros, plus the number of items and the total of the cart, delivery not included. 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.
Add Decathlon product to cart
Add a Decathlon.fr product to the shopping cart from its product page link, with an optional quantity, and return the cart as the site holds it afterwards: each line with its product id (the sku id of the exact size), offer id, name, seller, quantity, unit price and line price in euros, plus the item count and the total. Products come in colors and sizes: the link picks the color, and the sku_id picks the size. When the color has several sizes and no sku_id is given, it fails and lists the sizes with their sku_id (Get Decathlon product lists them too). Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. Nothing is paid or ordered. A product that cannot be bought (unavailable size, out of stock) fails with an error; a link that is not a Decathlon product page fails with an error.
