Skip to main content
object

This is the schema's entry point for all mutation operations.

Anchor to companyLocationAssignAddresscompanyLocationAssignAddress
•CompanyLocationAssignAddressPayload

Updates an address on a company location.

Anchor to customerAddressCreatecustomerAddressCreate
•CustomerAddressCreatePayload

Creates a new address for a customer.

Anchor to customerAddressDeletecustomerAddressDelete
•CustomerAddressDeletePayload

Deletes a specific address for a customer.

Anchor to customerAddressUpdatecustomerAddressUpdate
•CustomerAddressUpdatePayload

Updates a specific address for a customer.

Anchor to customerEmailMarketingSubscribecustomerEmailMarketingSubscribe
•CustomerEmailMarketingSubscribePayload

Subscribes the customer to email marketing.

Anchor to customerEmailMarketingUnsubscribecustomerEmailMarketingUnsubscribe
•CustomerEmailMarketingUnsubscribePayload

Unsubscribes the customer from email marketing.

•CustomerUpdatePayload

Updates the customer's personal information.

•MetafieldsDeletePayload

Deletes multiple metafields in bulk.

•MetafieldsSetPayload

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

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

This operation is atomic, meaning no changes are persisted if an error is encountered.

As of 2024-07, this operation supports compare-and-set functionality to better handle concurrent requests. If compareDigest is set for any metafield, the mutation will only set that metafield if the persisted metafield value matches the digest used on compareDigest. If the metafield doesn't exist yet, but you want to guarantee that the operation will run in a safe manner, set compareDigest to null. The compareDigest value can be acquired by querying the metafield object and selecting compareDigest as a field. If the compareDigest value does not match the digest for the persisted value, the mutation will return an error. You can opt out of write guarantees by not sending compareDigest in the request.

•OrderRequestReturnPayload

Request a new return on behalf of a customer.

Anchor to subscriptionBillingCycleSkipsubscriptionBillingCycleSkip
•SubscriptionBillingCycleSkipPayload

Skips a Subscription Billing Cycle.

Anchor to subscriptionBillingCycleUnskipsubscriptionBillingCycleUnskip
•SubscriptionBillingCycleUnskipPayload

Unskips a Subscription Billing Cycle.

Anchor to subscriptionContractActivatesubscriptionContractActivate
•SubscriptionContractActivatePayload

Activates a Subscription Contract. Contract status must be either active, paused, or failed.

Anchor to subscriptionContractCancelsubscriptionContractCancel
•SubscriptionContractCancelPayload

Cancels a Subscription Contract.

Anchor to subscriptionContractFetchDeliveryOptionssubscriptionContractFetchDeliveryOptions
•SubscriptionContractFetchDeliveryOptionsPayload

Fetches the available delivery options for a Subscription Contract.

Anchor to subscriptionContractPausesubscriptionContractPause
•SubscriptionContractPausePayload

Pauses a Subscription Contract.

Anchor to subscriptionContractSelectDeliveryMethodsubscriptionContractSelectDeliveryMethod
•SubscriptionContractSelectDeliveryMethodPayload

Selects an option from a delivery options result and updates the delivery method on a Subscription Contract.

Anchor to storefrontCustomerAccessTokenCreatestorefrontCustomerAccessTokenCreate
•StorefrontCustomerAccessTokenCreatePayload
Deprecated

Was this section helpful?