Cart

The shopping cart model schema.

Attributes

Attribute

Type

Example

Description

total

*required

Float

100.0

Total for the whole cart that the shopper will pay (before tax and shipping normally)

items

*required

Array of LineItem

[LineItem, LineItem]

An array of all the line items in the cart. See LineItem for model schema properties.

Sample Payload

{
currency: 'USD',
total: 100.0,
total_discount: 5.0,
total_weight: 2,
items: [LineItem]
}