Update Customer
Customers
Update Customer
Update an existing customer in the system
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
Your LatePoint API Key with write permissions
Path Parameters
Unique ID of the customer to update
Request Body
Basic Information
Customer’s first name
Customer’s last name
Customer’s email address (must be unique)
Customer’s phone number
Status and Settings
Customer statusPossible values:
active- Active customerinactive- Inactive customerpending_verification- Pending email verificationblocked- Blocked customer
Whether the customer is a guest (no account)
Address Information
Street address
City name
State or province
ZIP or postal code
Country code (ISO 3166-1 alpha-2)
Additional Information
Internal notes about the customer
WordPress media ID for customer avatar
Custom fields as key-value pairs
Response
Indicates if the update was successful
Success message
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
| Code | Status | Description |
|---|---|---|
customer_not_found | 404 | Customer with specified ID doesn’t exist |
customer_update_failed | 400 | Validation error or update failed |
latepoint_not_available | 503 | LatePoint plugin not loaded |
server_error | 500 | Internal server error |
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 tonull 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.