accountRegister Mutation
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.
Applied directives
@webhookEventsInfo(asyncEvents: [CUSTOMER_CREATED, NOTIFY_USER, ACCOUNT_CONFIRMATION_REQUESTED], syncEvents: [])
accountRegister(input: AccountRegisterInput!): AccountRegister
Returns
Show return type
type AccountRegister {
user: User @deprecated(reason: "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.")
requiresConfirmation: Boolean
accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [AccountError!]!
}Arguments
input
input · AccountRegisterInput!
Fields required to create a user.
Schema: Saleor 3.23.43. Download SDL.