Skip to content

/v1/bookings/{reservationId} (DELETE)

DELETE
/v1/bookings/{reservationId}
curl --request DELETE \
--url http://localhost:8787/v1/bookings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'
reservationId
required
string format: uuid

The booking, now cancelled.

Media typeapplication/json
object
createdAt
required
string
currency
required
string
>= 3 characters <= 3 characters
endsAt
required
string
guestEmail
required
string | null
holdExpiresAt
required
string | null
id
required
string format: uuid
occupancyAdults
required
integer | null
occupancyChildren
required
integer
quantity
required
integer
ratePlanId
required
string | null format: uuid
resourceId
required
string format: uuid
roomTypeId
required
string | null format: uuid
source
required
string
startsAt
required
string
state
required
string
Allowed values: pending held confirmed cancelled checked_in checked_out no_show expired
totalMinorUnits
required
string
/^\d+$/
updatedAt
required
string
Example
{
"state": "pending"
}

No such booking for this tenant.

Media typeapplication/problem+json
object
code
required
string
Allowed values: booking_not_found illegal_transition invalid_cursor
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{
"code": "booking_not_found"
}

The booking is not in a state that can be cancelled (e.g. already checked out).

Media typeapplication/problem+json
object
code
required
string
Allowed values: booking_not_found illegal_transition invalid_cursor
detail
required
string
status
required
number
title
required
string
type
required
string
Example
{
"code": "booking_not_found"
}