Skip to main content

AccountRegister Object

Register a new user.

Triggers the following webhook events:

  • CUSTOMER_CREATED (async): A new customer account was created.
  • NOTIFY_USER (async): A notification for account confirmation.
  • ACCOUNT_CONFIRMATION_REQUESTED (async): An user confirmation was requested. This event is always sent regardless of settings.
type AccountRegister {
user: User @deprecated
requiresConfirmation: Boolean
accountErrors: [AccountError!]! @deprecated
errors: [AccountError!]!
}

Fields

requiresConfirmation ● Boolean

Informs whether users need to confirm their email address.

errors ● [AccountError!]!

Show deprecatedHide deprecated

user ● User

DEPRECATED

The field always returns a User object constructed from the input data. The user.id is always empty. To determine whether the user exists in Saleor, query via an external app with the required permissions.

accountErrors ● [AccountError!]!

DEPRECATED

Use errors field instead.

Returned By

accountRegister mutation