GET /v2/cases/actions/export-case-report — Export cases as CSV
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Exports the affiliate's support cases as a text/csv file attachment. The export is unpaginated — it returns every case matching the filters (hard-capped at 10,000 rows). When neither createdFrom nor createdTo is provided, the date window defaults to the last 90 days.
Query parameters
| Parameter | Type | Description |
|---|---|---|
createdFrom | date | Only cases created on/after this date. Defaults to 90 days ago when both this and createdTo are omitted |
createdTo | date | Only cases created on/before this date. Must be on/after createdFrom. Defaults to now when both this and createdFrom are omitted |
caseTypeId | string | Filter by internal case type ID |
ticketStatus | string | Filter by ticket status |
priority | string | Filter by priority. One or more (comma-separated) of Highest, High, Medium, Low, Lowest |
reporters | string | Comma-separated Jira account IDs — only include cases whose reporter matches one of these |
sort | string | Sort field. Prefix with - for descending. Supports priority (ranked Highest → Lowest) in addition to the standard fields |
Response 200
200Returns Content-Type: text/csv; charset=utf-8 with Content-Disposition: attachment; filename="case-report.csv". The file is UTF-8 with a BOM, and cells that could be interpreted as spreadsheet formulas (starting with =, +, -, @, tab, or CR) are escaped.
CSV columns, in order:
| Column | Source |
|---|---|
| Ticket ID | ticketId |
| Start Time (UTC) | createdAt |
| First Response Time (UTC) | firstResponseTime |
| End Time (UTC) | resolvedAt |
| Priority | priority.name |
| Reporter | name(email), or Unassigned |
| Ticket Type | ticketName |
| Status | ticketStatus |
| Related Order | related order display ID |
| Creator | name(email) of the case creator |
Rate limit
Rate-limited to 5 requests per minute per user. Exceeding it returns 429 with X-RateLimit-* / Retry-After headers.
Errors
| Status | Code | Description |
|---|---|---|
| 422 | INVALID_FIELD | Export would exceed 10,000 rows — narrow the date range or add filters. Also returned for invalid dates, createdFrom after createdTo, or an invalid sort value |
Required role
affiliate_super_admin, affiliate_admin, or affiliate_agent
