curl --request PATCH \
--url https://api.kelviq.com/api/v1/customers/{customerId}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jane.roe.updated@example.com",
"name": "Johnathan Doe",
"metadata": {
"source": "sdk_import",
"priority": "very_high",
"status": "active"
},
"billingAddress": {
"country": "IN",
"line1": "123 Main Street",
"line2": "Apt 4B",
"postalCode": "560001",
"city": "Bangalore",
"state": "Karnataka"
}
}
'{
"id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"customerId": "unique-customer-id-123",
"name": "Johnathan Doe",
"email": "new.customer@example.com",
"details": {},
"metadata": {
"source": "sdk_import",
"priority": "high",
"status": "active"
},
"billingAddress": {
"country": "IN",
"line1": "123 Main Street",
"line2": "Apt 4B",
"postalCode": "560001",
"city": "Bangalore",
"state": "Karnataka"
},
"createdOn": "2025-06-04T06:03:30.195790Z",
"modifiedOn": "2025-06-04T06:03:30.195831Z"
}Performs a partial update on an existing customer using their client-defined customerId.
curl --request PATCH \
--url https://api.kelviq.com/api/v1/customers/{customerId}/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jane.roe.updated@example.com",
"name": "Johnathan Doe",
"metadata": {
"source": "sdk_import",
"priority": "very_high",
"status": "active"
},
"billingAddress": {
"country": "IN",
"line1": "123 Main Street",
"line2": "Apt 4B",
"postalCode": "560001",
"city": "Bangalore",
"state": "Karnataka"
}
}
'{
"id": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
"customerId": "unique-customer-id-123",
"name": "Johnathan Doe",
"email": "new.customer@example.com",
"details": {},
"metadata": {
"source": "sdk_import",
"priority": "high",
"status": "active"
},
"billingAddress": {
"country": "IN",
"line1": "123 Main Street",
"line2": "Apt 4B",
"postalCode": "560001",
"city": "Bangalore",
"state": "Karnataka"
},
"createdOn": "2025-06-04T06:03:30.195790Z",
"modifiedOn": "2025-06-04T06:03:30.195831Z"
}The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
The client-defined unique identifier for the customer.
Fields for updating an existing customer. Only provided fields will be updated.
The email address of the customer.
"jane.roe.updated@example.com"
The name of the customer.
"Johnathan Doe"
A dictionary of custom key-value pairs. If provided, it typically replaces the existing metadata. Refer to API behavior for merge strategy.
Show child attributes
{
"source": "sdk_import",
"priority": "very_high",
"status": "active"
}The billing address of the customer.
Show child attributes
Customer Updated
Server-generated unique UUID for the customer record.
"a1b2c3d4-e5f6-7890-1234-567890abcdef"
The client-provided customer identifier.
"unique-customer-id-123"
The customer's name.
"John Doe"
The customer's email.
"new.customer@example.com"
Any server-added details about the customer (typically read-only).
{}The metadata associated with the customer.
Show child attributes
{
"source": "sdk_import",
"priority": "high"
}The billing address of the customer.
Show child attributes
Customer created date and time
"2025-06-04T06:03:30.195790Z"
Customer updated date and time
"2025-06-04T06:03:30.195790Z"