---
title: CustomerCreateInput - Storefront API
description: >-
  The input fields for creating a new

  [`Customer`](/docs/api/storefront/2026-04/objects/Customer)

  account. Used by the
  [`customerCreate`](/docs/api/storefront/2026-04/mutations/customerCreate)
  mutation.


  For legacy customer accounts only and requires an email address and password.

  Optionally accepts the customer's name, phone number, and email marketing
  consent.


  > Caution:

  > The password is used for customer authentication. Ensure it's transmitted

  securely and never logged or stored in plain text.
api_version: 2026-04
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/input-objects/CustomerCreateInput
  md: >-
    https://shopify.dev/docs/api/storefront/latest/input-objects/CustomerCreateInput.md
api_name: storefront
api_type: graphql
type: input-object
---

# Customer​Create​Input

input\_object

The input fields for creating a new [`Customer`](https://shopify.dev/docs/api/storefront/2026-04/objects/Customer) account. Used by the [`customerCreate`](https://shopify.dev/docs/api/storefront/2026-04/mutations/customerCreate) mutation.

For legacy customer accounts only and requires an email address and password. Optionally accepts the customer's name, phone number, and email marketing consent.

***

**Caution:** The password is used for customer authentication. Ensure it\&#39;s transmitted securely and never logged or stored in plain text.

***

## Fields

* accepts​Marketing

  [Boolean](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean)

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

* email

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  non-null

  The customer’s email.

* first​Name

  [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  The customer’s first name.

* last​Name

  [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  The customer’s last name.

* password

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  non-null

  The login password used by the customer.

* phone

  [String](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  A unique phone number for the customer.

  Formatted using E.164 standard. For example, *+16135551111*.

***

## Mutations using this input

* [customer​Create.input](https://shopify.dev/docs/api/storefront/latest/mutations/customerCreate#arguments-input)

  ARGUMENT

***

## Map

### Mutations using this input

* [customer​Create.input](https://shopify.dev/docs/api/storefront/latest/mutations/customerCreate#arguments-input)
