> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.etera.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.etera.dev/_mcp/server.

# Get Restaurant Booking History

GET https://api.etera.dev/restaurant/booking/management/{restaurantId}/bookings


        Retrieve paginated booking history for restaurant management.
        
        **Features:**
        - 📋 **Complete Booking Details** - Guest info, status, timestamps
        - 🔍 **Advanced Filtering** - By status, date range, provider
        - 📄 **Pagination Support** - Handle large booking volumes
        - 📊 **Export Ready** - Data formatted for reports
        
        **Filtering Options:**
        - **Status** - Filter by booking status
        - **Date Range** - Custom date filters
        - **Provider** - Filter by booking source
        - **Search** - Find specific bookings
        
        **Use Cases:**
        - Daily operations management
        - Customer service lookup
        - Financial reconciliation
        - Performance analysis
      

Reference: https://docs.etera.dev/restaurant/booking/restaurant-booking-api/management/get-management-by-restaurant-id-bookings

## Servers

- `https://api.etera.dev/restaurant/booking` (Production, default)
- `https://api-stage.etera.dev/restaurant/booking` (Staging)
- `https://api-dev.etera.dev/restaurant/booking` (Development)

## Request

### Path parameters

- `restaurantId` (string, required) — Restaurant identifier

### Query parameters

- `page` (double, optional) — Page number
- `limit` (double, optional) — Items per page
- `status` (enum, optional) — Filter by status
  - Allowed values: `pending`, `confirmed`, `cancelled`, `completed`, `no_show`
- `dateFrom` (string, optional) — Start date filter
- `dateTo` (string, optional) — End date filter
- `provider` (enum, optional) — Filter by provider
  - Allowed values: `opentable`, `ai_calling`, `tablecheck`

## Response

### 200

Booking history retrieved successfully

- `success` (boolean, optional)
- `restaurantId` (string, optional)
- `bookings` (list of ManagementRestaurantIdBookingsGetResponsesContentApplicationJsonSchemaBookingsItems, optional)
- `pagination` (ManagementRestaurantIdBookingsGetResponsesContentApplicationJsonSchemaPagination, optional)

## Types

### ManagementRestaurantIdBookingsGetResponsesContentApplicationJsonSchemaBookingsItems

- `id` (string, optional)
- `guestName` (string, optional)
- `email` (string, optional)
- `phone` (string, optional)
- `partySize` (double, optional)
- `date` (string, optional)
- `time` (string, optional)
- `status` (string, optional)
- `provider` (string, optional)
- `createdAt` (datetime, optional)
- `updatedAt` (datetime, optional)

### ManagementRestaurantIdBookingsGetResponsesContentApplicationJsonSchemaPagination

- `page` (double, optional)
- `limit` (double, optional)
- `total` (double, optional)
- `totalPages` (double, optional)

## Examples

**Response**

```json
{
  "success": true,
  "restaurantId": "rest_abc123",
  "bookings": [
    {
      "id": "bk_001",
      "guestName": "John Doe",
      "email": "john@example.com",
      "phone": "+1234567890",
      "partySize": 4,
      "date": "2024-01-15",
      "time": "19:00",
      "status": "confirmed",
      "provider": "opentable",
      "createdAt": "2024-01-15T09:30:00Z",
      "updatedAt": "2024-01-15T09:30:00Z"
    }
  ],
  "pagination": {
    "page": 1,
    "limit": 20,
    "total": 245,
    "totalPages": 13
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.etera.dev/restaurant/booking/management/restaurantId/bookings"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.etera.dev/restaurant/booking/management/restaurantId/bookings';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.etera.dev/restaurant/booking/management/restaurantId/bookings"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.etera.dev/restaurant/booking/management/restaurantId/bookings")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.etera.dev/restaurant/booking/management/restaurantId/bookings")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.etera.dev/restaurant/booking/management/restaurantId/bookings');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.etera.dev/restaurant/booking/management/restaurantId/bookings");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.etera.dev/restaurant/booking/management/restaurantId/bookings")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```