Required access

unauthenticated_write_customers access scope

Creates a new customer.

Interactive Example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Argument Type Default Description
input required CustomerCreateInput!

Input Fields

acceptsMarketing   (Boolean)

Indicates whether the customer has consented to be sent marketing material via email.

email   (String!)


The customer’s email.

firstName   (String)

The customer’s first name.

lastName   (String)

The customer’s last name.

password   (String!)


The login password used by the customer.

phone   (String)

The customer’s phone number.

Return Fields

customer   (Customer)

The created customer object.

userErrors   ([UserError!]!)

List of errors that occurred executing the mutation.

Sign up for a Partner account to get started.

Sign up