Retrieve a Cart by its ID. This query can be used to retrieve information about an existing cart.
The ID of the Cart
Cart
Any requested field from the CartResponse object.
CartResponse
import { RyeClient, Marketplace } from "@rye-api/rye-sdk"; const ryeClient = new RyeClient({ authHeader: "<AUTH_HEADER>", shopperIp: "<SHOPPER_IP>", }); const result = await ryeClient.getCart({ id: "<CART_ID>", });
Was this page helpful?