Skip to main content
mutation

Requires unauthenticated_write_customers access scope.

Creates a new Customer account with the provided contact information and login credentials. The customer can then sign in for things such as accessing their account, viewing order history, and managing saved addresses.


Caution

This mutation creates customer credentials. Ensure passwords are collected securely and never logged or exposed in client-side code.


•CustomerCreateInput!
required

The fields used to create a new customer.


Was this section helpful?

Anchor to CustomerCreatePayload returnsCustomerCreatePayload returns

•Customer

The created customer object.

•[CustomerUserError!]!
non-null

The list of errors that occurred from executing the mutation.

•[UserError!]!
non-nullDeprecated

The list of errors that occurred from executing the mutation.


Was this section helpful?