OBJECT
Cart
A cart object just waiting to transform into an order.
link GraphQL Schema definition
- type Cart implements Node {
- # The shipping address associated to the cart. Required for checkout.
- Address :
- # The billing address associated to the cart. Required for checkout.
- Address :
- # The company name of the bill recipient.
- String :
- # The email address of the bill recipient. Required for checkout.
- String :
- # The first name of the bill recipient. Required for checkout.
- String :
- # The phone number of the bill recipient. Depending on marketplace configuration,
- # can be required for checkout
- String :
- # The surname of the bill recipient. Required for checkout.
- String :
- # The total buyable quantity of all items in the cart.
- Int! :
- # Arguments
- # after: Returns the elements in the list that come after the
- # specified cursor.
- # before: Returns the elements in the list that come before the
- # specified cursor.
- # first: Returns the first _n_ elements from the list.
- # last: Returns the last _n_ elements from the list.
- String, : String, : Int, : Int): CartItemConnection! ( :
- # Arguments
- # after: Returns the elements in the list that come after the
- # specified cursor.
- # before: Returns the elements in the list that come before the
- # specified cursor.
- # first: Returns the first _n_ elements from the list.
- # last: Returns the last _n_ elements from the list.
- String, : String, : Int, : Int): CartSellersConnection! ( :
- # The company name of the user who owns the cart.
- String :
- # A coupon code that has been applied to the cart. Will return an error if the
- # coupon is invalid
- String :
- # Timestamp at which the cart was created.
- ISO8601DateTime! :
- # The discount applied to the cart. Negative value. Denominated in cents.
- 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.
" ) :
- # The discount applied to the cart. Negative value. In string with currency
- # symbol.
- #
- # Arguments
- # currency: Currency in which to display money fields. Defaults
- # to the currency of the marketplace's home country.
- String): String! ( :
- # The email address of the user who owns the cart. Required for checkout.
- String :
- # The first name of the user who owns the cart. Required for checkout.
- String :
- ID! :
- # Is this order a gift order? Defaults to false.
- Boolean :
- # A message that will be sent to the gift recipient.
- String :
- # A message that will be sent to the seller.
- String :
- # The phone number of the user who owns the cart. Depending on marketplace
- # configuration, can be required for checkout
- String :
- # The cart postage cost. Denominated in cents.
- 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.
" ) :
- # The cart postage cost. In string with currency symbol.
- #
- # Arguments
- # currency: Currency in which to display money fields. Defaults
- # to the currency of the marketplace's home country.
- String): String! ( :
- # The cart subtotal, excluding discounts and postage. Tax is included for tax
- # inclusive marketplaces. Denominated in cents.
- 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.
" ) :
- # The cart subtotal, excluding discounts and postage. Tax is included for tax
- # inclusive marketplaces. In string with currency symbol.
- #
- # Arguments
- # currency: Currency in which to display money fields. Defaults
- # to the currency of the marketplace's home country.
- String): String! ( :
- # The surname of the user who owns the cart. Required for checkout.
- String :
- # The status of the tax calculation on a cart. Returns an enumerable value.
- CartTaxCalculationStatusEnum :
- # The tax on the cart. Denominated in cents.
- 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.
" ) :
- # The tax on the cart. In string with currency symbol.
- #
- # Arguments
- # currency: Currency in which to display money fields. Defaults
- # to the currency of the marketplace's home country.
- String): String! ( :
- # Required for retrieving or modifying cart data.
- String! :
- # The cart total. Denominated in cents.
- 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.
" ) :
- # The cart total. In string with currency symbol.
- #
- # Arguments
- # currency: Currency in which to display money fields. Defaults
- # to the currency of the marketplace's home country.
- String): String! ( :
- # Timestamp at which the cart was most recently changed.
- ISO8601DateTime! :
- # The user associated to the cart.
- User :
- }
link Require by
- CartAddCartItemMutationPayloadAutogenerated return type of CartAddCartItemMutation.
- CartAddItemMutationPayloadAutogenerated return type of CartAddItemMutation.
- CartCreateMutationPayloadAutogenerated return type of CartCreateMutation.
- CartDeleteMutationPayloadAutogenerated return type of CartDeleteMutation.
- CartRemoveCartItemMutationPayloadAutogenerated return type of CartRemoveCartItemMutation.
- CartUpdateCartItemMutationPayloadAutogenerated return type of CartUpdateCartItemMutation.
- CartUpdateMutationPayloadAutogenerated return type of CartUpdateMutation.
- QueryRoot queries that don't modify database records.
- UpdatedCartsConnectionThe connection type for Cart.
- UpdatedCartsEdgeAn edge in a connection.