Skip to content

List recent report files

Request

Returns up to number_of_records Available report files, sorted by creation time with the newest first.

Purpose: Pick up recently produced files without tracking dates or submission IDs.

When to use: When you want the latest completed files without tracking dates or submission IDs, for example in a frequent polling job.

Notes:

  • Keep number_of_records small (for example 10 to 50) to keep responses fast.

Request definition

ParameterInTypeRequiredDefaultDescription
number_of_recordspathintegerYesMaximum number of files to return.
Zuora-Track-IdheaderstringNoOptional correlation identifier (up to 64 characters) that you choose. The Zuora One gateway records it; quote it to Zuora Support when you report a problem.
AuthorizationheaderstringYesBearer <access_token> (Zuora OneID OAuth).

Request body: none.

Response definition

HTTP statusContent typeResponse schema
200application/jsonReportFileListResponse
400application/jsonRiaError
401application/jsonGatewayError or RiaError
403application/jsonRiaError
404application/jsonRiaError
429application/jsonGatewayError
500application/jsonRiaError
502application/jsonRiaError

ReportFileListResponse: Success envelope for the report-file operations.

FieldTypeRequiredDescription
StatusstringNoSuccess when the call completed.
MessagestringNoAdditional message. Empty on success.
Resultarray of ReportFileNoMatching Available report files. An empty array means nothing matched.
Result[].idintegerNoSubmission identifier of the run that produced the file. Use it with GET /reports/{report_id} and the v2 signed-URL operation.
Result[].file_namestringNoName of the generated file. Use it with GET /reports/download/{filename}.
Result[].rep_namestringNoName of the report definition that produced the file.
Result[].categorystringNoReport category.
Result[].rep_descstringNoReport description.
Result[].layout_namestringNoName of the layout that was run.
Result[].report_datestringNoDate and time the run was created, formatted DD-MM-YYYY HH24:MI:SS.
Result[].statusstringNoRun status. These operations only return Available runs, so the value is A (or Available on some tenant database platforms). Allowed: A, Available.
Result[].org_idstringNoOrganization security value of the run. Returned on some tenant database platforms only.

Error response schemas (GatewayError, ServiceError, SpringError, SimpleError, MissingFiltersError, RunStatusConflict, RiaError, SignedUrlError) are defined once under Error response schemas in the API overview and in components/schemas.

Response codes: 200, 400, 401, 403, 404, 429, 500, 502. Each response with a body includes worked examples; responses without a body say so.

Security
OneIdOAuth
Path
number_of_recordsintegerrequired

Maximum number of files to return.

Example:10
Headers
Zuora-Track-Idstring

Optional correlation identifier (up to 64 characters) that you choose. The Zuora One gateway records it; quote it to Zuora Support when you report a problem.

Example:close-run-2026-09-001
cURL
curl -i -X GET \
  https://one.zuora.com/api/integration/v1/reports/recent-n/10 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Zuora-Track-Id: close-run-2026-09-001'

Responses

Success. Recent report files.

Bodyapplication/json
Statusstring

Success when the call completed.

Example:"Success"
Messagestring

Additional message. Empty on success.

Example:""
ResultArray of objects(ReportFile)

Matching Available report files. An empty array means nothing matched.

Response
{ "Status": "Success", "Message": "", "Result": [ { … }, { … } ] }