> ## Documentation Index
> Fetch the complete documentation index at: https://docs-test.rye.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# addCartItems

> Adds new items to an existing shopping cart. This mutation resets selected shipping method of updated stores, and user will need to select shipping method again.

### Arguments

<ParamField path="input" type="CartItemsAddInput!" required>
  The `input` object contains the unique identifier (`ID`) for the cart and the items that need to be added.
</ParamField>

### Returns

<ParamField path="CartResponse.*" type="CartResponse">
  Any requested field from the [`CartResponse`](/docs/api-reference/cartresponse) object.
</ParamField>

## Usage

```ts theme={null}
import { RyeClient, Marketplace } from "@rye-api/rye-sdk";

const ryeClient = new RyeClient({
  authHeader: "<AUTH_HEADER>",
  shopperIp: "<SHOPPER_IP>",
});

const result = await ryeClient.addCartItems({
  input: {
    id: "<CART_ID>",
    items: {
      shopifyCartItemsInput: [
        {
          quantity: 1,
          variantId: "44346795295022",
        },
      ],
    },
  },
});
```
