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

# Change Order Status

> Update the status of an F&B order

Change the status of an existing order. Valid transitions move an order through the workflow: `pending` → `preparing` → `ready` → `served`. Served or cancelled orders can only be reverted to `pending`.

## Request

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

## Path Parameters

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

## Body

<ParamField body="Status" type="string" required>
  The new order status: `pending`, `preparing`, `ready`, `served`, or `cancelled`.
</ParamField>

## Response

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

## Status Codes

* `200`: Order status updated successfully
* `400`: Invalid status value, or invalid state transition
* `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/change-order-status/{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/change-order-status/{orderNumber}:
    post:
      tags:
        - Food & Beverage
      summary: Change order status
      description: >-
        Change the status of an order. Valid statuses: pending, preparing,
        ready, served, cancelled.
      parameters:
        - name: orderNumber
          in: path
          required: true
          schema:
            type: string
          description: The order number to update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - Status
              properties:
                Status:
                  type: string
                  enum:
                    - pending
                    - preparing
                    - ready
                    - served
                    - cancelled
                  description: The new order status
      responses:
        '200':
          description: Order status updated
        '400':
          description: Invalid status or order 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.

````