Skip to main content
Skip to main content

Cart

A cart represents a virtual shopping bag. It can be used to complete an order, a swap, or a claim.

Properties

billing_addressAddressRequired
The details of the billing address associated with the cart.
billing_address_idstringRequired
The billing address's ID
completed_atDateRequired
The date with timezone at which the cart was completed.
contextRecord<string, unknown>Required
The context of the cart which can include info like IP or user agent.
created_atDateRequired
The date with timezone at which the resource was created.
customerCustomerRequired
The details of the customer the cart belongs to.
customer_idstringRequired
The customer's ID
deleted_atnull | DateRequired
The date with timezone at which the resource was deleted.
discount_totalnumber
The total of discount rounded
discountsDiscount[]Required
An array of details of all discounts applied to the cart.
emailstringRequired
The email associated with the cart
gift_card_tax_totalnumber
The total of gift cards with taxes
gift_card_totalnumber
The total of gift cards
gift_cardsGiftCard[]Required
An array of details of all gift cards applied to the cart.
idstringRequired
The cart's ID
idempotency_keystringRequired
Randomly generated key used to continue the completion of a cart in case of failure.
item_tax_totalnull | number
The total of items with taxes
itemsLineItem[]Required
The line items added to the cart.
metadataRecord<string, unknown>Required
An optional key-value map with additional details
object"cart"Required

Default: "cart"

paymentPaymentRequired
The details of the payment associated with the cart.
payment_authorized_atDateRequired
The date with timezone at which the payment was authorized.
payment_idstringRequired
The payment's ID if available
payment_sessionnull | PaymentSessionRequired
The details of the selected payment session in the cart.
payment_sessionsPaymentSession[]Required
The details of all payment sessions created on the cart.
raw_discount_totalnumber
The total of discount
refundable_amountnumber
The amount that can be refunded
refunded_totalnumber
The total amount refunded if the order associated with this cart is returned.
regionRegionRequired
The details of the region associated with the cart.
region_idstringRequired
The region's ID
sales_channelSalesChannelRequired
The details of the sales channel associated with the cart.
sales_channel_idnull | stringRequired
The sales channel ID the cart is associated with.
shipping_addressnull | AddressRequired
The details of the shipping address associated with the cart.
shipping_address_idstringRequired
The shipping address's ID
shipping_methodsShippingMethod[]Required
The details of the shipping methods added to the cart.
shipping_tax_totalnull | number
The total of shipping with taxes
shipping_totalnumber
The total of shipping
subtotalnumber
The subtotal of the cart
tax_totalnull | number
The total of tax
totalnumber
The total amount of the cart
typeCartTypeRequired
The cart's type.

Default: default

updated_atDateRequired
The date with timezone at which the resource was updated.
Was this section helpful?