DELETE 5 min read

Delete Booking

DELETE /api/v1/bookings/{id}

Delete a booking

Delete Booking

Permanently delete a booking.

Path Parameters

Parameter Type Description
id integer The booking ID

Example Request

curl -X DELETE "https://hydra.marketdragon.ph/api/v1/bookings/42" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json"

Example Response

{
    "message": "Booking deleted successfully."
}

Error Responses

403 Forbidden

{
    "message": "You do not have access to this booking."
}

404 Not Found

{
    "message": "No query results for model [Booking] 999"
}

Note

Consider using the status update endpoint to set a booking to cancelled instead of permanently deleting it, as this preserves the booking history for reporting purposes.

Back to Bookings
Was this helpful?