Skip to main content
mutation

Requires Requires the write_external_accounts 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 accountId to clear the link. An account that this mutation links replaces an account that Shopify matched automatically, and an automatic match never replaces it.

•String

The partner's account ID. Use null to clear the linked account.

•String

The partner account's name. Every call must include it. Use null when the account has no name. A link that's cleared has no name.


Was this section helpful?

Anchor to ExternalAccountSetPayload returnsExternalAccountSetPayload returns

•AgenticExternalAccount

The partner account that's linked to the shop's enrollment for the channel.

Show fields
•[ExternalAccountSetUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?