Skip to main content

List reservations

GET /reservations/get/

What It Does

Read reservations for synchronization, reporting, or a customer-facing account area.

Authentication

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

Parameters

NameLocationRequiredTypeDescription
fullqueryNobooleanInclude stored data properties.
pastqueryNobooleanInclude past reservations.
customersqueryNostringComma-separated customer IDs.
servicesqueryNostringComma-separated service IDs.
providersqueryNostringComma-separated provider IDs.
statusqueryNoenum(pending, confirmed, cancelled)Current reservation status.

Request Body

This endpoint does not require a JSON request body.

Responses

StatusMeaningDescriptionBody
200SuccessReservationsOkEnvelope + object
401Authentication requiredMissing or invalid API tokenWpRestError

Request Example

curl -X GET "https://example.com/wp-json/thebooking/v1/API/reservations/get/?full=true&past=true&customers=value&services=service_123&providers=123&status=value" \
-H "Authorization: Bearer $TBK_API_TOKEN"

Success Response Example

{
"status": "OK",
"response": [
{
"id": "resource_123",
"serviceId": "service_123",
"customerId": "customer_123",
"providerId": 123,
"start": 1779148800,
"end": 1779152400,
"status": "pending"
}
]
}