App Logo
samsclub.com

Add a product to the Sam's Club cart

Automatically add a product to the Sam's Club cart on samsclub.com. Add a Sam's Club (samsclub.com, US) product to the cart of this browser, by its item id or product link, with a quantity, and return the whole cart afterwards: each line with its line id, product id (the item id), offer id, name, seller, quantity, unit price and line price in US dollars, plus the item count and the subtotal. A product that comes in options (size, color) is added by the item id of one combination, from the variants of Get a Sam's Club product. Works as a guest, with no account: lines already in the cart stay, and units of a product already in the cart are added to its line. Nothing is paid or ordered. An unknown item id, a link that is not a product page, a product Sam's Club does not sell online now, and a quantity above the limit of one order fail with an error that says so.

Inputs

url optional

Sam's Club product link (https://www.samsclub.com/ip/<name>/<item id>). Used when no item_id is given.

item_id optional

Sam's Club item id (productId of Search Sam's Club products, or of one variant of Get a Sam's Club product).

quantity optional

Number of units to add. Sam's Club limits the quantity of one order per product (maxQuantity of Get a Sam's Club product).

Default: 1

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

Subtotal of the cart in US dollars, before shipping and tax.

offerId required
productId required

Item id of the product added.

FAQ

Add a Sam's Club (samsclub.com, US) product to the cart of this browser, by its item id or product link, with a quantity, and return the whole cart afterwards: each line with its line id, product id (the item id), offer id, name, seller, quantity, unit price and line price in US dollars, plus the item count and the subtotal. A product that comes in options (size, color) is added by the item id of one combination, from the variants of Get a Sam's Club product. Works as a guest, with no account: lines already in the cart stay, and units of a product already in the cart are added to its line. Nothing is paid or ordered. An unknown item id, a link that is not a product page, a product Sam's Club does not sell online now, and a quantity above the limit of one order fail with an error that says so.
Ask an AI agent connected to Reduck to run reduck/samsclub.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/samsclub.com/add_to_cart
You do not need one. "Add a product to the Sam's Club cart" drives the real samsclub.com pages in a browser, so it works whether or not samsclub.com offers an API for this.
Optional: url, item_id, quantity.
It returns name, added, count, lines, total, offerId, productId.
No. It only uses pages of samsclub.com that are reachable without signing in.
It makes changes on samsclub.com, like sending, posting, booking or buying something.
Ask an AI agent connected to Reduck to run reduck/samsclub.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/samsclub.com/add_to_cart
It is one of Reduck's official scripts.

Start building not clicking