Mutations

Mutations

addItemToOrder

  • addItemToOrder(productVariantId: ID!, quantity: Int!): Order

removeItemFromOrder

  • removeItemFromOrder(orderItemId: ID!): Order

adjustItemQuantity

  • adjustItemQuantity(orderItemId: ID!, quantity: Int!): Order

transitionOrderToState

setOrderShippingAddress

setOrderShippingMethod

  • setOrderShippingMethod(shippingMethodId: ID!): Order

addPaymentToOrder

setCustomerForOrder

login

logout

refreshCustomerVerification

Regenerate and send a verification token for a new Customer registration. Only applicable if authOptions.requireVerification is set to true.

registerCustomerAccount

Register a Customer account with the given credentials

updateCustomer

Update an existing Customer

createCustomerAddress

Create a new Customer Address

updateCustomerAddress

Update an existing Address

deleteCustomerAddress

Delete an existing Address

verifyCustomerAccount

Verify a Customer email address with the token sent to that address. Only applicable if authOptions.requireVerification is set to true.

updateCustomerPassword

Update the password of the active Customer

requestPasswordReset

Requests a password reset email to be sent

resetPassword

Resets a Customer’s password based on the provided token

alpha