# CustomerInput input


The customer. Send either `id` alone, or what the external source knows about the customer.
MAX matches a customer by `externalId`, then by registration id, then by e-mail, and creates a
new customer when nothing matches. MAX never overwrites an existing customer's details.

## Input fields

### id

[`UUID`](/chameleoon-max/type/uuid)

The customer's MAX id. Send nothing else with it.

### externalId

`String`

The customer's id in the external source.

### name

`String`

The person's name.

### companyName

`String`

The company's name; when sent, it names a new customer.

### registrationId

`String`

The company registration number (IČO).

### vatId

`String`

The VAT id (IČ DPH / DIČ).

### email

`String`

The e-mail, also kept as the order's contact.

### phone

`String`

The phone, also kept as the order's contact.

## Used by

- [`CreateSalesOrderInput`](/chameleoon-max/type/create-sales-order-input)
