Skip to main content

Remove a reservation allowed by the route policy

POST /reservations/remove/

What It Does

Remove a reservation when deletion is allowed by the route policy. Prefer status changes when history must remain visible.

Authentication

Requires an API token with the write scope. Send it as a bearer token or with the configured API key header.

Parameters

NameLocationRequiredTypeDescription
idqueryYesstringResource identifier used by TheBooking.

Request Body

This endpoint does not require a JSON request body.

Responses

StatusMeaningDescriptionBody
200SuccessOperation completedOkEnvelope
401Authentication requiredMissing or invalid API tokenWpRestError
403ForbiddenToken lacks write scope or the operation is forbiddenWpRestError or ErrorEnvelope
404Not foundResource not foundErrorEnvelope

Request Example

curl -X POST "https://example.com/wp-json/thebooking/v1/API/reservations/remove/?id=123" \
-H "Authorization: Bearer $TBK_API_TOKEN"

Success Response Example

{
"status": "OK"
}