Delete Customer
Customers
Delete Customer
Delete a customer from the system
DELETE
Delete Customer
Description
This endpoint allows you to delete a customer from the LatePoint system. The customer will be permanently removed from the database along with their associated data.Booking Protection: Customers with existing bookings cannot be deleted to maintain data integrity. You must first cancel or delete all associated bookings before deleting the customer.
Authentication
string
required
Your LatePoint API Key with delete permissions
Path Parameters
integer
required
Unique ID of the customer to delete
Response
boolean
Indicates if the deletion was successful
string
Success or error message
object
Additional information about the deletion
Examples
Delete Customer
Response Examples
Successful Deletion
Customer Not Found
Customer Has Bookings
Deletion Failed
Error Codes
JavaScript Example
PHP Example
Bulk Deletion Example
Best Practices
Before Deleting
- Check for Bookings: Always verify that the customer has no existing bookings before deletion
- Backup Data: Consider exporting customer data before deletion for record-keeping
- User Confirmation: Always require explicit user confirmation for deletion operations
- Audit Trail: Log deletion operations for audit purposes
Alternative to Deletion
Instead of deleting customers, consider:- Deactivating: Set customer status to
inactiveinstead of deleting - Archiving: Move customer data to an archive table
- Soft Delete: Mark as deleted without removing from database
