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({
  authHeader: "<AUTH_HEADER>",
  shopperIp: "<SHOPPER_IP>",
});

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