Add a product to the Alternate cart
Automatically add a product to the Alternate cart on alternate.de. Add a product of Alternate Germany (alternate.de, the German store) to the shopping cart of this browser, from its Alternate product id (Art.-Nr.) or product page link, with a quantity, as the product page's add button does. Returns the product id and name, the units added, and the cart after the add: each line with its product id, name, quantity, unit price and line price in euros (VAT included), the item count, the items total and the currency. Alternate sells every product itself, so offerId and seller are null. Works as a guest, with no account: lines already in the cart stay. Nothing is ordered or paid. An unknown product, or a product page with no add button, fails with an error that says so.
Inputs
product requiredAn Alternate product id (Art.-Nr.) as Search Alternate products returns it, for example 1864243, or an alternate.de product page link.
quantity optionalHow many units to add.
Default: 1Output
name requiredadded requiredUnits this run added.
count requiredUnits in the cart after the add.
lines requiredtotal requiredTotal of the item lines in euros, VAT included, delivery not included.
offerId requiredAlways null: Alternate has one offer per product.
currency requiredproductId requiredFAQ
Remove a product from the Alternate cart
Remove a product from the shopping cart of this browser on Alternate Germany (alternate.de, the German store), from its Alternate product id (Art.-Nr.) or product page link, whatever its quantity, as the cart page's delete button does. Returns removed and the cart after it: each line with its product id, name, quantity, unit price and line price in euros (VAT included), the item count, the items total and the currency. A product that is not in the cart gives removed false and the cart unchanged, not an error. Works as a guest, with no account.
List Alternate cart items
List the shopping cart of this browser on Alternate Germany (alternate.de, the German store): each line with its product id (also its line id), name, quantity, unit price and line price in euros (VAT included), plus the item count, the items total (delivery not included) and the currency. Alternate sells every product itself, so offerId and seller are null. Works as a guest, with no account. A browser that never had a cart gives an empty cart.
Get Alternate product
Get one product of Alternate Germany (alternate.de, the German store) from its Alternate product id (Art.-Nr.) or product page link: name, brand, category, link, image, description, barcode number, manufacturer part number, price and currency (euros, VAT included), availability, condition, seller, average rating out of 5 and rating count, and whether the page offers an add to cart button. An id that is not an Alternate product fails with an error that says so.
