Mutations
removeCart
Removes an existing shopping cart based on the provided cart ID. It allows users to remove a cart that is no longer needed or relevant.
Arguments
input
CartDeleteInput!
requiredThe 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>",
},
});
Was this page helpful?