---
title: "Export billing period ledgers as CSV"
method: GET
path: "/admin/billing/exports/period-ledgers.csv"
tags: ["Billing"]
---

# Export billing period ledgers as CSV

`GET /admin/billing/exports/period-ledgers.csv`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/admin/billing/exports/period-ledgers.csv`
- Auth: API key in header `x-api-key`

Admin-only endpoint that exports bounded billing period ledger rows as raw CSV for finance evidence packs. The default window is the last 30 days by period_end. This endpoint returns text/csv directly and does not use the standard JSON envelope.

## Query parameters

- `from` string
- `to` string
- `plan` 'Free' | 'Starter' | 'Growth' | 'Pro' | 'Business' | 'Enterprise' | 'Admin'
- `status` 'open' | 'closed'
- `has_mismatch` boolean
- `limit` integer

## Headers

- `x-api-key` string, required

## Response `200`

Raw CSV

## Other responses

- `400`: Invalid query parameters
- `401`: Authentication required
- `403`: Admin plan required
- `500`: Internal server error

---

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