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){
"statusCode": 403,
"error": "<string>",
"message": "<string>"
}{
"statusCode": 404,
"error": "<string>",
"message": "<string>"
}Bookings
Delete an imported booking
Cancels a booking you imported through the API and frees its externalBookingId, so you can import a corrected row with the same id.
How to use it
- The booking isn’t removed: it moves to
CANCELLEDand stays readable. - Importing the freed
externalBookingIdagain creates a new booking instead of reportingalreadyImported. - Only bookings whose
sourceisAPIcan be deleted. - Deleting an already deleted booking succeeds and changes nothing.
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){
"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.Authorizations
Response
The booking was cancelled and its externalBookingId freed. The response has no body.
Was this page helpful?

