Order Attribution Definition
An attribution definition that an app can use to label orders it routes to a shop.
Definitions can be supplied declaratively via the extension or created
dynamically per-shop via the Admin API.
Anchor to FieldsFields
- displayName (String!)
- handle (String!)
- icon (String)
- id (ID!)
- Anchor to displayNamedisplay•String!
Name non-null A human-readable name for the definition, displayed in Shopify Admin and on order details.
- Anchor to handlehandle•String!non-null
A unique identifier for the definition, scoped to the calling app on a single shop. Used as the
value when an app attributes an order to this definition.- Anchor to iconicon•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.
Anchor to QueriesQueries
- orderAttributionDefinitions (OrderAttributionDefinitionConnection!)
- •query
Returns approved order attribution definitions for the calling app on the current shop.
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
Anchor to MutationsMutations
- orderAttributionDefinitionUpsert (OrderAttributionDefinitionUpsertPayload)
- •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
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
iconon an existing definition, passicon: null.- Anchor to inputinput•Order
Attribution Definition Upsert Input! required The input fields for upserting the order attribution definition.
Arguments