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

# Update customer

> Update an existing customer's details

## Overview

Update the details of an existing customer. Only provided fields are updated; omitted fields remain unchanged.

## Authentication

**X-Api-Key** `string` *required*

Your merchant API key

## Path Parameters

**id** `string` *required*

Customer ID (UUID)

**Example:** `650e8400-e29b-41d4-a716-446655440000`

## Request Body

**email** `string`

Customer email address. Must be a valid email if provided.

**Example:** `customer@example.com`

**first\_name** `string`

Customer first name (1-100 characters)

**Example:** `Jane`

**last\_name** `string`

Customer last name (1-100 characters)

**Example:** `Doe`

## Request Examples

```json JSON theme={"dark"}
{
  "email": "customer@example.com",
  "first_name": "Jane",
  "last_name": "Doe"
}
```

```bash cURL theme={"dark"}
curl --request PATCH \
  --url https://api.daya.co/v1/customers/650e8400-e29b-41d4-a716-446655440000 \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "email": "customer@example.com",
    "first_name": "Jane",
    "last_name": "Doe"
  }'
```

```javascript JavaScript theme={"dark"}
const response = await fetch(
  'https://api.daya.co/v1/customers/650e8400-e29b-41d4-a716-446655440000',
  {
    method: 'PATCH',
    headers: {
      'X-Api-Key': 'YOUR_API_KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      email: 'customer@example.com',
      first_name: 'Jane',
      last_name: 'Doe'
    })
  }
);
const customer = await response.json();
console.log(customer);
```

## Response

Returns the updated customer object. See [Get customer](https://docs.daya.co/api-reference/customers/get-customer.md#response) for the full field list.

### Success Response

```json 200 OK theme={"dark"}
{
  "id": "650e8400-e29b-41d4-a716-446655440000",
  "email": "customer@example.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "is_verified": false,
  "tier_1_kyc_complete": false,
  "tier_2_kyc_complete": false,
  "capabilities": [],
  "rejection_reasons": [],
  "created_at": "2026-01-05T15:04:05Z",
  "updated_at": "2026-01-06T10:30:00Z"
}
```

## Error Responses

```json 400 Bad Request - Invalid UUID theme={"dark"}
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid UUID format",
    "request_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
```

```json 400 Bad Request - Validation failed theme={"dark"}
{
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "Validation failed",
    "request_id": "550e8400-e29b-41d4-a716-446655440000",
    "validation": "first_name must be between 1 and 100 characters"
  }
}
```

```json 404 Not Found theme={"dark"}
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Customer not found",
    "request_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
```

```json 409 Conflict - Email already exists theme={"dark"}
{
  "error": {
    "code": "CONFLICT",
    "message": "Customer with this email already exists for this merchant",
    "request_id": "550e8400-e29b-41d4-a716-446655440000"
  }
}
```

## Next Steps

> [card] [Get Customer](https://docs.daya.co/api-reference/customers/get-customer.md)
>
> Retrieve the full customer record

> [card] [Submit Tier 1 Verification](https://docs.daya.co/api-reference/customers/submit-tier1-verification.md)
>
> Verify a customer's identity for permanent NGN funding accounts


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