--- url: https://developer.youcan.shop/themes/objects/cart.md --- # `cart` object The customer's cart. ## Properties *** | Name | Type | Description | | -------------------------- | ---------------------------------------------------------------- | -------------------------------------------------- | | `id` | [string](../basics/types#string) | Cart identifier | | `items` | [array](../basics/types#array) of [cart\_item](cart_item) object | Cart items | | `sub_total` | [number](../basics/types#number) | Cart items subtotal | | `discounted_sub_total` | [number](../basics/types#number) | Cart items subtotal after any discount | | `total` | [number](../basics/types#number) | Cart total (includes VAT, shipping, and coupon discount) | | `one_page_checkout` | [boolean](../basics/types#boolean) | Whether one page checkout is toggled on or off | | `available_shipping_options` | [array](../basics/types#array) of [shipping\_zone](shipping_zone) object | List of available shipping zones | | `detected_country` | [array](../basics/types#array) of [shipping\_zone](shipping_zone) object | The shipping zone based on the customer's country | | `cart_submit_url` | [string](../basics/types#string) | The checkout URL | | `note` | [string](../basics/types#string) | The cart note, set with the [cart form](../tags/form#cart) | | `count` | [number](../basics/types#number) | Total items in cart | | `discounted_price` | [number](../basics/types#number) | The discount amount when a coupon is active | | `vat` | [number](../basics/types#number) | The VAT percentage | | `tax_amount` | [number](../basics/types#number) | Total tax amount | | `coupon` | [array](../basics/types#array) of [coupon](coupon) object | Array of active coupon |