OBJECT
Mutation
The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start.
link GraphQL Schema definition
- type Mutation {
- # Updates the attributes of a checkout.
- #
- # Arguments
- # checkoutId: The ID of the checkout.
- # input: [Not documented]
- (
- ID!, :
- CheckoutAttributesUpdateInput! :
- ): CheckoutAttributesUpdatePayload
- # Arguments
- # checkoutId: The ID of the checkout.
- ID!): CheckoutCompleteFreePayload ( :
- # Completes a checkout using a credit card token from Shopify's Vault.
- #
- # Arguments
- # checkoutId: The ID of the checkout.
- # payment: [Not documented]
- (
- ID!, :
- CreditCardPaymentInput! :
- ): CheckoutCompleteWithCreditCardPayload
- # Completes a checkout with a tokenized payment.
- #
- # Arguments
- # checkoutId: The ID of the checkout.
- # payment: [Not documented]
- (
- ID!, :
- TokenizedPaymentInput! :
- ): CheckoutCompleteWithTokenizedPaymentPayload
- # Creates a new checkout.
- #
- # Arguments
- # input: [Not documented]
- CheckoutCreateInput!): CheckoutCreatePayload ( :
- # Associates a customer to the checkout.
- #
- # Arguments
- # checkoutId: The ID of the checkout.
- # customerAccessToken: The customer access token of the customer
- # to associate.
- (
- ID!, :
- String! :
- ): CheckoutCustomerAssociatePayload
- # Disassociates the current checkout customer from the checkout.
- #
- # Arguments
- # checkoutId: The ID of the checkout.
- ID!): CheckoutCustomerDisassociatePayload ( :
- # Updates the email on an existing checkout.
- #
- # Arguments
- # checkoutId: The ID of the checkout.
- # email: The email to update the checkout with.
- ID!, : String!): CheckoutEmailUpdatePayload ( :
- # Applies a gift card to an existing checkout using a gift card code.
- #
- # Arguments
- # giftCardCode: The code of the gift card to apply on the
- # checkout.
- # checkoutId: The ID of the checkout.
- (
- String!, :
- ID! :
- ): CheckoutGiftCardApplyPayload
- # Removes an applied gift card from the checkout.
- #
- # Arguments
- # appliedGiftCardId: The ID of the Applied Gift Card to remove
- # from the Checkout
- # checkoutId: The ID of the Checkout
- (
- ID!, :
- ID! :
- ): CheckoutGiftCardRemovePayload
- # Adds a list of line items to a checkout.
- #
- # Arguments
- # lineItems: A list of line item objects to add to the checkout.
- # checkoutId: The ID of the checkout.
- (
- CheckoutLineItemInput!]!, : [
- ID! :
- ): CheckoutLineItemsAddPayload
- # Removes line items from an existing checkout
- #
- # Arguments
- # checkoutId: the checkout on which to remove line items
- # lineItemIds: line item ids to remove
- (
- ID!, :
- ID!]! : [
- ): CheckoutLineItemsRemovePayload
- # Updates line items on a checkout.
- #
- # Arguments
- # checkoutId: the checkout on which to update line items.
- # lineItems: line items to update.
- (
- ID!, :
- CheckoutLineItemUpdateInput!]! : [
- ): CheckoutLineItemsUpdatePayload
- # Updates the shipping address of an existing checkout.
- #
- # Arguments
- # shippingAddress: The shipping address to where the line items
- # will be shipped.
- # checkoutId: The ID of the checkout.
- (
- MailingAddressInput!, :
- ID! :
- ): CheckoutShippingAddressUpdatePayload
- # Updates the shipping lines on an existing checkout.
- #
- # Arguments
- # checkoutId: The ID of the checkout.
- # shippingRateHandle: A concatenation of a Checkout’s shipping
- # provider, price, and title, enabling the customer to select the
- # availableShippingRates.
- (
- ID!, :
- String! :
- ): CheckoutShippingLineUpdatePayload
- # Creates a customer access token.
- # The customer access token is required to modify the customer object in any way.
- #
- # Arguments
- # input: [Not documented]
- (
- CustomerAccessTokenCreateInput! :
- ): CustomerAccessTokenCreatePayload
- # Permanently destroys a customer access token.
- #
- # Arguments
- # customerAccessToken: The access token used to identify the
- # customer.
- (
- String! :
- ): CustomerAccessTokenDeletePayload
- # Renews a customer access token.
- #
- # Arguments
- # customerAccessToken: The access token used to identify the
- # customer.
- String!): CustomerAccessTokenRenewPayload ( :
- # Activates a customer.
- #
- # Arguments
- # id: Specifies the customer to activate.
- # input: [Not documented]
- ID!, : CustomerActivateInput!): CustomerActivatePayload ( :
- # Creates a new address for a customer.
- #
- # Arguments
- # customerAccessToken: The access token used to identify the
- # customer.
- # address: The customer mailing address to create.
- (
- String!, :
- MailingAddressInput! :
- ): CustomerAddressCreatePayload
- # Permanently deletes the address of an existing customer.
- #
- # Arguments
- # id: Specifies the address to delete.
- # customerAccessToken: The access token used to identify the
- # customer.
- ID!, : String!): CustomerAddressDeletePayload ( :
- # Updates the address of an existing customer.
- #
- # Arguments
- # customerAccessToken: The access token used to identify the
- # customer.
- # id: Specifies the customer address to update.
- # address: The customer’s mailing address.
- (
- String!, :
- ID!, :
- MailingAddressInput! :
- ): CustomerAddressUpdatePayload
- # Creates a new customer.
- #
- # Arguments
- # input: [Not documented]
- CustomerCreateInput!): CustomerCreatePayload ( :
- # Sends a reset password email to the customer, as the first step in the reset
- # password process.
- #
- # Arguments
- # email: The email address of the customer to recover.
- String!): CustomerRecoverPayload ( :
- # Resets a customer’s password with a token received from `CustomerRecover`.
- #
- # Arguments
- # id: Specifies the customer to reset.
- # input: [Not documented]
- ID!, : CustomerResetInput!): CustomerResetPayload ( :
- # Updates an existing customer.
- #
- # Arguments
- # customerAccessToken: The access token used to identify the
- # customer.
- # customer: The customer object input.
- (
- String!, :
- CustomerUpdateInput! :
- ): CustomerUpdatePayload
- }
link Require by
This element is not required by anyone