Skip to main content
PUT
Update Customer

Description

This endpoint allows you to update an existing customer’s information in the LatePoint system. You can modify any customer field including personal details, contact information, status, and custom fields.

Authentication

string
required
Your LatePoint API Key with write permissions

Path Parameters

integer
required
Unique ID of the customer to update

Request Body

Basic Information

string
Customer’s first name
string
Customer’s last name
string
Customer’s email address (must be unique)
string
Customer’s phone number

Status and Settings

string
Customer statusPossible values:
  • active - Active customer
  • inactive - Inactive customer
  • pending_verification - Pending email verification
  • blocked - Blocked customer
boolean
Whether the customer is a guest (no account)

Address Information

string
Street address
string
City name
string
State or province
string
ZIP or postal code
string
Country code (ISO 3166-1 alpha-2)

Additional Information

string
Internal notes about the customer
integer
WordPress media ID for customer avatar
object
Custom fields as key-value pairs

Response

boolean
Indicates if the update was successful
string
Success message
object
Updated customer information

Examples

Update Basic Information

Update Status and Email

Update Address Information

Response Examples

Successful Update

Validation Error

Customer Not Found

Error Codes

JavaScript Example

PHP Example

Important Notes

Email Uniqueness: The email address must be unique across all customers. If you try to update a customer with an email that already exists, you will receive a validation error. Partial Updates: You only need to include the fields you want to update. Fields not included in the request will remain unchanged. Status Changes: Changing a customer’s status may affect their ability to book appointments or access the customer portal. Custom Fields: Custom fields are merged with existing ones. To remove a custom field, set its value to null or an empty string. WordPress User: If the customer has an associated WordPress user account, some changes (like email) may also update the WordPress user.