Skip to main content

List customers

GET /customers/get/

What It Does

Read customer records before creating reservations, synchronizing a CRM, or matching an external user.

Authentication

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

Parameters

This endpoint does not define query or path parameters.

Request Body

This endpoint does not require a JSON request body.

Responses

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

Request Example

curl -X GET "https://example.com/wp-json/thebooking/v1/API/customers/get/" \
-H "Authorization: Bearer $TBK_API_TOKEN"

Success Response Example

{
"status": "OK",
"response": [
{
"id": "resource_123",
"name": "Example name",
"email": "customer@example.com",
"phone": "+1 555 0100",
"wp_user": 1,
"timezone": "Europe/Rome",
"language": "en"
}
]
}