App Logo
eightsleep.com

Add an Eight Sleep offer to the cart

Automatically add an Eight Sleep offer to the cart on eightsleep.com. Add one Eight Sleep US offer (a size, zone or pack option of a product) to the guest cart of this browser, in the quantity given, and return the cart after the add with the product id, offer id and name of the line added. Get offer ids from eightsleep.com/get_product. An offer id that the store does not sell, or a quantity below 1, is refused before the cart changes. The script does not add the items the site asks for with some products, for example the Autopilot plan with a Pod, and it does not go to checkout.

Inputs

offerId required

The offer id from eightsleep.com/get_product, e.g. variant_01JHRFW1WQ44KERHQRZWE5Y4A4.

quantity optional

How many to add. 1 or more.

Default: 1

Output

added required
count required
lines required
total required

Cart total before tax, in US dollars.

offerId required
name optional
productId optional

FAQ

Add one Eight Sleep US offer (a size, zone or pack option of a product) to the guest cart of this browser, in the quantity given, and return the cart after the add with the product id, offer id and name of the line added. Get offer ids from eightsleep.com/get_product. An offer id that the store does not sell, or a quantity below 1, is refused before the cart changes. The script does not add the items the site asks for with some products, for example the Autopilot plan with a Pod, and it does not go to checkout.
Ask an AI agent connected to Reduck to run reduck/eightsleep.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/eightsleep.com/add_to_cart
You do not need one. "Add an Eight Sleep offer to the cart" drives the real eightsleep.com pages in a browser, so it works whether or not eightsleep.com offers an API for this.
Required: offerId. Optional: quantity.
It returns name, added, count, lines, total, offerId, productId.
No. It only uses pages of eightsleep.com that are reachable without signing in.
It makes changes on eightsleep.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/eightsleep.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/eightsleep.com/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking