customerCreate

Creates a new customer.

Required access

unauthenticated_write_customers access scope

Arguments

input ( CustomerCreateInput! ) required

Input Fields

acceptsMarketing (Boolean)

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

email (String!) Required

The customer’s email.

firstName (String)

The customer’s first name.

lastName (String)

The customer’s last name.

password (String!) Required

The login password used by the customer.

phone (String)

The customer’s phone number.

Return Fields

customer (Customer)

The created customer object.

customerUserErrors ([CustomerUserError!]!)

List of errors that occurred executing the mutation.

Deprecated return fields

Show/Hide
userErrors ([UserError!]!) deprecated

List of errors that occurred executing the mutation.

Deprecation warning

Use customerUserErrors instead

Creates a new customer.

Required access

unauthenticated_write_customers access scope

Arguments

input ( CustomerCreateInput! ) required

Input Fields

acceptsMarketing (Boolean)

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

email (String!) Required

The customer’s email.

firstName (String)

The customer’s first name.

lastName (String)

The customer’s last name.

password (String!) Required

The login password used by the customer.

phone (String)

The customer’s phone number.

Return Fields

customer (Customer)

The created customer object.

customerUserErrors ([CustomerUserError!]!)

List of errors that occurred executing the mutation.

Deprecated return fields

Show/Hide
userErrors ([UserError!]!) deprecated

List of errors that occurred executing the mutation.

Deprecation warning

Use customerUserErrors instead

Sign up for a Partner account to get started.

Sign up