StoreCart

Properties#

idstring
The ID of the cart.
currency_codestring
The currency of the cart
original_item_totalnumber
The original item total of the cart.
original_item_subtotalnumber
The original item subtotal of the cart.
original_item_tax_totalnumber
The original item tax total of the cart.
item_totalnumber
The item total of the cart.
item_subtotalnumber
The item subtotal of the cart.
item_tax_totalnumber
The item tax total of the cart.
original_totalnumber
The original total of the cart.
original_subtotalnumber
The original subtotal of the cart.
original_tax_totalnumber
The original tax total of the cart.
totalnumber
The total of the cart.
subtotalnumber
The subtotal of the cart. (Excluding taxes)
tax_totalnumber
The tax total of the cart.
discount_totalnumber
The discount total of the cart.
discount_tax_totalnumber
The discount tax total of the cart.
gift_card_totalnumber
The gift card total of the cart.
gift_card_tax_totalnumber
The gift card tax total of the cart.
shipping_totalnumber
The shipping total of the cart.
shipping_subtotalnumber
The shipping subtotal of the cart.
shipping_tax_totalnumber
The shipping tax total of the cart.
original_shipping_totalnumber
The original shipping total of the cart.
original_shipping_subtotalnumber
The original shipping subtotal of the cart.
original_shipping_tax_totalnumber
The original shipping tax total of the cart.
promotionsStoreCartPromotion[]
The promotions applied to the cart.
region_idstringOptional
The ID of the region the cart belongs to.
customer_idstringOptional
The ID of the associated customer
sales_channel_idstringOptional
The ID of the sales channel the cart belongs to.
emailstringOptional
The email of the customer that owns the cart.
metadatanull | Record<string, unknown>Optional
Holds custom data in key-value pairs.
created_atstring | DateOptional
When the cart was created.
updated_atstring | DateOptional
When the cart was updated.
shipping_addressStoreCartAddressOptional
The cart's shipping address.
billing_addressStoreCartAddressOptional
The cart's billing address.
itemsStoreCartLineItem[]Optional
The cart's items.
shipping_methodsStoreCartShippingMethod[]Optional
The cart's shipping methods.
payment_collectionStorePaymentCollectionOptional
The cart's payment collection.
regionStoreRegionOptional
The cart's region
Was this page helpful?
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break