List Brico Depot cart items
Automatically list Brico Depot cart items on bricodepot.fr. List the items in the Brico Depot (bricodepot.fr) shopping cart of this browser, as the site holds it: the item count, the items total in euros (taxes included, delivery not 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. The cart is the guest cart of the browser, so no sign-in is needed. An empty cart, or a browser that has no cart yet, returns an empty list and a zero count.
Inputs
None
Output
count requiredUnits in the cart.
lines requiredtotal requiredItems total in euros, taxes included, delivery not included.
FAQ
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.
