Request a report, with the options of the Create report form of the Report extracts page. The report is generated in the background: the response returns it with the status waiting or queued. Read it with GET /reports/:reportId until its status is success, then download it from its download_url. With send_email, the account's admin user is also emailed when it is ready.
Parameters by report type. Each type takes the filters below, which are the ones its report applies. A filter the type doesn't take is refused with error code 4030, and so is a date_range_type it doesn't offer:
| Type | Filters | | --- | --- | | tickets | channel_ids, brand_ids, ticket_types, ticket_statuses, user_ids, tag_ids, languages, csat_received | | presales, channels, brands, tags, languages | channel_ids, brand_ids, ticket_types, ticket_statuses, user_ids, tag_ids, languages | | handsfree | channel_ids, brand_ids | | chats | channel_ids, brand_ids, user_ids, tag_ids, languages | | sla_breaches | channel_ids, brand_ids, ticket_types, user_ids | | ticket_custom_fields | channel_ids, brand_ids, ticket_types, user_ids, custom_field_ids (ticket fields) | | order_custom_fields | channel_ids, brand_ids, custom_field_ids (order fields), fulfillment_types, order_statuses | | user_log | channel_ids, brand_ids, user_ids (one user), tag_ids | | feedback | channel_ids, brand_ids, feedback_request_status | | agent_sessions | agent_ids | | billable_automations | automation_types, resolved | | agents, chatbot_qa, ebay_cases, templates | none |
date_range_type is created_at for every type. closed_at (tickets resolved in the period) is also offered for tickets, presales, channels, brands, tags, languages and user_log, and shipped_at and cancelled_at for order_custom_fields.
Types and plans. presales, handsfree, chatbot_qa, billable_automations, ebay_cases and feedback need the matching feature on the account; without it the type is refused with 4004.
Ids. A channel, brand, user, tag or custom field id that isn't the account's is refused with 4002, and so is a custom field of the other kind (an order field for ticket_custom_fields). The user log takes one user: more are refused with 4025.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||