Add Brico Depot product to cart
Automatically add Brico Depot product to cart on bricodepot.fr. Add a Brico Depot (bricodepot.fr) product to the shopping cart of this browser from its sku or product page link, with a quantity from 1 to 10, and return the cart as the site holds it afterwards: the item count, the items total in euros (taxes included) and each line with its line id, product id (the sku), offer id (always null), name, seller (always Brico Dépôt), quantity, unit price and line price. Works as a guest, with no account: the cart lives in the browser, so lines already in it stay and are listed too. A Brico Depot cart belongs to one depot: pass a depot id from Search Brico Depot depots, or leave it out to use the depot the cart or the browser already has. A product the depot cannot sell (out of stock, not enough units) fails with an error that says so, and so does a sku the site does not know or a link that is not a product page. Nothing is paid or ordered.
Inputs
product requiredSku from Search Brico Depot products (for example 5063022538369), or a product page link such as https://www.bricodepot.fr/p/5063022538369/ruban-adhesif-d-emballage-66-m-marron.
depot_id optionalDepot of the cart, the depot_id returned by Search Brico Depot depots. Needed when the cart and the browser have no depot yet.
quantity optionalHow many units to add.
Default: 1Output
name requiredadded requiredUnits this run added.
count requiredUnits in the cart.
lines requiredtotal requiredItems total in euros, taxes included, delivery not included.
offerId requiredproductId requiredFAQ
Search Brico Depot products
Search the Brico Depot catalogue (bricodepot.fr) by free text, with the site's sort orders and an optional category. Returns one page of 24 results: total result and page counts, has_next_page, and for each product its sku, name, link, price in euros (taxes included), struck-through price, price without tax, unit, brand, image, stock status and categories with their ids. Prices and stock depend on the depot: without a depot id the site's default prices are returned and stock quantity is null; pass a depot id from Search Brico Depot depots to get that depot's price and stock. Stop paging when has_next_page is false. A search with no match returns an empty list. A category id that the site rejects fails with an error that says so. Pass a sku to Get Brico Depot product.
Get Brico Depot product
Fetch one Brico Depot product (bricodepot.fr) by its sku (the id that Search Brico Depot products returns, for example 5063022538369) or by its product page link. Returns name, link, barcode, brand, price in euros (taxes included), struck-through price, price without tax, price per measure unit when the site gives one, unit, stock status, images, categories from the root down, and the characteristics the page shows (code and values). Prices and stock depend on the depot: without a depot id the site's default prices are returned and stock quantity is null; pass a depot id from Search Brico Depot depots to get that depot's price and stock. A link that is not a Brico Depot product page fails with an error, and so does a sku the site does not know.
Remove product from Brico Depot cart
Remove a product from the Brico Depot (bricodepot.fr) shopping cart of this browser by its product id (the sku that List Brico Depot cart items returns) or its product page link, whatever its quantity, and return what is left in the cart: the item count, the items total in euros (taxes included) and each line with its line id, product id, offer id, name, seller, quantity, unit price and line price. 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.
