Description
This endpoint allows you to permanently delete a booking from the system. This action is irreversible and should be used with caution.Irreversible Action: Once deleted, the booking cannot be recovered. Consider using the
cancelled
status instead if you need to maintain a historical record.Authentication
Your LatePoint API Key with deletion permissions
Path Parameters
Unique ID of the booking to delete
Query Parameters
Force deletion even if the booking is approved or completed
Response
Successful Response (200 OK)
Response status (“success”)
Deletion confirmation message
Basic confirmation of the deletion operation
Examples
Simple Deletion
Forced Deletion
Example Response
Successful Deletion
Error Codes
Deletion Rules
States that Allow Direct Deletion
pending
- Pendingcancelled
- Cancelled
States that Require force=true
approved
- Approvedcompleted
- Completed
The current implementation checks for
approved
and completed
statuses to require force deletion.Important Notes
Deletion vs Cancellation: In most cases, it’s better to cancel a booking (change status to
cancelled
) than to delete it permanently.Irrecoverable Data: Once deleted, all booking information is permanently lost. Make sure you have backups if necessary.
Simple Implementation: This endpoint provides basic deletion functionality. Advanced features like customer notifications and audit logging are not currently implemented.