App Logo
hm.com

Add H&M France product to cart

Automatically add H&M France product to cart on hm.com. Add one size of an H&M France product (hm.com/fr_fr) to the guest cart of this browser, with a quantity from 1 to 10, and return the cart as the site holds it afterwards: each line with variant id, product id, name, brand, size, color, quantity, unit price and line price in euros, plus the item count and the items subtotal. Pass the variant id (product id plus size code, from Search or Get H&M France product). Given only a product id or a link, it fails with the list of sizes and their variant ids. A size that is out of stock fails with an error. Nothing is paid or ordered.

Inputs

product required

Variant id (13 digits: product id plus size code, for example 0685816001003 for size M), as returned by Search H&M France products or Get H&M France product. A product id or a product link is refused with the list of its variants.

quantity optional

Number of units to add.

Default: 1

Output

name required
added required
count required
lines required
total required
offerId required
productId required

FAQ

Add one size of an H&M France product (hm.com/fr_fr) to the guest cart of this browser, with a quantity from 1 to 10, and return the cart as the site holds it afterwards: each line with variant id, product id, name, brand, size, color, quantity, unit price and line price in euros, plus the item count and the items subtotal. Pass the variant id (product id plus size code, from Search or Get H&M France product). Given only a product id or a link, it fails with the list of sizes and their variant ids. A size that is out of stock fails with an error. Nothing is paid or ordered.
Ask an AI agent connected to Reduck to run reduck/hm.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/hm.com/add_to_cart
You do not need one. "Add H&M France product to cart" drives the real hm.com pages in a browser, so it works whether or not hm.com offers an API for this.
Required: product. Optional: quantity.
It returns name, added, count, lines, total, offerId, productId.
No. It only uses pages of hm.com that are reachable without signing in.
It makes changes on hm.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/hm.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/hm.com/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking