Skip to main content
Anchor to customerGenerateAccountActivationUrl

customerGenerateAccountActivationUrl

mutation

Requires write_customers access scope.

Generates a one-time activation URL for a Customer whose legacy customer account isn't yet enabled. Use this after importing customers or creating accounts that need activation.

The generated URL expires after 30 days and becomes invalid if you generate a new one.


Note

The generated URL only works when legacy customer accounts are enabled on the shop. It only works for customers with disabled or invited account states. Attempting to generate a URL for an already-enabled customer returns an error.


ID!
required

The ID of the customer that the URL is generated for.


Was this section helpful?

Anchor to CustomerGenerateAccountActivationUrlPayload returnsCustomerGenerateAccountActivationUrlPayload returns

Anchor to accountActivationUrlaccountActivationUrl
URL

The generated account activation URL.

[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?