Learn how to create a report via the dashboard.
POST {url}/reports/
{ "name": "Successful captures", "spec": { "params": { "fields": ["id", "captured_at", "amount"], "sort": [ { "field": "created_at", "order": "asc" } ], "filters": { "status": ["capture_succeeded"] } } } }
{ "items": [ { "type": "report-execution", "id": "0848ef01-f44a-4564-abdb-52a1344bac63", "created_at": "2022-10-28T10:15:36.571232+00:00", "updated_at": "2022-10-28T10:15:36.611495+00:00", "status": "dispatched", "context": { "reference_timestamp": "2022-10-28T10:15:36.571232+00:00", "reference_timezone": "Etc/UTC" }, "report": { "type": "report", "id": "71aa8d49-5ec7-43aa-b13c-9b16fdae0f9b", "name": "Successful captures" } } ], "limit": 20, "next_cursor": null, "previous_cursor": null }
succeeded
{ "url": "https://url/to/report/file", "expires_at": "2022-10-28T10:21:33.345947+00:00" }
url
expires_at
Was this page helpful?