# Add a product to the Old Navy cart

Automatically add a product to the Old Navy cart on oldnavy.gap.com. Add a size of an Old Navy US (oldnavy.gap.com) product to the shopping bag of this browser, for shipping, and return the bag as the site holds it afterwards. Give the product id or link and the offerId of the size, both from Get Old Navy product, and a quantity from 1 to 5. Returns the product id, offer id, name, the number of units added, and the bag: the number of units, the estimated total before tax and shipping, and each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Old Navy can show units of one size on several lines, for example when an offer prices them differently. Works as a guest, with no account: lines already in the bag stay and are listed too. Nothing is paid or ordered. A product that Old Navy does not know, a missing or unknown offerId, an out of stock size, or a quantity out of range fails with a message that says so, and adds nothing.

- Site: oldnavy.gap.com
- Address: `reduck/oldnavy.gap.com/add_to_cart`
- Updated: 2026-11-26 (v1)
- Author: Reduck AI (reduck)

## Run it

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

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

## Input

- `productId` (string, required): Old Navy product id, color id or product page link, as returned by Search Old Navy products or Get Old Navy product.
- `offerId` (string, optional): The sku of the size to add, from the variants of Get Old Navy product. Needed when the product has more than one size.
- `quantity` (integer, optional): Number of units to add, 1 to 5.

## Output

- `name` (string | null, required)
- `added` (integer, required)
- `count` (integer, required)
- `lines` (array, required)
- `total` (number | null, required)
- `offerId` (string, required)
- `productId` (string, required)

## FAQ

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

Add a size of an Old Navy US (oldnavy.gap.com) product to the shopping bag of this browser, for shipping, and return the bag as the site holds it afterwards. Give the product id or link and the offerId of the size, both from Get Old Navy product, and a quantity from 1 to 5. Returns the product id, offer id, name, the number of units added, and the bag: the number of units, the estimated total before tax and shipping, and each line with its line id, product id, offer id, name, seller, quantity, unit price and line price in US dollars. Old Navy can show units of one size on several lines, for example when an offer prices them differently. Works as a guest, with no account: lines already in the bag stay and are listed too. Nothing is paid or ordered. A product that Old Navy does not know, a missing or unknown offerId, an out of stock size, or a quantity out of range fails with a message that says so, and adds nothing.

### How do I automatically add a product to the Old Navy cart on oldnavy.gap.com?

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

### Is there a oldnavy.gap.com API to add a product to the Old Navy cart?

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

### What information do I need to provide?

Required: productId. Optional: offerId, quantity.

### What does it return?

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

### Do I need to be logged in to oldnavy.gap.com?

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

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

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

### How do I run it?

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

### Who maintains it?

It is one of Reduck's official scripts.

Source: https://reduck.ai/explore/scripts/reduck/oldnavy.gap.com/add_to_cart
