Skip to main content
PUT
/
v2
/
customers
/
{id}
Update customer (v2)
curl --request PUT \
  --url http://localhost:3156/v2/customers/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "firstName": "John",
  "lastName": "Doe",
  "email": "[email protected]",
  "phoneNumber": "+1234567890",
  "active": true,
  "notificationOptions": {
    "notifyEmail": false,
    "notifyPhone": false
  }
}
'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "firstName": "John",
  "lastName": "Doe",
  "email": "[email protected]",
  "phoneNumber": "+1234567890",
  "active": true,
  "notificationOptions": {
    "notifyEmail": true,
    "notifyPhone": false
  },
  "createdAt": "2025-01-15T10:00:00.000Z",
  "updatedAt": "2025-01-15T10:00:00.000Z"
}

Path Parameters

id
string<uuid>
required

Customer unique identifier

Body

application/json
firstName
string

Customer's first name

Minimum string length: 1
Example:

"John"

lastName
string

Customer's last name

Example:

"Doe"

email
string<email>

Customer's email address

phoneNumber
string

Customer's phone number

Example:

"+1234567890"

active
boolean

Whether the customer is active

Example:

true

notificationOptions
object

Customer notification preferences

Response

Customer updated successfully

id
string<uuid>

Unique customer identifier

Example:

"123e4567-e89b-12d3-a456-426614174000"

firstName
string

Customer's first name

Example:

"John"

lastName
string

Customer's last name

Example:

"Doe"

email
string<email>

Customer's email address

phoneNumber
string

Customer's phone number

Example:

"+1234567890"

active
boolean

Whether the customer is active

Example:

true

notificationOptions
object

Customer notification preferences

createdAt
string<date-time>

Customer creation timestamp

Example:

"2025-01-15T10:00:00.000Z"

updatedAt
string<date-time>

Customer last update timestamp

Example:

"2025-01-15T10:00:00.000Z"