Skip to main content
object

The schema’s entry-point for mutations. This acts as the public, top-level API from which all mutation queries must start.

Anchor to cartAttributesUpdatecartAttributesUpdate
CartAttributesUpdatePayload

Updates the attributes on a cart.

Anchor to cartBuyerIdentityUpdatecartBuyerIdentityUpdate
CartBuyerIdentityUpdatePayload

Updates customer information associated with a cart. Buyer identity is used to determine international pricing and should match the customer's shipping address.

CartCreatePayload

Creates a new cart.

Anchor to cartDeliveryAddressesAddcartDeliveryAddressesAdd
CartDeliveryAddressesAddPayload

Adds delivery addresses to the cart.

Anchor to cartDeliveryAddressesRemovecartDeliveryAddressesRemove
CartDeliveryAddressesRemovePayload

Removes delivery addresses from the cart.

Anchor to cartDeliveryAddressesUpdatecartDeliveryAddressesUpdate
CartDeliveryAddressesUpdatePayload

Updates one or more delivery addresses on a cart.

Anchor to cartDiscountCodesUpdatecartDiscountCodesUpdate
CartDiscountCodesUpdatePayload

Updates the discount codes applied to the cart.

Anchor to cartGiftCardCodesRemovecartGiftCardCodesRemove
CartGiftCardCodesRemovePayload

Removes the gift card codes applied to the cart.

Anchor to cartGiftCardCodesUpdatecartGiftCardCodesUpdate
CartGiftCardCodesUpdatePayload

Updates the gift card codes applied to the cart.

CartLinesAddPayload

Adds a merchandise line to the cart.

CartLinesRemovePayload

Removes one or more merchandise lines from the cart.

CartLinesUpdatePayload

Updates one or more merchandise lines on a cart.

CartMetafieldDeletePayload

Deletes a cart metafield.

CartMetafieldsSetPayload

Sets cart metafield values. Cart metafield values will be set regardless if they were previously created or not.

Allows a maximum of 25 cart metafields to be set at a time.

CartNoteUpdatePayload

Updates the note on the cart.

Anchor to cartSelectedDeliveryOptionsUpdatecartSelectedDeliveryOptionsUpdate
CartSelectedDeliveryOptionsUpdatePayload

Update the selected delivery options for a delivery group.

Anchor to customerAccessTokenCreatecustomerAccessTokenCreate
CustomerAccessTokenCreatePayload

Creates a customer access token. The customer access token is required to modify the customer object in any way.

Anchor to customerAccessTokenCreateWithMultipasscustomerAccessTokenCreateWithMultipass
CustomerAccessTokenCreateWithMultipassPayload

Creates a customer access token using a multipass token instead of email and password. A customer record is created if the customer doesn't exist. If a customer record already exists but the record is disabled, then the customer record is enabled.

Anchor to customerAccessTokenDeletecustomerAccessTokenDelete
CustomerAccessTokenDeletePayload

Permanently destroys a customer access token.

Anchor to customerAccessTokenRenewcustomerAccessTokenRenew
CustomerAccessTokenRenewPayload

Renews a customer access token.

Access token renewal must happen before a token expires. If a token has already expired, a new one should be created instead via customerAccessTokenCreate.

CustomerActivatePayload

Activates a customer.

Anchor to customerActivateByUrlcustomerActivateByUrl
CustomerActivateByUrlPayload

Activates a customer with the activation url received from customerCreate.

Anchor to customerAddressCreatecustomerAddressCreate
CustomerAddressCreatePayload

Creates a new address for a customer.

Anchor to customerAddressDeletecustomerAddressDelete
CustomerAddressDeletePayload

Permanently deletes the address of an existing customer.

Anchor to customerAddressUpdatecustomerAddressUpdate
CustomerAddressUpdatePayload

Updates the address of an existing customer.

CustomerCreatePayload

Creates a new customer.

Anchor to customerDefaultAddressUpdatecustomerDefaultAddressUpdate
CustomerDefaultAddressUpdatePayload

Updates the default address of an existing customer.

CustomerRecoverPayload

Sends a reset password email to the customer. The reset password email contains a reset password URL and token that you can pass to the customerResetByUrl or customerReset mutation to reset the customer password.

This mutation is throttled by IP. With private access, you can provide a Shopify-Storefront-Buyer-IP instead of the request IP. The header is case-sensitive and must be sent as Shopify-Storefront-Buyer-IP.

Make sure that the value provided to Shopify-Storefront-Buyer-IP is trusted. Unthrottled access to this mutation presents a security risk.

CustomerResetPayload

"Resets a customer’s password with the token received from a reset password email. You can send a reset password email with the customerRecover mutation."

CustomerResetByUrlPayload

"Resets a customer’s password with the reset password URL received from a reset password email. You can send a reset password email with the customerRecover mutation."

CustomerUpdatePayload

Updates an existing customer.

Anchor to shopPayPaymentRequestSessionCreateshopPayPaymentRequestSessionCreate
ShopPayPaymentRequestSessionCreatePayload

Create a new Shop Pay payment request session.

Anchor to shopPayPaymentRequestSessionSubmitshopPayPaymentRequestSessionSubmit
ShopPayPaymentRequestSessionSubmitPayload

Submits a Shop Pay payment request session.


Was this section helpful?