# Add a product to the Staples cart

Automatically add a product to the Staples cart on staples.com. Add a Staples product to the cart, for delivery, in the quantity asked. Returns the cart after the add, with the line of the product and how many units were added.

- Site: staples.com
- Address: `reduck/staples.com/add_to_cart`
- Updated: 2026-11-25 (v1)
- Author: Reduck AI (reduck)

## Run it

Ask an AI agent connected to Reduck over MCP (`https://mcp.reduck.ai/mcp`) to run `reduck/staples.com/add_to_cart`, or run it from a terminal:

```bash
npx @reduck-ai/cli@latest run --script reduck/staples.com/add_to_cart
```

## Input

- `product` (string, required): Staples item number (e.g. 2599373) or product page link.
- `variant` (string, optional): Item number of the variant to add (a color, a size), from the variants of get-product. Needed when the product is a group of variants.
- `quantity` (integer, optional): Units to add.

## Output

- `name` (string | null, optional)
- `added` (integer, optional): Units this call added to the cart.
- `count` (integer, optional): Units in the cart.
- `lines` (array, optional)
- `total` (number | null, optional): Item subtotal, without tax or shipping.
- `offerId` (string | null, optional)
- `productId` (string, optional)

## FAQ

### What does "Add a product to the Staples cart" do?

Add a Staples product to the cart, for delivery, in the quantity asked. Returns the cart after the add, with the line of the product and how many units were added.

### How do I automatically add a product to the Staples cart on staples.com?

Ask an AI agent connected to Reduck to run reduck/staples.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/staples.com/add_to_cart

### Is there a staples.com API to add a product to the Staples cart?

You do not need one. "Add a product to the Staples cart" drives the real staples.com pages in a browser, so it works whether or not staples.com offers an API for this.

### What information do I need to provide?

Required: product. Optional: variant, quantity.

### What does it return?

It returns name, added, count, lines, total, offerId, productId.

### Do I need to be logged in to staples.com?

No. It only uses pages of staples.com that are reachable without signing in.

### Does it change anything on staples.com, or only read data?

It makes changes on staples.com, like sending, posting, booking or buying something.

### How do I run it?

Ask an AI agent connected to Reduck to run reduck/staples.com/add_to_cart, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/staples.com/add_to_cart

### Who maintains it?

It is one of Reduck's official scripts.

Source: https://reduck.ai/explore/scripts/reduck/staples.com/add_to_cart
