Skip to main content
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.
Important: Deleting a customer is irreversible. Make sure you want to permanently remove this customer and all their associated data before proceeding.
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

  1. Check for Bookings: Always verify that the customer has no existing bookings before deletion
  2. Backup Data: Consider exporting customer data before deletion for record-keeping
  3. User Confirmation: Always require explicit user confirmation for deletion operations
  4. Audit Trail: Log deletion operations for audit purposes

Alternative to Deletion

Instead of deleting customers, consider:
  • Deactivating: Set customer status to inactive instead of deleting
  • Archiving: Move customer data to an archive table
  • Soft Delete: Mark as deleted without removing from database

Important Notes

Irreversible Action: Customer deletion is permanent and cannot be undone. All customer data will be lost. Booking Dependencies: Customers with existing bookings cannot be deleted. You must first handle all associated bookings. WordPress User: If the customer has an associated WordPress user account, you may need to handle that separately. Related Data: Deletion may affect other related data such as customer notes, custom fields, and historical records. Permissions: Ensure your API key has the necessary permissions to delete customers. Rate Limiting: When performing bulk deletions, implement appropriate delays to avoid overwhelming the server.