# createCustomer

Audience: Programmer

**Served by:** [maindata](https://docs.pyck.cloud/latest/api/services/maindata.md)

## Arguments

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `input` | [CreateCustomerInput](https://docs.pyck.cloud/latest/api/inputs/createcustomerinput.md)! |  |  |

## Returns

[Customer](https://docs.pyck.cloud/latest/api/types/customer.md)

## Example

Creates a customer with data type reference and custom data.

```graphql
mutation CreateCustomer($input: CreateCustomerInput!) {
  createCustomer(input: $input) {
    createdAt
    createdBy
    data
    dataTypeID
    dataTypeSlug
    deletedAt
    deletedBy
    id
    tenantID
    updatedAt
    updatedBy
  }
}
```

**Variables**

```json
{
  "input": {
    "data": {
      "industry": "manufacturing",
      "name": "Acme Corp"
    },
    "dataTypeID": "<customer data type ID>"
  }
}
```
