PCI report for a period (JSON, PDF or CSV)
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. Non-partner organizations need a plan with compliance reports (403 plan_limit).
bearerAuthAuthorizationBearer <token>API token created in Settings → API. Scopes are attached to the token; each operation lists its required scope in x-scope.
org_id?stringPartners only (orgs:manage): act on this child organization. May also be sent as org_id in JSON bodies.
uuidstore_id*stringuuidperiod_start?stringDefault: period_end − 7 days
date-timeperiod_end?stringDefault: now. Max range 366 days.
date-timeformat?string"json""json""pdf""csv"csv_table?string"scripts""scripts""headers""alerts"locale?string"pt-BR""pt-BR""en"regenerate?booleanfalseSnapshot (json) or CSV
- response
id?stringuuidstore_id?stringuuidkind?string"weekly""on_demand""monthly"period_start?stringdate-timeperiod_end?stringdate-timelocale?string"pt-BR""en"schema_version?integersha256?string|nullgenerated_by?stringhas_pdf?booleancsv_tables?array<string>created_at?stringdate-timegenerated?booleantrue when this request generated the snapshot
data?Report data schema_version 2: meta, scope, summary_643, summary_1161, scripts[], headers[], alerts[], policies[], periodic_checks[], data_access[]
curl -X GET "https://example.com/reports/pci?store_id=497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "id": "f1a2b3c4-9999-4000-8111-222233334444", "store_id": "0c1d2e3f-1111-4222-8333-444455556666", "kind": "on_demand", "period_start": "2026-09-20T10:00:00.000Z", "period_end": "2026-09-27T10:00:00.000Z", "locale": "pt-BR", "schema_version": 2, "sha256": "9c1e…", "generated_by": "api:ps_live_AbCdEfGhIjKlMnOpQrStUvWx", "has_pdf": true, "csv_tables": [ "scripts", "headers", "alerts" ], "created_at": "2026-09-27T10:12:00.000Z", "generated": true, "data": { "meta": { "report_id": "f1a2b3c4-…", "store": "Loja do João", "domain": "lojadojoao.com.br", "schema_version": 2 }, "summary_643": { "total": 21, "authorized": 18, "blocked": 1, "needs_review": 2, "expired": 0 }, "summary_1161": { "events": 91234, "alerts_total": 12, "alerts_open": 1 }, "scripts": [], "headers": [], "alerts": [], "policies": [], "periodic_checks": [], "data_access": [] }}