> ## Documentation Index
> Fetch the complete documentation index at: https://docs.series.hr/llms.txt
> Use this file to discover all available pages before exploring further.

# List Tables

> List all F&B tables with live occupancy status

List every table configured in the workspace F\&B module. Each table includes an `EffectiveStatus` that reflects whether the table is currently occupied by an active order (pending, preparing, or ready).

## Request

```bash theme={null}
curl -X GET "https://api.series.hr/fnb/list-tables?status=available" \
  -H "apikey: YOUR_API_KEY"
```

## Parameters

<ParamField query="status" type="string">
  Filter by table status: `available`, `occupied`, `reserved`, or `unavailable`.
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "WorkspaceId": "a7d5339a-5531-4336-99c6-6f3249c9ac20",
      "WorkspaceName": "Café Series",
      "Tables": [
        {
          "Id": "tbl-1",
          "TableNumber": "T1",
          "Name": "Window Seat",
          "Capacity": 4,
          "Status": "available",
          "EffectiveStatus": "available",
          "ActiveOrder": null
        },
        {
          "Id": "tbl-2",
          "TableNumber": "T2",
          "Name": "Patio Table",
          "Capacity": 2,
          "Status": "available",
          "EffectiveStatus": "occupied",
          "ActiveOrder": {
            "OrderNumber": "12",
            "Customer": {
              "UserId": 714760171,
              "Username": "builderman",
              "DisplayName": "Builderman",
              "AvatarUrl": "https://tr.rbxcdn.com/..."
            },
            "Status": "preparing",
            "ClaimStatus": "claimed"
          }
        }
      ],
      "TotalTables": 2
    }
  }
  ```
</ResponseField>

## Status Codes

* `200`: Tables returned successfully
* `400`: Invalid status filter value
* `401`: API key is required or invalid
* `403`: F\&B module is disabled or workspace access is denied


## OpenAPI

````yaml GET /fnb/list-tables
openapi: 3.0.0
info:
  title: Series API
  version: 1.0.0
  description: >-
    Series API — a free REST API by Sailboat Games, LLC that lets Roblox
    communities programmatically manage workspaces, staff, sessions, time-off
    and activity data.
  contact:
    name: Sailboat Games, LLC.
    email: admin@sailboatgames.com
servers:
  - url: https://api.series.hr
    description: Production API
security:
  - ApiKeyAuth: []
paths:
  /fnb/list-tables:
    get:
      tags:
        - Food & Beverage
      summary: List tables
      description: >-
        List all tables with their effective occupancy status based on active
        orders.
      parameters:
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - available
              - occupied
              - reserved
              - unavailable
          description: Filter by table status
      responses:
        '200':
          description: Tables list
        '400':
          description: Invalid status filter
        '401':
          description: API key is required
        '403':
          description: F&B module disabled or access denied
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Pass your API key in the `apikey` header. Alternatively, the `x-api-key`
        header is also accepted.

````