Skip to main content
Anchor to OrderAttributionDefinition

OrderAttributionDefinition

object

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.

•String!
non-null

A human-readable name for the definition, displayed in Shopify Admin and on order details.

•String!
non-null

A unique identifier for the definition, scoped to the calling app on a single shop. Used as the attribution_handle value when an app attributes an order to this definition.

•String

Sanitized SVG content used as the icon for orders attributed to this definition. May be null when no icon is provided.

•ID!
non-null

A globally-unique ID.


Was this section helpful?

•query

Returns approved order attribution definitions for the calling app on the current shop.

Arguments

•String

The elements that come after the specified cursor.

•String

The elements that come before the specified cursor.

•Int

The first n elements from the paginated list.

•Int

The last n elements from the paginated list.

•Boolean
Default:false

Reverse the order of the underlying list.



Was this section helpful?

•mutation

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.

Arguments

•OrderAttributionDefinitionUpsertInput!
required

The input fields for upserting the order attribution definition.



Was this section helpful?

•interface

Was this section helpful?