Get customer cart
get_customer_cartRetrieve a customer's current cart, including items, quantities, prices, totals, and updated_at, to analyze abandoned carts and distinguish empty carts from customers who never had one.
Instructions
Get the current cart of a customer — the source for abandoned-cart work: items with quantity and per-unit/line prices, plus total_price (before discounts) and total_final_price (after item and bundle discounts). An empty cart, and a customer who never had one, both return items: [] with zero totals; updated_at is absent in the never-had-one case and is the only way to tell the two apart — there is no abandoned-cart flag, so decide staleness from updated_at yourself. product_variant_id is NOT a unique key for a line: the same variant appears in several items when it is part of a bundle, was added with different addons, or was picked as a gift. quantity is what the buyer put in and may exceed stock — the API clamps it only when they reopen the cart or check out. Items whose variant was unpublished are dropped from the response. A cart promocode is NOT reflected in total_final_price (unlike Order.total_final_price), so cart totals are not a forecast of the order total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Customer ID (UUID). |