> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qwoty.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Customer

> Create a new customer in your workspace

## Authorization

**Authorization** `string` *required*

Bearer token. Format: `Bearer qwoty_your_token`

## Request Body

**name** `string` *required*

Customer display name

**type** `string` *required*

Customer type. Allowed values: `"company"`, `"individual"`

**segment\_id** `string`

UUID of the customer segment

**logo** `string`

Logo URL

**tax\_ids** `array`

Legal identifiers for this customer. Each entry must have both `tax` and `tax_value`.

```json theme={null}
[{ "tax": "VAT", "tax_value": "FR12345678901" }]
```

**identifiers** `object`

External system identifiers

**Identifiers**

**identifiers.crm** `string`

CRM identifier

**identifiers.erp** `string`

ERP identifier

**identifiers.accounting** `string`

Accounting identifier

**custom\_fields** `object`

Custom field values, keyed by the field `api_name`. Values are typed by the field datatype:
`text` → string, `number` → number, `timestamptz` → ISO 8601 string.
An unknown key, or a value of the wrong type or outside the field constraints, returns a `400`.

```json theme={null}
{ "loyalty_tier": "Gold", "annual_budget": 25000 }
```

## Examples

```bash cURL theme={null}
curl -X POST https://qwoty.app/api/customers \
  -H "Authorization: Bearer qwoty_your_token" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Corporation",
    "type": "company",
    "tax_ids": [
      { "tax": "VAT", "tax_value": "FR12345678901" }
    ],
    "identifiers": { "crm": "crm_001" }
  }'
```

```javascript JavaScript theme={null}
const response = await fetch('https://qwoty.app/api/customers', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer qwoty_your_token',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    name: 'Acme Corporation',
    type: 'company',
    tax_ids: [{ tax: 'VAT', tax_value: 'FR12345678901' }],
    identifiers: { crm: 'crm_001' },
  }),
})
const data = await response.json()
```

```python Python theme={null}
import requests

response = requests.post(
    'https://qwoty.app/api/customers',
    headers={
        'Authorization': 'Bearer qwoty_your_token',
        'Content-Type': 'application/json',
    },
    json={
        'name': 'Acme Corporation',
        'type': 'company',
        'tax_ids': [{'tax': 'VAT', 'tax_value': 'FR12345678901'}],
        'identifiers': {'crm': 'crm_001'},
    },
)
data = response.json()
```

## Response

**success** `boolean`

`true` if the customer was created

**data** `object`

The created customer object (same shape as [Get
Customer](https://docs.qwoty.io/api-reference/customers/get.md))

```json Success Response theme={null}
{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
    "name": "Acme Corporation",
    "type": "company",
    "segment_id": null,
    "logo": null,
    "identifiers": {
      "crm": "crm_001",
      "erp": null,
      "accounting": null
    },
    "created_at": "2026-01-15T10:30:00Z",
    "updated_at": "2026-01-15T10:30:00Z"
  }
}
```

```json Validation Error theme={null}
{
  "error": "Validation error",
  "details": [
    { "path": "name", "message": "Name is required" },
    { "path": "type", "message": "Type must be \"company\" or \"individual\"" }
  ]
}
```

```json Unauthorized theme={null}
{
  "error": "Invalid or expired token"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.