Tableo Restaurant API
Patrons

Search Patrons

Search patrons by name, email, or mobile number. Returns up to 20 results with booking counts.

GET
/api/restaurant/patrons/search

Authorization

bearerAuth
AuthorizationBearer <token>

Supports two token types:

  1. Restaurant tokens — API tokens with restaurant-api ability, issued per restaurant.
  2. User tokens — Personal access tokens with mobile-access ability (e.g. for the mobile app). When managing multiple restaurants, include X-Restaurant-Id: <id> header.

In: header

Query Parameters

q*string

Search query (minimum 2 characters).

Length2 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://devrms.tabdevx.com/api/restaurant/patrons/search?q=string"
{
  "data": [
    {
      "id": 456,
      "name": "John Doe",
      "email": "john@example.com",
      "mobile_number": "+35612345678",
      "mobile_prefix": "+356",
      "is_vip": false,
      "comments": "Prefers window seat",
      "total_bookings": 12
    }
  ]
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "timestamp": "2019-08-24T14:15:22Z"
  }
}
{
  "message": "The given data was invalid.",
  "errors": {
    "date": [
      "The date field is required."
    ],
    "adults": [
      "The adults must be at least 1."
    ]
  }
}
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  },
  "meta": {
    "timestamp": "2019-08-24T14:15:22Z"
  }
}