---
title: "customerCreate"
description: "Create customer"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-create'
  md: 'https://developer.shopline.com/docs/storefront-api/customers/mutations/customer-create.md'
---
# customerCreate

Create customer

- **Required Scopes:** `unauthenticated_write_customer_information`
- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`CustomerCreatePayload`

## Required Permissions

* `unauthenticated_write_customer_information`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md) for more information about how to obtain the token.

## Arguments

* `input`

  [CustomerCreateInput!](https://developer.shopline.com/docs/storefront-api/customers/inputs/customer-create-input.md)

  input

## Returns

* `customer`

  [Customer](https://developer.shopline.com/docs/storefront-api/customers/objects/customer.md)

  Customer Information

* `customerUserErrors`

  [[CustomerUserError]](https://developer.shopline.com/docs/storefront-api/customers/objects/customer-user-error.md)

  Error message

## Code Example

```graphql
mutation customerCreate($input: CustomerCreateInput! ) {
	customerCreate(input: $input ) 
		 {
			# CustomerCreatePayload fields
		}
		
	}

```

## Variables

```json
{
  "input": {
    "acceptsMarketing": {},
    "birthday": {},
    "channel": "",
    "email": "",
    "firstName": "",
    "gender": "",
    "lastName": "",
    "password": "",
    "phone": "",
    "source": "",
    "verifyToken": ""
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

