Generates a quick report by report code, applying only the supplied filters.
Use this endpoint to run a report by its code (not ID) with ad-hoc filters, without saving filter state.
The report is identified from the system report group. Filters are specified by caption and value.
Returns 204 No Content if OnlySendIfData is set and the report has no data.
Request Headers
| Header | Value | Required | Description |
|---|---|---|---|
| ECI-ApiKey | string | Yes | Your API key. See Authentication. |
| Content-Type | application/json | Yes | All requests must specify JSON content type, including the request body. |
Request Body
QuickReport
| Property | Description | Type | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fileName | File name that the report file will receive | string | ||||||||||||
| filters | The filters to apply to this execution of the report. They will not be saved, and stored filters will not be honored. | QuickFilter[] | ||||||||||||
|
QuickFilter properties
|
||||||||||||||
| format | Desired format for the resulting report. Available options are PDF, Excel, Excel formatted, Excel data only, Word, and CSV. Support for each format varies by report. | string | ||||||||||||
| reportCode | Report code of the report to execute | string | ||||||||||||
Example Request Body
{ "fileName": "string", "filters": [
{ "caption": "string", "operator": "string", "value": "string"
}
], "format": "string", "reportCode": "string"
}
Responses
200
OK
The request succeeded and the response body contains the requested data.
204
No Content
The request succeeded. No content is returned in the response body.