Skip to main content
PATCH
/
v1
/
customers
/
{id}
Update customer
curl --request PATCH \
  --url https://api.daya.co/v1/customers/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <x-api-key>' \
  --data '
{
  "first_name": "<string>",
  "last_name": "<string>"
}
'
{
  "id": "650e8400-e29b-41d4-a716-446655440000",
  "email": "customer@example.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "created_at": "2026-01-05T15:04:05Z",
  "updated_at": "2026-01-06T10:30:00Z"
}

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

first_name
string
Customer first name (1-100 characters)Example: Jane
last_name
string
Customer last name (1-100 characters)Example: Doe

Request Examples

{
  "first_name": "Jane",
  "last_name": "Doe"
}

Response

id
string
required
Unique customer identifier (UUID)
email
string
required
Customer email address
first_name
string
Customer first name
last_name
string
Customer last name
created_at
string
required
When the customer was created (ISO 8601 timestamp)
updated_at
string
required
When the customer was last updated (ISO 8601 timestamp)

Success Response

{
  "id": "650e8400-e29b-41d4-a716-446655440000",
  "email": "customer@example.com",
  "first_name": "Jane",
  "last_name": "Doe",
  "created_at": "2026-01-05T15:04:05Z",
  "updated_at": "2026-01-06T10:30:00Z"
}

Error Responses

{
  "error": {
    "code": "validation_failed",
    "message": "Invalid UUID format"
  }
}

Next Steps

Get Customer

Retrieve the full customer record

Submit Tier 1 Verification

Verify a customer’s identity for permanent onramps