external Account Set
Requires Requires the capability, which Shopify grants to approved apps. Merchants don't grant it, and apps don't request it as an access scope. The app must be the linking app of an agentic channel, and must call with its own installation token, not a delegate access token or a Direct API access token.
Links a partner account to the shop's enrollment for the agentic channel that
the calling app links. Every call sends the account's ID and name, and Shopify
stores the name with the ID. Use null as the to clear the link.
An account that this mutation links replaces an account that Shopify matched
automatically, and an automatic match never replaces it.
Arguments
- accountId (String)
- accountName (String)
- Anchor to accountIdaccount•String
Id The partner's account ID. Use
nullto clear the linked account.- Anchor to accountNameaccount•String
Name The partner account's name. Every call must include it. Use
nullwhen the account has no name. A link that's cleared has no name.
- externalAccount (AgenticExternalAccount)
- userErrors ([ExternalAccountSetUserError!]!)
- Anchor to externalAccountexternal•Agentic
Account External Account The partner account that's linked to the shop's enrollment for the channel.
Show fields
- Anchor to userErrorsuser•[External
Errors Account Set User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields