---
title: "CustomerCreateInput"
description: "The input fields for creating a customer."
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/customers/inputs/customer-create-input'
  md: 'https://developer.shopline.com/docs/storefront-api/customers/inputs/customer-create-input.md'
---
# CustomerCreateInput

The input fields for creating a customer.

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Input Fields

* `lastName`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's last name.   
  Maximum length: 128

* `firstName`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's first name.   
  Maximum length: 128

* `password`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's password.   
  Maximum length: 18

* `phone`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's phone number.    
  Maximum length: 20

* `acceptsMarketing`

  [Boolean](https://developer.shopline.com/docs/storefront-api/common/scalars/boolean.md)

  Whether the customer accepts subscribing to marketing information via email.
  * `true`: Accepts
  * `false`: Does not accept

* `email`

  [String!](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's email address.   
  Maximum length: 50

* `source`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The identifier for the source of the customer creation request. Valid values are:
  * `7`: Storefront API
  * `22`: ITS App
  * `24`: Shopper App
  
  If this field is omitted or set to `null`, the default value `7` is used.

* `verifyToken`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The verification token.

* `birthday`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's date of birth. Format: `yyyyMMdd`.     
  Example: `19931231`

* `gender`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The customer's gender. Valid values are: 
  * `male`: Male
  * `female`: Female
  * `prefer not to say`: Secret    
  
  Default value: `prefer not to say`

* `channel`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The identifier for the submission channel of the customer creation request, used in conjunction with `source` to precisely identify the customer device and operating environment. Valid values are:
  * `ShopperApp_IOS`: Shopper App on iOS
  * `ShopperApp_Android`: Shopper App on Android
  * `EC_Web`: PC web browsers
  * `EC_H5`: Mobile HTML5 web pages

* `preregisteredAccountStrategy`

  [String](https://developer.shopline.com/docs/storefront-api/common/scalars/string.md)

  The logic for handling pre-registered accounts. Valid values are:
  * `send_invite_email`: Keep the account unactivated and send an activation email to the customer.
  * `suppress_invite_email`: Keep the account unactivated and do not send any activation email to the customer.
    
  Default value: `send_invite_email`

* `attributes`

  [[ExtAttributesInput]](https://developer.shopline.com/docs/storefront-api/customers/inputs/ext-attributes-input.md)

  A list of custom customer attributes (formatted as key-value pairs), used to collect additional business information during registration, such as invitation codes and custom form fields. 
  Maximum size: 10

## Argument from

* [Mutation](https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-create.md).customerCreate

