Delete an imported booking
curl --request DELETE \
--url https://api.letsdothis.com/v0/bookings/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/bookings/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/bookings/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)"<unknown>"{
"statusCode": 403,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}Bookings
Delete an imported booking
Deletes a booking that was imported through the Public API, so a corrected row can be imported in its place. The booking is not removed — it moves to CANCELLED and stays readable — but the externalBookingId it was imported under is freed, so re-importing that id creates a new booking rather than reporting alreadyImported.
Deleting is idempotent: deleting an already-deleted booking succeeds and changes nothing. Only bookings whose source is API can be deleted; anything else returns 403, and a booking that does not exist or belongs to another organizer returns 404.
DELETE
/
v0
/
bookings
/
{id}
Delete an imported booking
curl --request DELETE \
--url https://api.letsdothis.com/v0/bookings/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.letsdothis.com/v0/bookings/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.letsdothis.com/v0/bookings/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)"<unknown>"{
"statusCode": 403,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}This endpoint is restricted and not generally available: organizations that have not been enabled receive a
403. Contact your Let’s Do This representative if you’d like access.Was this page helpful?

