OBJECT

CartItem

A good or service that a user has added to their cart.

link GraphQL Schema definition

  • type CartItem implements Node {
  • advert: Advert!
  • deliveryMethod: DeliveryMethodEnum!
  • # Total amount of monetary discounts. Denominated in cents.
  • discountCents: Int!
  • # Total amount of monetary discounts. In string with currency symbol.
  • #
  • # Arguments
  • # currency: Currency in which to display money fields. Defaults
  • # to the currency of the marketplace's home country.
  • discountFormatted(currency: String): String!
  • # Whether the item has free shipping.
  • hasFreeShippingDiscount: Boolean!
  • id: ID!
  • internationalShippingAvailable: Boolean!
  • # For deliverable items, whether the buyer's country matches the seller's country
  • internationalShippingRequired: Boolean!
  • purchasable: Purchasable!
  • quantity: Int!
  • seller: Seller!
  • # Shipping cost of an item. Denominated in cents.
  • shippingCostCents: Int!
  • # Shipping cost of an item. In string with currency symbol.
  • #
  • # Arguments
  • # currency: Currency in which to display money fields. Defaults
  • # to the currency of the marketplace's home country.
  • shippingCostFormatted(currency: String): String!
  • # Cost of the cart item (price x quantity), plus any additional fees applied by
  • # the seller. Denominated in cents.
  • subtotalCents: Int!
  • # Cost of the cart item (price x quantity), plus any additional fees applied by
  • # the seller. In string with currency symbol.
  • #
  • # Arguments
  • # currency: Currency in which to display money fields. Defaults
  • # to the currency of the marketplace's home country.
  • subtotalFormatted(currency: String): String!
  • # Total cost of the item, which includes subtotals and cost of shipping if
  • # applicable. Denominated in cents.
  • totalCents: Int!
  • # Total cost of the item, which includes subtotals and cost of shipping if
  • # applicable. In string with currency symbol.
  • #
  • # Arguments
  • # currency: Currency in which to display money fields. Defaults
  • # to the currency of the marketplace's home country.
  • totalFormatted(currency: String): String!
  • }