> ## 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.

# Claim Order

> Assign a staff member to an F&B order

Claim an order for a staff member. The staff member becomes responsible for preparing and serving the order. An order can only be claimed once.

## Request

```bash theme={null}
curl -X POST https://api.series.hr/fnb/claim-order/12 \
  -H "apikey: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "StaffUserId": "714760171"
  }'
```

## Path Parameters

<ParamField path="orderNumber" type="string" required>
  The order number to claim.
</ParamField>

## Body

<ParamField body="StaffUserId" type="string" required>
  Roblox user ID or username of the staff member claiming the order.
</ParamField>

## Response

<ResponseField status={200} name="200">
  ```json theme={null}
  {
    "success": true,
    "data": {
      "WorkspaceId": "a7d5339a-5531-4336-99c6-6f3249c9ac20",
      "OrderNumber": "12",
      "Action": "claim",
      "Order": {
        "Id": "1717027200000",
        "Customer": {
          "UserId": 714760171,
          "Username": "builderman",
          "DisplayName": "Builderman",
          "AvatarUrl": "https://tr.rbxcdn.com/..."
        },
        "OrderType": "dine-in",
        "TableNumber": "T1",
        "OrderNumber": "12",
        "Items": [],
        "Status": "pending",
        "ClaimStatus": "claimed",
        "ClaimedBy": {
          "UserId": 1,
          "Username": "Roblox",
          "DisplayName": "Roblox",
          "AvatarUrl": "https://tr.rbxcdn.com/...",
          "ClaimedAt": "2026-04-05T12:00:00.000Z"
        },
        "Total": 50,
        "CreatedAt": "2026-04-05T11:30:00.000Z",
        "CreatedBy": "714760171"
      }
    }
  }
  ```
</ResponseField>

## Status Codes

* `200`: Order claimed successfully
* `400`: Order is already claimed, or order is served/cancelled
* `401`: API key is required or invalid
* `403`: F\&B module is disabled or workspace access is denied
* `404`: Order not found


## OpenAPI

````yaml POST /fnb/claim-order/{orderNumber}
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/claim-order/{orderNumber}:
    post:
      tags:
        - Food & Beverage
      summary: Claim an order
      description: >-
        Claim an order for a staff member. The staff member becomes responsible
        for the order.
      parameters:
        - name: orderNumber
          in: path
          required: true
          schema:
            type: string
          description: The order number to claim
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - StaffUserId
              properties:
                StaffUserId:
                  type: string
                  description: Roblox user ID or username of the staff member
      responses:
        '200':
          description: Order claimed
        '400':
          description: Order already claimed or invalid state
        '401':
          description: API key is required
        '403':
          description: F&B module disabled or access denied
        '404':
          description: Order not found
      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.

````