> ## 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.

# Update Customer

> Partially update a customer

## Authorization

**Authorization** `string` *required*

Bearer token. Format: `Bearer qwoty_your_token`

## Path Parameters

**id** `string` *required*

UUID of the customer to update

## Request Body

All fields are optional. Only the fields provided will be updated.

**name** `string`

Customer display name

**type** `string`

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

**segment\_id** `string | null`

UUID of the customer segment. Set to `null` to unset.

**logo** `string | null`

Logo URL. Set to `null` to unset.

**tax\_ids** `array`

Legal identifiers. **Replaces all existing tax IDs.** Send `[]` to remove all.

Omitting this field leaves existing tax IDs unchanged.

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

**identifiers** `object`

External system identifiers

**Identifiers**

**identifiers.crm** `string | null`

CRM identifier. Set to `null` to unset.

**identifiers.erp** `string | null`

ERP identifier. Set to `null` to unset.

**identifiers.accounting** `string | null`

Accounting identifier. Set to `null` to unset.

**custom\_fields** `object`

Custom field values, keyed by the field `api_name` (JSON Merge Patch, RFC 7396):
only the keys sent are written, `null` clears a value, keys not sent are left unchanged.
Values are typed by the field datatype (`text` → string, `number` → number,
`timestamptz` → ISO 8601 string). An unknown key or an invalid value returns a `400`
and nothing is written.

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

## Examples

```bash cURL theme={null}
curl -X PATCH https://qwoty.app/api/customers/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer qwoty_your_token" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Corp (Renamed)",
    "tax_ids": [
      { "tax": "VAT", "tax_value": "FR98765432100" }
    ]
  }'
```

```javascript JavaScript theme={null}
const customerId = '550e8400-e29b-41d4-a716-446655440000'

const response = await fetch(`https://qwoty.app/api/customers/${customerId}`, {
  method: 'PATCH',
  headers: {
    Authorization: 'Bearer qwoty_your_token',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    name: 'Acme Corp (Renamed)',
    tax_ids: [{ tax: 'VAT', tax_value: 'FR98765432100' }],
  }),
})
const data = await response.json()
```

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

customer_id = '550e8400-e29b-41d4-a716-446655440000'

response = requests.patch(
    f'https://qwoty.app/api/customers/{customer_id}',
    headers={
        'Authorization': 'Bearer qwoty_your_token',
        'Content-Type': 'application/json',
    },
    json={
        'name': 'Acme Corp (Renamed)',
        'tax_ids': [{'tax': 'VAT', 'tax_value': 'FR98765432100'}],
    },
)
data = response.json()
```

## Response

**success** `boolean`

`true` if the update succeeded

**data** `object`

The updated 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",
    "name": "Acme Corp (Renamed)",
    "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-03-24T14:00:00Z"
  }
}
```

```json Not Found theme={null}
{
  "error": "Customer not found"
}
```


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