Mutation
The schema's entry point for all mutation operations.
Anchor to FieldsFields
- Anchor to abandonmentUpdateActivitiesDeliveryStatusesabandonment•Abandonment
Update Activities Delivery Statuses Update Activities Delivery Statuses Payload Updates the marketing activities delivery statuses for an abandonment.
- Anchor to appPurchaseOneTimeCreateapp•App
Purchase One Time Create Purchase One Time Create Payload Charges a shop for features or services one time. This type of charge is recommended for apps that aren't billed on a recurring basis. Test and demo shops aren't charged.
- Anchor to appRevokeAccessScopesapp•App
Revoke Access Scopes Revoke Access Scopes Payload Revokes access scopes previously granted for an app installation.
- Anchor to appSubscriptionCancelapp•App
Subscription Cancel Subscription Cancel Payload Cancels an app subscription on a store.
- Anchor to appSubscriptionCreateapp•App
Subscription Create Subscription Create Payload Allows an app to charge a store for features or services on a recurring basis.
- Anchor to appSubscriptionLineItemUpdateapp•App
Subscription Line Item Update Subscription Line Item Update Payload Updates the capped amount on the usage pricing plan of an app subscription line item.
- Anchor to appSubscriptionTrialExtendapp•App
Subscription Trial Extend Subscription Trial Extend Payload Extends the trial of an app subscription.
- Anchor to appUsageRecordCreateapp•App
Usage Record Create Usage Record Create Payload Enables an app to charge a store for features or services on a per-use basis. The usage charge value is counted towards the
limit that was specified in the
field when the app subscription was created. If you create an app usage charge that causes the total usage charges in a billing interval to exceed the capped amount, then a
Total price exceeds balance remaining
error is returned.- Anchor to articleCreatearticle•Article
Create Create Payload Creates an article.
- Anchor to articleDeletearticle•Article
Delete Delete Payload Deletes an article.
- Anchor to articleUpdatearticle•Article
Update Update Payload Updates an article.
- Anchor to backupRegionUpdatebackup•Backup
Region Update Region Update Payload Update the backup region that is used when we have no better signal of what region a buyer is in.
- Anchor to blogCreateblog•Blog
Create Create Payload Creates a blog.
- Anchor to blogDeleteblog•Blog
Delete Delete Payload Deletes a blog.
- Anchor to blogUpdateblog•Blog
Update Update Payload Updates a blog.
- Anchor to bulkOperationCancelbulk•Bulk
Operation Cancel Operation Cancel Payload Starts the cancelation process of a running bulk operation.
There may be a short delay from when a cancelation starts until the operation is actually canceled.
- Anchor to bulkOperationRunMutationbulk•Bulk
Operation Run Mutation Operation Run Mutation Payload Creates and runs a bulk operation mutation.
To learn how to bulk import large volumes of data asynchronously, refer to the bulk import data guide.
- Anchor to bulkOperationRunQuerybulk•Bulk
Operation Run Query Operation Run Query Payload Creates and runs a bulk operation query.
See the bulk operations guide for more details.
- Anchor to bulkProductResourceFeedbackCreatebulk•Bulk
Product Resource Feedback Create Product Resource Feedback Create Payload Creates product feedback for multiple products.
- Anchor to carrierServiceCreatecarrier•Carrier
Service Create Service Create Payload Creates a new carrier service.
- Anchor to carrierServiceDeletecarrier•Carrier
Service Delete Service Delete Payload Removes an existing carrier service.
- Anchor to carrierServiceUpdatecarrier•Carrier
Service Update Service Update Payload Updates a carrier service. Only the app that creates a carrier service can update it.
- Anchor to cartTransformCreatecart•Cart
Transform Create Transform Create Payload Create a CartTransform function to the Shop.
- Anchor to cartTransformDeletecart•Cart
Transform Delete Transform Delete Payload Destroy a cart transform function from the Shop.
- Anchor to catalogContextUpdatecatalog•Catalog
Context Update Context Update Payload Updates the context of a catalog.
- Anchor to catalogCreatecatalog•Catalog
Create Create Payload Creates a new catalog.
- Anchor to catalogDeletecatalog•Catalog
Delete Delete Payload Delete a catalog.
- Anchor to catalogUpdatecatalog•Catalog
Update Update Payload Updates an existing catalog.
- Anchor to checkoutBrandingUpsertcheckout•Checkout
Branding Upsert Branding Upsert Payload Updates the checkout branding settings for a checkout profile.
If the settings don't exist, then new settings are created. The checkout branding settings applied to a published checkout profile will be immediately visible within the store's checkout. The checkout branding settings applied to a draft checkout profile could be previewed within the admin checkout editor.
To learn more about updating checkout branding settings, refer to the checkout branding tutorial.
- Anchor to collectionAddProductscollection•Collection
Add Products Add Products Payload Adds products to a collection.
- Anchor to collectionAddProductsV2collection•Collection
Add Products V2 Add Products V2Payload Asynchronously adds a set of products to a given collection. It can take a long time to run. Instead of returning a collection, it returns a job which should be polled.
- Anchor to collectionCreatecollection•Collection
Create Create Payload Creates a collection to group products together in the online store and other sales channels. For example, an athletics store might create different collections for running attire, shoes, and accessories.
There are two types of collections:
- Custom (manual) collections: You specify the products to include in a collection.
- Smart (automated) collections: You define rules, and products matching those rules are automatically included in the collection.
Use the
mutation when you need to:
- Create a new collection for a product launch or campaign
- Organize products by category, season, or promotion
- Automate product grouping using rules (for example, by tag, type, or price)
NoteLearn more about using metafields with smart collections.
- Anchor to collectionDeletecollection•Collection
Delete Delete Payload Deletes a collection.
- Anchor to collectionRemoveProductscollection•Collection
Remove Products Remove Products Payload Removes a set of products from a given collection. The mutation can take a long time to run. Instead of returning an updated collection the mutation returns a job, which should be polled. For use with manual collections only.
- Anchor to collectionReorderProductscollection•Collection
Reorder Products Reorder Products Payload Asynchronously reorders products within a specified collection. Instead of returning an updated collection, this mutation returns a job, which should be polled. The
must be
.
How to use this mutation:
- Provide only the products that actually moved in the
moves
list; do not send the entire product list. For example: to move the product at index 1 to index N, send a single move for that product with.
- Each move is applied sequentially in the order provided.
is a zero-based index within the collection at the moment the move is applied (after any prior moves in the list).
- Products not included in
moves
keep their relative order, aside from any displacement caused by the moves. - If
is greater than or equal to the number of products, the product is placed at the end.
Example:
- Initial order: [A, B, C, D, E] (indices 0..4)
- Moves (applied in order):
- E -> newPosition: 1
- C -> newPosition: 4
- Result: [A, E, B, D, C]
Displaced products will have their position altered in a consistent manner with no gaps.
- Provide only the products that actually moved in the
- Anchor to collectionUpdatecollection•Collection
Update Update Payload Updates a collection, modifying its properties, products, or publication settings. Collections help organize products together in the online store and other sales channels.
Use the
mutation to programmatically modify collections in scenarios such as:
- Updating collection details, like title, description, or image
- Modifying SEO metadata for better search visibility
- Changing which products are included (using rule updates for smart collections)
- Publishing or unpublishing collections across different sales channels
- Updating custom data using metafields
There are two types of collections with different update capabilities:
- Custom (manual) collections: You can update collection properties, but rule sets can't be modified since products are manually selected.
- Smart (automated) collections: You can update both collection properties and the rules that automatically determine which products are included.
When updating rule sets for smart collections, the operation might be processed asynchronously. In these cases, the mutation returns a
job
object that you can use to track the progress of the update.
To publish or unpublish collections to specific sales channels, use the dedicated
and
mutations.
Learn more about using metafields with smart collections.
- Anchor to combinedListingUpdatecombined•Combined
Listing Update Listing Update Payload Add, remove and update
s of a given Product.
s are comprised of multiple products to create a single listing. There are two kinds of products used in a
:
- Parent products
- Child products
The parent product is created with a
with a
of
. Once created, you can associate child products with the parent product using this mutation. Parent products represent the idea of a product (e.g. Shoe).
Child products represent a particular option value (or combination of option values) of a parent product. For instance, with your Shoe parent product, you may have several child products representing specific colors of the shoe (e.g. Shoe - Blue). You could also have child products representing more than a single option (e.g. Shoe - Blue/Canvas, Shoe - Blue/Leather, etc...).
The combined listing is the association of parent product to one or more child products.
Learn more about Combined Listings.
- Anchor to commentApprovecomment•Comment
Approve Approve Payload Approves a comment.
- Anchor to commentDeletecomment•Comment
Delete Delete Payload Deletes a comment.
- Anchor to commentNotSpamcomment•Comment
Not Spam Not Spam Payload Marks a comment as not spam.
- Anchor to commentSpamcomment•Comment
Spam Spam Payload Marks a comment as spam.
- Anchor to companiesDeletecompanies•Companies
Delete Delete Payload Deletes a list of companies.
- Anchor to companyAddressDeletecompany•Company
Address Delete Address Delete Payload Deletes a company address.
- Anchor to companyAssignCustomerAsContactcompany•Company
Assign Customer As Contact Assign Customer As Contact Payload Assigns the customer as a company contact.
- Anchor to companyAssignMainContactcompany•Company
Assign Main Contact Assign Main Contact Payload Assigns the main contact for the company.
- Anchor to companyContactAssignRolecompany•Company
Contact Assign Role Contact Assign Role Payload Assigns a role to a contact for a location.
- Anchor to companyContactAssignRolescompany•Company
Contact Assign Roles Contact Assign Roles Payload Assigns roles on a company contact.
- Anchor to companyContactCreatecompany•Company
Contact Create Contact Create Payload Creates a company contact and the associated customer.
- Anchor to companyContactDeletecompany•Company
Contact Delete Contact Delete Payload Deletes a company contact.
- Anchor to companyContactRemoveFromCompanycompany•Company
Contact Remove From Company Contact Remove From Company Payload Removes a company contact from a Company.
- Anchor to companyContactRevokeRolecompany•Company
Contact Revoke Role Contact Revoke Role Payload Revokes a role on a company contact.
- Anchor to companyContactRevokeRolescompany•Company
Contact Revoke Roles Contact Revoke Roles Payload Revokes roles on a company contact.
- Anchor to companyContactsDeletecompany•Company
Contacts Delete Contacts Delete Payload Deletes one or more company contacts.
- Anchor to companyContactUpdatecompany•Company
Contact Update Contact Update Payload Updates a company contact.
- Anchor to companyCreatecompany•Company
Create Create Payload Creates a company.
- Anchor to companyDeletecompany•Company
Delete Delete Payload Deletes a company.
- Anchor to companyLocationAssignAddresscompany•Company
Location Assign Address Location Assign Address Payload Updates an address on a company location.
- Anchor to companyLocationAssignRolescompany•Company
Location Assign Roles Location Assign Roles Payload Assigns roles on a company location.
- Anchor to companyLocationAssignStaffMemberscompany•Company
Location Assign Staff Members Location Assign Staff Members Payload Creates one or more mappings between a staff member at a shop and a company location.
- Anchor to companyLocationCreatecompany•Company
Location Create Location Create Payload Creates a company location.
- Anchor to companyLocationDeletecompany•Company
Location Delete Location Delete Payload Deletes a company location.
- Anchor to companyLocationRemoveStaffMemberscompany•Company
Location Remove Staff Members Location Remove Staff Members Payload Deletes one or more existing mappings between a staff member at a shop and a company location.
- Anchor to companyLocationRevokeRolescompany•Company
Location Revoke Roles Location Revoke Roles Payload Revokes roles on a company location.
- Anchor to companyLocationsDeletecompany•Company
Locations Delete Locations Delete Payload Deletes a list of company locations.
- Anchor to companyLocationTaxSettingsUpdatecompany•Company
Location Tax Settings Update Location Tax Settings Update Payload Sets the tax settings for a company location.
- Anchor to companyLocationUpdatecompany•Company
Location Update Location Update Payload Updates a company location.
- Anchor to companyRevokeMainContactcompany•Company
Revoke Main Contact Revoke Main Contact Payload Revokes the main contact from the company.
- Anchor to companyUpdatecompany•Company
Update Update Payload Updates a company.
- Anchor to consentPolicyUpdateconsent•Consent
Policy Update Policy Update Payload Update or create consent policies in bulk.
- Anchor to customerAddressCreatecustomer•Customer
Address Create Address Create Payload Create a new customer address.
- Anchor to customerAddressDeletecustomer•Customer
Address Delete Address Delete Payload Deletes a customer's address.
- Anchor to customerAddressUpdatecustomer•Customer
Address Update Address Update Payload Update a customer's address information.
- Anchor to customerAddTaxExemptionscustomer
Add Tax Exemptions