Cart
A cart contains a collection of items, prices, discounts, etc... It does not contain customer-related data.
interface Cart$1 {
base_amount?: number;
cart_amount?: number;
channel_id?: number;
coupons?: AppliedCoupon[];
created_time?: string;
currency?: CartCurrency;
customer_id?: number;
discount_amount?: number;
discounts?: AppliedDiscount[];
email?: string;
id?: string;
line_items?: LineItems;
locale?: string;
parent_id?: string;
redirect_urls?: RedirectUrls;
tax_included?: boolean;
updated_time?: string;
}Properties
| Name | Required | Type | Description |
|---|---|---|---|
base_amount | Optional | number | Sum of cart line-item amounts before cart-level discounts, coupons, or taxes. |
cart_amount | Optional | number | Sum of cart line-item amounts minus cart-level discounts and coupons. This amount includes taxes (where applicable). |
channel_id | Optional | number | If no channel is specified, defaults to 1. |
coupons | Optional | AppliedCoupon[] | Coupon applied in cart. |
created_time | Optional | string | Time when the cart was created. |
currency | Optional | CartCurrency | This will always be the same between cart and checkout. |
customer_id | Optional | number | ID of the customer to which the cart belongs. |
discount_amount | Optional | number | Discounted amount. |
discounts | Optional | AppliedDiscount[] | Discounts applied in cart. |
email | Optional | string | The cart's email. This is the same email that is used in the billing address. |
id | Optional | string | Cart ID. |
line_items | Optional | LineItems | Cart line items. |
locale | Optional | string | Locale of the cart. |
parent_id | Optional | string | Bundled items will have their parent's item Id. |
redirect_urls | Optional | RedirectUrls | Redirect URLs for checkout. |
tax_included | Optional | boolean | Information if tax is included. |
updated_time | Optional | string | Time when the cart was last updated. |