import { ShopifyMutation } from '@daffodil/driver/shopify'
The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start.
interface ShopifyMutation {
__typename: "Mutation"
cartAttributesUpdate: ShopifyCartAttributesUpdatePayload
cartBillingAddressUpdate: ShopifyCartBillingAddressUpdatePayload
cartBuyerIdentityUpdate: ShopifyCartBuyerIdentityUpdatePayload
cartCreate: ShopifyCartCreatePayload
cartDeliveryAddressesAdd: ShopifyCartDeliveryAddressesAddPayload
cartDeliveryAddressesRemove: ShopifyCartDeliveryAddressesRemovePayload
cartDeliveryAddressesUpdate: ShopifyCartDeliveryAddressesUpdatePayload
cartDiscountCodesUpdate: ShopifyCartDiscountCodesUpdatePayload
cartGiftCardCodesRemove: ShopifyCartGiftCardCodesRemovePayload
cartGiftCardCodesUpdate: ShopifyCartGiftCardCodesUpdatePayload
cartLinesAdd: ShopifyCartLinesAddPayload
cartLinesRemove: ShopifyCartLinesRemovePayload
cartLinesUpdate: ShopifyCartLinesUpdatePayload
cartMetafieldDelete: ShopifyCartMetafieldDeletePayload
cartMetafieldsSet: ShopifyCartMetafieldsSetPayload
cartNoteUpdate: ShopifyCartNoteUpdatePayload
cartPaymentUpdate: ShopifyCartPaymentUpdatePayload
cartPrepareForCompletion: ShopifyCartPrepareForCompletionPayload
cartSelectedDeliveryOptionsUpdate: ShopifyCartSelectedDeliveryOptionsUpdatePayload
cartSubmitForCompletion: ShopifyCartSubmitForCompletionPayload
customerAccessTokenCreate: ShopifyCustomerAccessTokenCreatePayload
customerAccessTokenCreateWithMultipass: ShopifyCustomerAccessTokenCreateWithMultipassPayload
customerAccessTokenDelete: ShopifyCustomerAccessTokenDeletePayload
customerAccessTokenRenew: ShopifyCustomerAccessTokenRenewPayload
customerActivate: ShopifyCustomerActivatePayload
customerActivateByUrl: ShopifyCustomerActivateByUrlPayload
customerAddressCreate: ShopifyCustomerAddressCreatePayload
customerAddressDelete: ShopifyCustomerAddressDeletePayload
customerAddressUpdate: ShopifyCustomerAddressUpdatePayload
customerCreate: ShopifyCustomerCreatePayload
customerDefaultAddressUpdate: ShopifyCustomerDefaultAddressUpdatePayload
customerRecover: ShopifyCustomerRecoverPayload
customerReset: ShopifyCustomerResetPayload
customerResetByUrl: ShopifyCustomerResetByUrlPayload
customerUpdate: ShopifyCustomerUpdatePayload
shopPayPaymentRequestSessionCreate: ShopifyShopPayPaymentRequestSessionCreatePayload
shopPayPaymentRequestSessionSubmit: ShopifyShopPayPaymentRequestSessionSubmitPayload
}
__typename "Mutation" |
|---|
cartAttributesUpdate ShopifyCartAttributesUpdatePayload |
|---|
Updates the attributes on a |
cartBillingAddressUpdate ShopifyCartBillingAddressUpdatePayload |
|---|
Updates the billing address on the cart. |
cartBuyerIdentityUpdate ShopifyCartBuyerIdentityUpdatePayload |
|---|
Updates the buyer identity on a Use this mutation to associate a logged-in customer via access token, set a B2B company location, or configure checkout preferences like delivery method. Preferences prefill checkout fields but don't sync back to the cart if overwritten at checkout. |
cartCreate ShopifyCartCreatePayload |
|---|
Creates a new The returned cart includes a |
cartDeliveryAddressesAdd ShopifyCartDeliveryAddressesAddPayload |
|---|
Adds delivery addresses to a |
cartDeliveryAddressesRemove ShopifyCartDeliveryAddressesRemovePayload |
|---|
Removes delivery addresses from a |
cartDeliveryAddressesUpdate ShopifyCartDeliveryAddressesUpdatePayload |
|---|
Updates one or more delivery addresses on a |
cartDiscountCodesUpdate ShopifyCartDiscountCodesUpdatePayload |
|---|
Updates the discount codes applied to a After updating, check each |
cartGiftCardCodesRemove ShopifyCartGiftCardCodesRemovePayload |
|---|
Removes gift cards from a |
cartGiftCardCodesUpdate ShopifyCartGiftCardCodesUpdatePayload |
|---|
Updates the gift card codes applied to the cart. Unlike |
cartLinesAdd ShopifyCartLinesAddPayload |
|---|
Adds one or more merchandise lines to an existing You can add up to 250 lines in a single request. Use |
cartLinesRemove ShopifyCartLinesRemovePayload |
|---|
Removes one or more merchandise lines from a |
cartLinesUpdate ShopifyCartLinesUpdatePayload |
|---|
Updates one or more merchandise lines on a Omitting the |
cartMetafieldDelete ShopifyCartMetafieldDeletePayload |
|---|
Deletes a cart metafield.
|
cartMetafieldsSet ShopifyCartMetafieldsSetPayload |
|---|
Sets Cart metafields can automatically copy to order metafields when an order is created, if there's a matching order metafield definition with the cart to order copyable capability enabled.
|
cartNoteUpdate ShopifyCartNoteUpdatePayload |
|---|
Updates the note on a |
cartPaymentUpdate ShopifyCartPaymentUpdatePayload |
|---|
Update the customer's payment method that will be used to checkout. |
cartPrepareForCompletion ShopifyCartPrepareForCompletionPayload |
|---|
Prepare the cart for cart checkout completion. |
cartSelectedDeliveryOptionsUpdate ShopifyCartSelectedDeliveryOptionsUpdatePayload |
|---|
Updates the selected delivery option for one or more Use this mutation when a customer chooses their preferred shipping method during checkout. The |
cartSubmitForCompletion ShopifyCartSubmitForCompletionPayload |
|---|
Submit the cart for checkout completion. |
customerAccessTokenCreate ShopifyCustomerAccessTokenCreatePayload |
|---|
For legacy customer accounts only. Creates a The token has an expiration time. Use
|
customerAccessTokenCreateWithMultipass ShopifyCustomerAccessTokenCreateWithMultipassPayload |
|---|
Creates a If the customer doesn't exist in Shopify, then a new customer record is created automatically. If the customer exists but the record is disabled, then the customer record is re-enabled.
|
customerAccessTokenDelete ShopifyCustomerAccessTokenDeletePayload |
|---|
Permanently destroys a
|
customerAccessTokenRenew ShopifyCustomerAccessTokenRenewPayload |
|---|
Extends the validity of a Renewal must happen before the token's
|
customerActivate ShopifyCustomerActivatePayload |
|---|
Activates a customer account using an activation token received from the For a simpler approach that doesn't require parsing the activation URL, use
|
customerActivateByUrl ShopifyCustomerActivateByUrlPayload |
|---|
Activates a customer account using the full activation URL from the
|
customerAddressCreate ShopifyCustomerAddressCreatePayload |
|---|
Creates a new Each customer can have multiple addresses. |
customerAddressDelete ShopifyCustomerAddressDeletePayload |
|---|
Permanently deletes a specific
|
customerAddressUpdate ShopifyCustomerAddressUpdatePayload |
|---|
Updates an existing Successful update returns the updated |
customerCreate ShopifyCustomerCreatePayload |
|---|
Creates a new
|
customerDefaultAddressUpdate ShopifyCustomerDefaultAddressUpdatePayload |
|---|
Updates the default address of an existing |
customerRecover ShopifyCustomerRecoverPayload |
|---|
Sends a reset password email to the customer. The email contains a reset password URL and token that you can pass to the This mutation is throttled by IP. With private access, you can provide a
|
customerReset ShopifyCustomerResetPayload |
|---|
Resets a customer's password using the reset token from a password recovery email. On success, returns the updated Use the
|
customerResetByUrl ShopifyCustomerResetByUrlPayload |
|---|
Resets a customer's password using the reset URL from a password recovery email. The reset URL is generated by the On success, returns the updated
|
customerUpdate ShopifyCustomerUpdatePayload |
|---|
Updates a customer's personal information such as name, password, and marketing preferences. Requires a valid If the customer's password is updated, then all previous access tokens become invalid. The mutation returns a new access token in the payload to maintain the customer's session.
|
shopPayPaymentRequestSessionCreate ShopifyShopPayPaymentRequestSessionCreatePayload |
|---|
Creates a Shop Pay payment request session for processing payments. The session includes a checkout URL where customers complete their purchase and a token for subsequent operations like submitting the payment. The For a complete integration guide including the JavaScript SDK setup and checkout flow, refer to the Shop Component API documentation. For implementation steps, see the development journey guide. For common error scenarios, see the troubleshooting guide. |
shopPayPaymentRequestSessionSubmit ShopifyShopPayPaymentRequestSessionSubmitPayload |
|---|
Finalizes a Shop Pay payment request session. Call this mutation after creating a session with The For a complete integration guide including the JavaScript SDK setup and checkout flow, refer to the Shop Component API documentation. For implementation steps, see the development journey guide. For common error scenarios, see the troubleshooting guide. |