Add product to emag.ro cart
Automatically add product to emag.ro cart on emag.ro. Add an emag.ro product to the shopping cart from its product page link or product code, with an optional quantity, and return the cart as the site holds it afterwards: each line with its product id, offer id, name, seller, quantity, unit price and line price in lei (RON), plus the item count and products total. 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 page that does not offer the add button (out of stock, no longer listed) fails with an error; a link that is not an emag.ro product page fails with an error.
Inputs
product requiredLink of an emag.ro product page (as Search emag products gives it) or its product code, 9 capital letters and digits, for example DM9NN8MBM.
quantity optionalHow many units to add to the cart.
Default: 1Output
name requiredadded requiredUnits this run added to the cart.
count requiredUnits in the cart after the add.
lines requiredtotal requiredProducts total in lei, taxes included.
offerId requiredproductId requiredFAQ
Remove product from emag.ro cart
Remove a product from the emag.ro 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, quantity, unit price and line price in lei (RON), plus the item count and products 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, pass the offer id to pick the line.
List emag.ro cart items
List the items in the emag.ro cart of this browser, as the site holds it: for each line its product id, offer id, name, seller, quantity, unit price and line price in lei (RON), plus the number of items and the products 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 emag.ro product
Fetch one emag.ro product page by its product code or link (as Search emag products returns). Returns title, brand, barcode or manufacturer number, category path, price in lei (RON) and the recommended retail price when shown, stock status and whether it can be ordered, the seller of the offer shown with its rating, the product rating and review count, how many offers exist, the main image, the description and the technical attributes. An unknown product fails with an error that says so.
