# PCI report for a period (JSON, PDF or CSV)

> GET /reports/pci endpoint of the Proteside API: parameters, request body, responses and code samples.

URL: https://docs.proteside.com/en/docs/api/reference/reports/getPciReport

## Method and route

`GET /reports/pci`

Reuses the most recent snapshot for exactly the same period; otherwise generates an `on_demand` snapshot. `format=pdf` answers `302 Location: <signed URL, 1 h>` (or the PDF bytes when the file is not in storage yet); `format=csv` streams the chosen table. `regenerate=true` forces a new snapshot and requires `reports:generate`. Requires a plan with compliance reports or a partner agreement that includes them (`403 plan_limit`).

## Parameters

- `org_id` (query, `string`): Partners only (`orgs:manage`): act on this child organization. May also be sent as `org_id` in JSON bodies.
- `store_id` (query, `string`, required)
- `period_start` (query, `string`): Default: period_end − 7 days
- `period_end` (query, `string`): Default: now. Max range 366 days.
- `format` (query, `"json" | "pdf" | "csv"`)
- `csv_table` (query, `"scripts" | "headers" | "alerts"`)
- `locale` (query, `"pt-BR" | "en"`)
- `regenerate` (query, `boolean`)

## Responses

- `200`: Snapshot (json) or CSV
- `302`: PDF — redirect to a signed URL (valid 1 hour)
- `403`: Plan does not allow the action
- `404`: Not found in the acting organization

Full OpenAPI specification: https://app.proteside.com/api/v1/openapi.json
