Add Back Market France product to cart
Automatically add Back Market France product to cart on backmarket.fr. Add a backmarket.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, offer id, name, seller, condition grade, quantity, unit price and line price in euros, plus the item count and total. The grade in the link (l parameter) decides which offer and which seller are added. 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 is out of stock, or a link that is not a Back Market product page, fails with an error.
Inputs
link requiredProduct page link on www.backmarket.fr, from Search Back Market France products (with the grade in l=).
quantity optionalHow many units to add, 1 to 10.
Default: 1Output
added requiredcount requiredlines requiredproductId requiredname optionaltotal optionalofferId optionalFAQ
Remove Back Market France product from cart
Remove a product from the backmarket.fr cart of this browser by its product id, whatever its quantity, and return what is left in the cart: each line with its product id, offer id, name, seller, condition grade, quantity, unit price and line price in euros, plus the item count and total. A product that is not in the cart is reported with removed false and the cart unchanged, not as a failure. When the same product is in the cart from several sellers or in several grades, pass the offer id to pick the line.
List Back Market France cart items
List the items in the backmarket.fr cart of this browser, as the site holds it: for each line its product id, offer id, name, seller, condition grade, 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. An empty cart returns an empty list and a zero count.
Get Back Market France product
Fetch one backmarket.fr product page from its link (as Search Back Market France products returns it, the grade is the l parameter). Returns the title, brand, model, color, type (new or refurbished), the price when new, and the offer the page shows for that grade: offer id, price in euros, condition grade, seller (name, country, city, seller since), warranty, delivery dates and whether delivery is free. Also returns the grade and variant choices the page offers and whether the product is out of stock. A link that is not a product page fails with an error.
