Cart
A cart represents a virtual shopping bag. It can be used to complete an order, a swap, or a claim.
Properties
idstringRequiredThe cart's ID
created_atDateRequiredThe date with timezone at which the resource was created.
updated_atDateRequiredThe date with timezone at which the resource was updated.
deleted_atnull | DateRequiredThe date with timezone at which the resource was deleted.
object"cart"RequiredDefault: "cart"
emailstringRequiredThe email associated with the cart
billing_address_idstringRequiredThe billing address's ID
The details of the billing address associated with the cart.
shipping_address_idstringRequiredThe shipping address's ID
The details of the shipping address associated with the cart.
The line items added to the cart.
region_idstringRequiredThe region's ID
The details of the region associated with the cart.
An array of details of all discounts applied to the cart.
An array of details of all gift cards applied to the cart.
customer_idstringRequiredThe customer's ID
The details of the customer the cart belongs to.
The details of the selected payment session in the cart.
The details of all payment sessions created on the cart.
payment_idstringRequiredThe payment's ID if available
The details of the payment associated with the cart.
The details of the shipping methods added to the cart.
The cart's type.
Default: default
completed_atDateRequiredThe date with timezone at which the cart was completed.
payment_authorized_atDateRequiredThe date with timezone at which the payment was authorized.
idempotency_keystringRequiredRandomly generated key used to continue the completion of a cart in case of failure.
contextRecord<string, unknown>RequiredThe context of the cart which can include info like IP or user agent.
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
sales_channel_idnull | stringRequiredThe sales channel ID the cart is associated with.
The details of the sales channel associated with the cart.
The associated sales channels.
shipping_totalnumberThe total of shipping
discount_totalnumberThe total of discount rounded
raw_discount_totalnumberThe total of discount
item_tax_totalnull | numberThe total of items with taxes
shipping_tax_totalnull | numberThe total of shipping with taxes
tax_totalnull | numberThe total of tax
refunded_totalnumberThe total amount refunded if the order associated with this cart is returned.
totalnumberThe total amount of the cart
subtotalnumberThe subtotal of the cart
refundable_amountnumberThe amount that can be refunded
gift_card_totalnumberThe total of gift cards
gift_card_tax_totalnumberThe total of gift cards with taxes
Was this section helpful?