INPUT_OBJECT

CartInput

Attributes for creating or updating a cart.

link GraphQL Schema definition

  • input CartInput {
  • # Shipping address for the items in the cart. Required for checkout.
  • address: AddressInput
  • # Billing address for the cart. Required for checkout.
  • billingAddress: AddressInput
  • # The first name of the user who owns the cart. Required for checkout.
  • firstName: String
  • # The surname of the user who owns the cart. Required for checkout.
  • surname: String
  • # The email address of the user who owns the cart. Required for checkout.
  • emailAddress: String
  • # A message that will be sent to the seller.
  • messageToSeller: String
  • # The company name of the user who owns the cart.
  • companyName: String
  • # The phone number of the user who owns the cart. Required for checkout.
  • phone: String
  • # A coupon code that has been applied to the cart. Will return an error if the
  • # coupon is invalid
  • couponCode: String
  • # The first name of the bill recipient. Required for checkout.
  • billingFirstName: String
  • # The surname of the bill recipient. Required for checkout.
  • billingSurname: String
  • # The phone number of the bill recipient. Required for checkout.
  • billingPhone: String
  • # The company name of the bill recipient.
  • billingCompanyName: String
  • # The email address of the bill recipient. Required for checkout.
  • billingEmailAddress: String
  • # Is this order a gift order? Defaults to false.
  • isGift: Boolean
  • # A message that will be sent to the gift recipient.
  • messageToGiftRecipient: String
  • }