App Logo
flipkart.com

Add a product to the Flipkart cart

Automatically add a product to the Flipkart cart on flipkart.com. Add a Flipkart India (flipkart.com) product to the cart of this browser, by product id (or product link) and, to choose the seller, an offer id from Get the sellers of a Flipkart product, with a quantity from 1 to 10. Without an offer id, the offer Flipkart picks by default is added. Returns the whole cart afterwards (each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in Indian rupees, the item count and the total amount), plus the product id, offer id and name of what was added and the quantity added. Works as a guest, with no account. Nothing is paid or ordered. An unknown product id, an offer id that is not one of the product's sellers, and a quantity Flipkart refuses fail with an error that says so.

Inputs

url optional

Flipkart product link with pid= in it. Used when no product_id is given.

offer_id optional

Offer id of the seller to buy from, from Get the sellers of a Flipkart product. Omit it for the offer Flipkart picks by default.

quantity optional

Number of units to add, 1 to 10.

Default: 1
product_id optional

Flipkart product id (16 letters and digits), the product_id of Search Flipkart products.

Output

name required
added required

Units added by this call.

count required

Number of items in the cart after the add, all lines together.

lines required
total required

Total amount Flipkart shows for the cart, in rupees, with the platform fee.

offerId required

Offer id (seller listing) that was added.

currency required
productId required

FAQ

Add a Flipkart India (flipkart.com) product to the cart of this browser, by product id (or product link) and, to choose the seller, an offer id from Get the sellers of a Flipkart product, with a quantity from 1 to 10. Without an offer id, the offer Flipkart picks by default is added. Returns the whole cart afterwards (each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in Indian rupees, the item count and the total amount), plus the product id, offer id and name of what was added and the quantity added. Works as a guest, with no account. Nothing is paid or ordered. An unknown product id, an offer id that is not one of the product's sellers, and a quantity Flipkart refuses fail with an error that says so.
Ask an AI agent connected to Reduck to run reduck/flipkart.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/flipkart.com/add_to_cart
You do not need one. "Add a product to the Flipkart cart" drives the real flipkart.com pages in a browser, so it works whether or not flipkart.com offers an API for this.
Optional: url, offer_id, quantity, product_id.
It returns name, added, count, lines, total, offerId, currency, productId.
No. It only uses pages of flipkart.com that are reachable without signing in.
It makes changes on flipkart.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/flipkart.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/flipkart.com/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking