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.

Arguments

•ID!
required

The ID of the company location to update addresses on.

•CompanyAddressInput!
required

The input fields to use to update the address.

•[CompanyAddressType!]!
required

The list of address types on the location to update.


Anchor to customerAddressCreatecustomerAddressCreate
•CustomerAddressCreatePayload

Creates a new address for a customer.

Arguments

•CustomerAddressInput!
required

Specifies the fields to use when creating the address.

•Boolean
Default:false

The flag to set the address as the default address.


Anchor to customerAddressDeletecustomerAddressDelete
•CustomerAddressDeletePayload

Deletes a specific address for a customer.

Arguments

•ID!
required

The ID of the address to be deleted.


Anchor to customerAddressUpdatecustomerAddressUpdate
•CustomerAddressUpdatePayload

Updates a specific address for a customer.

Arguments

•ID!
required

The ID of the address to be updated.

•CustomerAddressInput

Specifies the fields to use when updating the address.

•Boolean
Default:null

The flag to set the address as the default address.


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.

Arguments

•CustomerUpdateInput!
required

Specifies the input fields for the customer update.


•MetafieldsDeletePayload

Deletes multiple metafields in bulk.

Arguments

•[MetafieldIdentifierInput!]!
required

A list of identifiers specifying metafields to delete. At least one identifier must be specified.


•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.

Arguments

•[MetafieldsSetInput!]!
required

The list of metafield values to set. Maximum of 25.


•OrderRequestReturnPayload

Request a new return on behalf of a customer.

Arguments

•ID!
required

The ID of the order for which this return is being requested.

•[RequestedLineItemInput!]!
required

The line items that are requested to be returned.


Anchor to subscriptionBillingCycleSkipsubscriptionBillingCycleSkip
•SubscriptionBillingCycleSkipPayload

Skips a Subscription Billing Cycle.

Arguments

•SubscriptionBillingCycleInput!
required

The input object for selecting and using billing cycles.


Anchor to subscriptionBillingCycleUnskipsubscriptionBillingCycleUnskip
•SubscriptionBillingCycleUnskipPayload

Unskips a Subscription Billing Cycle.

Arguments

•SubscriptionBillingCycleInput!
required

The input object for selecting and using billing cycles.


Anchor to subscriptionContractActivatesubscriptionContractActivate
•SubscriptionContractActivatePayload

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

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract to activate.


Anchor to subscriptionContractCancelsubscriptionContractCancel
•SubscriptionContractCancelPayload

Cancels a Subscription Contract.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the Subscription Contract to cancel.


Anchor to subscriptionContractFetchDeliveryOptionssubscriptionContractFetchDeliveryOptions
•SubscriptionContractFetchDeliveryOptionsPayload

Fetches the available delivery options for a Subscription Contract.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract.

•CustomerAddressInput

The address to deliver the subscription contract to.


Anchor to subscriptionContractPausesubscriptionContractPause
•SubscriptionContractPausePayload

Pauses a Subscription Contract.

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract to pause.


Anchor to subscriptionContractSelectDeliveryMethodsubscriptionContractSelectDeliveryMethod
•SubscriptionContractSelectDeliveryMethodPayload

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

Arguments

Anchor to subscriptionContractIdsubscriptionContractId
•ID!
required

The ID of the subscription contract.

Anchor to subscriptionDeliveryOptionsResultTokensubscriptionDeliveryOptionsResultToken
•String!
required

The token associated with the successfully fetched delivery options result for the subscription contract.

•SubscriptionDeliveryMethodInput!
required

The delivery method selected for the subscription contract.


Anchor to storefrontCustomerAccessTokenCreatestorefrontCustomerAccessTokenCreate
•StorefrontCustomerAccessTokenCreatePayload
Deprecated

Was this section helpful?