Cart - Cart Module Data Models Reference

This documentation provides a reference to the Cart data model. It belongs to the Cart Module.

idPrimaryKeyModifier<IdProperty>
The ID of the cart.
currency_codeTextProperty
The ISO 3 currency code of the cart, such as usd.
itemsHasMany<LineItem>
The associated items.
shipping_methodsHasMany<ShippingMethod>
The associated shipping_methods.
region_idTextPropertyOptional
The ID of the cart's region.
customer_idTextPropertyOptional
The ID of the cart's customer.
sales_channel_idTextPropertyOptional
The ID of the cart's sales channel.
emailTextPropertyOptional
The email of the cart's customer
metadataJSONPropertyOptional
Holds custom data in key-value pairs.
completed_atDateTimePropertyOptional
The date the cart was completed.
shipping_addressHasOneWithForeignKey<Address>Optional
The associated shipping_address.
billing_addressHasOneWithForeignKey<Address>Optional
The associated billing_address.
Was this page helpful?