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 formatted in the given currency.
  • #
  • # Arguments
  • # currency: Currency in which to display any monetary discounts.
  • # 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 formatted in the given currency.
  • #
  • # Arguments
  • # currency: Currency in which to display the shipping cost.
  • # 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 formatted in the given currency.
  • #
  • # Arguments
  • # currency: Currency in which to display the subtotal. 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.
  • #
  • # Arguments
  • # currency: Currency in which to display the total. Defaults to
  • # the currency of the marketplace's home country.
  • totalFormatted(currency: String): String!
  • }