---
title: "cart"

doc_type: static
doc_category: static
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/sline/object/cart'
  md: 'https://developer.shopline.com/docs/sline/object/cart.md'
---

# cart


    A customer’s cart.

    



    <div>
    
        ## Properties

        
<ObjectProperty 
    name="cart_level_discount_applications"
    types={[<Mdx>array of [discount_application](https://developer.shopline.com/docs/sline/object/discount-application.md)</Mdx>]}
>
<ObjectSummary>
A list of cart discount details.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="discount_applications"
    types={[<Mdx>array of [discount_application](https://developer.shopline.com/docs/sline/object/discount-application.md)</Mdx>]}
>
<ObjectSummary>
A list of order discount details.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="empty"
    types={[<Mdx>boolean</Mdx>]}
>
<ObjectSummary>
Whether the cart contains items.
- `true`: The cart does not contain items.
- `false`: The cart contains items.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="item_count"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The number of items in the cart.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="items"
    types={[<Mdx>array of [line_item](https://developer.shopline.com/docs/sline/object/line-item.md)</Mdx>]}
>
<ObjectSummary>
The line items in the cart.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="items_subtotal_price"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The total price of items in the cart after all line item discounts are applied. The price excludes cart discounts and shipping costs. Whether the price excludes taxes depends on the store’s tax settings.


The value is output in the subunit of the customer's local currency.

:::tip{title="TIP"} 
Use [money_with_currency](https://developer.shopline.com/docs/sline/filter/money-with-currency.md) filter to output a formatted amount. 
:::
</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="original_total_price"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The total price of items in the cart before any discount is applied.


The value is output in the subunit of the customer's local currency.

:::tip{title="TIP"} 
Use [money_with_currency](https://developer.shopline.com/docs/sline/filter/money-with-currency.md) filter to output a formatted amount. 
:::
</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="requires_shipping"
    types={[<Mdx>boolean</Mdx>]}
>
<ObjectSummary>
Whether any item in the cart requires shipping.
- `true`: Some items in the cart require shipping.
- `false`: No item in the cart requires shipping.


</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="total_discount"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The total amount of all discounts.

The value is output in the subunit of the customer's local currency.

:::tip{title="TIP"} 
Use [money_with_currency](https://developer.shopline.com/docs/sline/filter/money-with-currency.md) filter to output a formatted amount. 
:::
</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="total_price"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The total price of items in the cart after all discounts are applied.

The value is output in the subunit of the customer's local currency.

:::tip{title="TIP"} 
Use [money_with_currency](https://developer.shopline.com/docs/sline/filter/money-with-currency.md) filter to output a formatted amount. 
:::
</ObjectSummary>
</ObjectProperty>
        
<ObjectProperty 
    name="total_weight"
    types={[<Mdx>integer</Mdx>]}
>
<ObjectSummary>
The total weight of items in the cart. Unit: g.


</ObjectSummary>
</ObjectProperty>
        
    
    </div>


