Arguments

input
CartItemsUpdateInput!
required

The input object contains the unique identifier (ID) for the cart and the items with their quantities that need to be updated.

Returns

CartResponse.*
CartResponse

Any requested field from the CartResponse object.

Usage

import { RyeClient, Marketplace } from "@rye-api/rye-sdk";

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

const result = await ryeClient.updateCartItems({
  input: {
    id: "<CART_ID>",
    items: {
      amazonCartItemsInput: [
        {
          productId: "B007W3DDUW",
          quantity: 2,
        },
      ],
    },
  },
});