Skip to main content

Remove a customer without reservations

POST /customers/remove/

What It Does

Remove a customer only when the route policy allows it and existing reservations do not need to preserve the record.

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/customers/remove/?id=123" \
-H "Authorization: Bearer $TBK_API_TOKEN"

Success Response Example

{
"status": "OK"
}