---
title: "Export POS orders as CSV"
method: GET
path: "/api/v1/orders/export"
tags: ["Orders"]
---

# Export POS orders as CSV

`GET /api/v1/orders/export`

## Request

- Base URL: `https://www.gerezi.com`
- URL: `https://www.gerezi.com/api/v1/orders/export`
- Auth: HTTP bearer

Streams a CSV of POS orders matching the optional filters. The response is `text/csv` with a `Content-Disposition` attachment header — meant for accounting exports, bookkeeping reconciliation, and offline analytics. Result set is capped at 10 000 rows per call; tighten the date window to page through larger histories. Read scope: `orders:read`.

## Query parameters

- `from` string
- `to` string
- `status` string
- `include_training` 'true' | 'false'

## Response `200`

CSV stream — header row: `id,order_number,order_date,type,status,table_name,server_name,guest_name,subtotal_cents,tax_cents,total_cents,tip_cents,restaurant_id,created_at,training_mode`. Money columns are integer cents; `training_mode` is `true`/`false` (always `false` unless `include_training=true`).

## Other responses

- `401`: Missing or invalid API key
- `403`: Key lacks required scope

---

[API](https://skmtc.dev/gerezi/apis/gerezi-restaurant-api.md) · [All operations](https://skmtc.dev/gerezi/apis/gerezi-restaurant-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gerezi/apis/gerezi-restaurant-api/revisions/323b530e81cb?raw)
