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! @deprecated( reason: "Prices can be larger than is representable by a graphql integer. Use the string version instead. This field will be removed no earlier than July 1st, 2025. " )
  • # 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! @deprecated( reason: "Prices can be larger than is representable by a graphql integer. Use the string version instead. This field will be removed no earlier than July 1st, 2025. " )
  • # 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! @deprecated( reason: "Prices can be larger than is representable by a graphql integer. Use the string version instead. This field will be removed no earlier than July 1st, 2025. " )
  • # 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! @deprecated( reason: "Prices can be larger than is representable by a graphql integer. Use the string version instead. This field will be removed no earlier than July 1st, 2025. " )
  • # 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!
  • }