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
| Name | Location | Required | Type | Description |
|---|---|---|---|---|
id | query | Yes | string | Resource identifier used by TheBooking. |
Request Body
This endpoint does not require a JSON request body.
Responses
| Status | Meaning | Description | Body |
|---|---|---|---|
200 | Success | Operation completed | OkEnvelope |
401 | Authentication required | Missing or invalid API token | WpRestError |
403 | Forbidden | Token lacks write scope or the operation is forbidden | WpRestError or ErrorEnvelope |
404 | Not found | Resource not found | ErrorEnvelope |
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"
}