Update Cart

Use the updateCart mutation to update cart properties.

Mutation

updateCart(input: UpdateCartInput!): Cart!

UpdateCartInput

ArgumentTypeDescription
idID!The id of the Cart you want to update
currencyCurrencyInputUpdate the cart currency
emailStringUpdate the email associated with the cart
notesStringLet customer save notes for the cart
metadataJsonCustom metadata object for the cart

Example

mutation {
  updateCart(
    input: {
      id: "ck5r8d5b500003f5o2aif0v2b"
      currency: { code: USD }
      email: "[email protected]"
      notes: "These are my order notes"
    }
  ) {
    id
    currency {
      code
    }
    email
    notes
  }
}