Remove a line from the Nykaa bag
Automatically remove a line from the Nykaa bag on nykaa.com. Remove one line from the bag of this browser in the Nykaa India store (nykaa.com), by its lineId or productId from list_cart_items. It returns removed and the bag after the change (lines, units, grand total in Indian rupees). When the bag has no such line, it changes nothing and returns removed false. It works on the guest bag when nobody is signed in.
Inputs
lineId optionallineId of the bag line, from list_cart_items.
productId optionalproductId of the bag line, from list_cart_items. Give lineId or productId.
Output
count requiredNumber of units in the bag.
lines requiredtotal requiredGrand total of the bag in Indian rupees. Null when the bag is empty.
removed requiredFalse when the bag had no such line: nothing changed.
currency requiredINR
FAQ
Search Nykaa products
Search products in the Nykaa India store (nykaa.com) by text. It returns up to 20 products per page with their id, brand, link, price and maximum retail price in Indian rupees, discount, rating and stock, plus the total number found. Nykaa sends some searches, for example "lipstick", to a category page: then the script returns that category's products and the category link in redirectUrl. Use page for the next pages and sort for the order Nykaa offers. A page past the last one returns an empty list. Nykaa can show a few near matches for a search with no exact match.
Add a product to the Nykaa bag
Add a product of the Nykaa India store (nykaa.com) to the bag of this browser, in the quantity you give. A product with shades or sizes needs variantId, from get-product. It returns the product id added and the bag after the change (lines, units, grand total in Indian rupees). It refuses an unknown product, a missing or wrong shade or size, a product out of stock, and a quantity below 1 or above the limit Nykaa sets for the product. It adds to the guest bag when nobody is signed in; Nykaa needs no delivery pincode for it. It never goes to checkout.
List Nykaa bag items
List the bag (cart) of this browser in the Nykaa India store (nykaa.com): each line with its line id, product id, name, seller, quantity, unit price and line price, plus the number of units and the grand total, in Indian rupees. It reads the guest bag when nobody is signed in; Nykaa needs no delivery pincode for it. An empty bag returns no lines and a null total.
