Arguments

input
CartDeleteInput!
required

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

Returns

DeletedCart.deletedId
DeletedCart

The unique identifier (ID) of the deleted cart.

Usage

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

const ryeClient = new RyeClient("<AUTH_HEADER>", "<SHOPPER_IP>");

const result = await ryeClient.removeCart({
  input: {
    id: "<CART_ID>",
  },
});