Arguments

input
CartItemsDeleteInput!
required

The input object contains the unique identifier (ID) for the cart and the items that need to be deleted.

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.deleteCartItems({
  input: {
    id: "<CART_ID>",
    items: {
      shopifyProducts: [
        {
          variantId: "44346795295022",
        },
      ],
    },
  },
});