Skip to main content

CustomerCreate

Creates a new customer.

Requires MANAGE_USERSpermission.

Triggers the following webhook events:

  • CUSTOMER_CREATED (async): A new customer account was created.
  • CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated.
  • NOTIFY_USER (async): A notification for setting the password.
  • ACCOUNT_SET_PASSWORD_REQUESTED (async): Setting a new password for the account is requested.
type CustomerCreate {
accountErrors: [AccountError!]! @deprecated
errors: [AccountError!]!
user: User
}

Fields

CustomerCreate.accountErrors ● [AccountError!]! deprecated non-null object users

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

CustomerCreate.errors ● [AccountError!]! non-null object users

CustomerCreate.user ● User object users

Returned By

customerCreate mutation