6/4/2026, 12:00:50 AM
Apps can now list, create, update, or delete order attribution definitions via new query and mutations; definitions contain displayName, handle, optional icon, and support merging on upsert. The orderAttributionDefinitionDelete mutation preserves existing orders while removing the definition; the upsert mutation accepts an input that creates or merges definitions and can clear the icon by passing null. The FileDelete mutation now accepts a nullable list of IDs (previously non‑null list of non‑null IDs) to delete files. New enum values INVALID_METAFIELDS were added to InventoryTransfer error codes, and the MetafieldOwnerType enum now includes TRANSFER. WebhookSubscriptionTopic added two new topics: SHIPPING_LABEL_CANCEL and INVENTORY_TRANSFERS_UPDATED. Minor updates: resourcePublicationsV2 fields for Product, Collection, etc. now clarify default catalog type APP; DraftOrderDiscountNotAppliedWarning.priceRule is deprecated; and several field descriptions have been corrected or re‑ordered.
Returns approved order attribution definitions for the calling app on the current shop.
Deletes an order attribution definition for the calling app on the current shop. Existing orders
attributed to this definition are preserved.
Upserts an order attribution definition for the calling app on the current shop. Apps can use
attribution definitions to label orders they route to a shop, replacing or augmenting any definitions
shipped declaratively via the order_attribution_config extension.
If a definition with the same handle exists for this app on the shop, the supplied input fields are
merged onto it; fields omitted from the input are left unchanged. Otherwise a new definition is
created. To explicitly clear the stored icon on an existing definition, pass icon: null.
Deletes file assets that were previously uploaded to your store.
Use the fileDelete mutation to permanently remove media and file assets from your store when they are no longer needed.
This mutation handles the complete removal of files from both your store's file library and any associated references
to products or other resources.
The fileDelete mutation supports removal of multiple file types:
When you delete files that are referenced by products, the mutation automatically removes those references and
reorders any remaining media to maintain proper positioning. Product file references are database relationships
managed through a media reference system, not just links in product descriptions. The Shopify admin provides a UI
to manage these relationships, and when files are deleted, the system automatically cleans up all references.
Files that are currently being processed by other operations are rejected to prevent conflicts.
Caution:
File deletion is permanent and can't be undone. When you delete a file that's being used in your store,
it will immediately stop appearing wherever it was displayed. For example, if you delete a product image,
that product will show a broken image or placeholder on your storefront and in the admin. The same applies
to any other files linked from themes, blog posts, or pages. Before deleting files, you can use thefilesquery to list and review
your store's file assets.
Learn how to manage
product media and file assets
in your app.
An attribution definition that an app can use to label orders it routes to a shop.
Definitions can be supplied declaratively via the order_attribution_config extension or created
dynamically per-shop via the Admin API.
An auto-generated type for paginating through multiple OrderAttributionDefinitions.
Return type for orderAttributionDefinitionDelete mutation.
An error that occurs during the execution of OrderAttributionDefinitionDelete.
Possible error codes that can be returned by OrderAttributionDefinitionDeleteUserError.
An auto-generated type which holds one OrderAttributionDefinition and a cursor during pagination.
The input fields for upserting an order attribution definition.
Return type for orderAttributionDefinitionUpsert mutation.
An error that occurs during the execution of OrderAttributionDefinitionUpsert.
Possible error codes that can be returned by OrderAttributionDefinitionUpsertUserError.
billingAddresscompletedAtshippingAddressresourcePublicationsV2namelocationspriceRuleINVALID_METAFIELDSINVALID_METAFIELDSINVALID_METAFIELDSTRANSFERresourcePublicationsV2resourcePublicationsV2resourcePublicationsV2SHIPPING_LABEL_CANCELINVENTORY_TRANSFERS_UPDATED