Remove a product from the dm cart
Automatically remove a product from the dm cart on dm.de. Remove a product from the guest shopping cart of this browser on dm Germany (dm.de, the German store), by product id or product link, whatever its quantity. Returns the cart after the removal (number of articles, value of the articles and currency, every line) and removed true; a product that is not in the cart leaves the cart as it is and returns removed false. Other lines are never touched. No sign-in needed.
Inputs
product requireddm product id as List dm cart items gives it (productId), or the product link.
Output
count requiredNumber of articles in the cart after the removal.
lines requiredtotal requiredValue of the articles, VAT included, before the shipping cost the checkout adds.
removed requiredTrue when the product was in the cart and is now gone.
currency requiredCurrency of the prices, EUR. Null for an empty cart, for which dm gives none.
FAQ
Add a product to the dm cart
Add a product to the guest shopping cart of this browser on dm Germany (dm.de, the German store), by product id or product link, with a quantity from 1 to 10. Returns the cart after the add (number of articles, value of the articles and currency, every line) and the product and quantity that were added. Prices are the online shop prices dm shows a new guest with no dm store chosen. A product the online shop does not sell now, an unknown product id, or a link that is not a product page fails with an error that says so. No sign-in needed; nothing is ordered or paid.
List dm cart items
Read the guest shopping cart of this browser on dm Germany (dm.de, the German store): number of articles, value of the articles and currency, and every line with its product id, name, seller (dm), quantity, unit price and line price in euros. The total is the value of the articles before the shipping cost that the checkout adds. Prices are the online shop prices dm shows a new guest with no dm store chosen. An empty cart returns count 0 and no lines. No sign-in needed.
Get dm product
Fetch one dm Germany (dm.de, the German store) product page by product id or product link. Returns title, brand, barcode number, link, price in euros, unit price text, the price note dm shows (for example since when the price did not go up), category path, images, labels, the description sections (description, features, ingredients, use and others), online availability with the quantities the shop lets a person order, the other sizes or colors with their product ids, rating and review count. Prices and availability are what dm shows a new guest with no dm store chosen; availability in one dm store is not part of it. Texts are in German. An unknown product id fails with an error that says so.
