---
title: "Get all orders"
method: GET
path: "/orders"
tags: ["orders"]
---

# Get all orders

`GET /orders`

Returns a list of all orders in the system

## Query parameters

- `userId` string
- `status` string
- `last` string

## Response `200`

List of orders

- OrderResponse[]
  - `id` string, required
  - `createdAt` string, date-time, required
  - `items` OrderItem[], required
    - `pizzaId` string, required
    - `quantity` integer, required — Must be a positive integer (greater than 0). Orders with zero or negative quantity will be rejected with a 400 error.
    - `extraToppingIds` string[] — Optional list of extra topping IDs to add to the pizza
  - `estimatedCompletionAt` string, date-time, required
  - `completedAt` string, date-time — ISO date string for when the order was completed (undefined until completed)
  - `totalPrice` number, float, required
  - `status` 'pending' | 'in-preparation' | 'ready' | 'completed' | 'cancelled', required — - pending: Order has been created but not yet started - in-preparation: Order is being prepared - ready: Order is ready for pickup - completed: Order has been picked up - cancelled: Order has been cancelled

---

[API](https://skmtc.dev/azure/apis/pizza-api.md) · [All operations](https://skmtc.dev/azure/apis/pizza-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/pizza-api/revisions/b9618c89d438/schema)
