Anchor to orderAttributionDefinitionUpsertorder
mutationorder Attribution Definition Upsert
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 icon on an existing definition, pass icon: null.
Anchor to Arguments
Arguments
- input (OrderAttributionDefinitionUpsertInput!)
- Anchor to inputinput•Order
Attribution Definition Upsert Input! required The input fields for upserting the order attribution definition.
Was this section helpful?
Anchor to OrderAttributionDefinitionUpsertPayload returnsOrder Attribution Definition Upsert Payload returns
- orderAttributionDefinition (OrderAttributionDefinition)
- userErrors ([OrderAttributionDefinitionUpsertUserError!]!)
- Anchor to orderAttributionDefinitionorder•Order
Attribution Definition Attribution Definition The order attribution definition that was upserted.
- Anchor to userErrorsuser•[Order
Errors Attribution Definition Upsert User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?