Skip to main content
DELETE
/
v1
/
hotel-stays
/
{hotel_stay_id}
Delete Hotel Stay
const options = {
  method: 'DELETE',
  headers: {Authorization: '<authorization>', 'x-organization-id': '<x-organization-id>'}
};

fetch('https://api.dcycle.io/v1/hotel-stays/{hotel_stay_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));

Delete Hotel Stay

Permanently deletes a hotel stay record and its associated total_impacts rows. This action cannot be undone.

Request

Headers

Authorization
string
required
Bearer token for authenticationExample: Bearer sk_live_1234567890abcdef
x-organization-id
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

hotel_stay_id
string
required
The unique identifier (UUID) of the hotel stay to deleteExample: 550e8400-e29b-41d4-a716-446655440000

Response

Returns 204 No Content on success. No response body.

Example

curl -X DELETE "https://api.dcycle.io/v1/hotel-stays/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer ${DCYCLE_API_KEY}" \
  -H "x-organization-id: ${DCYCLE_ORG_ID}"

Common Errors

404 Not Found

Cause: The hotel stay ID does not exist or belongs to a different organization.
{
  "detail": "Hotel stay not found",
  "code": "HOTEL_STAY_NOT_FOUND"
}

Bulk Delete

Delete multiple hotel stays at once

List Hotel Stays

Browse all hotel stays