Get Reports by Label
A Reporting API that returns all reports with a particular label
Contact Zuora Global Support to enable this feature in your tenant. This feature is currently in development and is subject to change without advance notice.
The Get Reports by Label Reporting API returns all reports with a particular label, or if the labelId is not specified then all the reports in the My Reports folder are returned according to the user making the API request.
You can get a list of all labels and associated labelId values with the List Labels call or you can call Get Shared Labels to return all shared folders (folders and labels are synonymous). The labelId value is returned as the id field in the JSON response. The Create a New Label call also responds with the new label id after successful invocation.
Optional query parameters enable pagination and sorting of results by name or by date the report was last updated. More information on their use is shown in the examples and the Request Parameters description.
Request
Request parameters
Examples
GET My Reports Request
To get reports in the My Reports folder, remove reportlabels/labelId from the request.
GET https://zconnectsandbox.zuora.com/api/rest/v1/reports
HTTPS Request
This request gets all reports that have a labelId with the value: 0000000050f401150150f52e9f080010 .
GET https://zconnectsandbox.zuora.com/api/rest/v1/reports/reportlabels/0000000050f401150150f52e9f080010/report-details
HTTPS Request with Paging and Sorting
This request gets all reports that have a labelId with the value: 000000005087685a01508baa4d9701f5 .
The request query path parameters limit the display to the first ten reports according to an alphabetical sort order by name.
GET https://zconnectsandbox.zuora.com/api/rest/v1/reports/reportlabels/000000005087685a01508baa4d9701f5/report-details?paging={"pageNo": 0, "pageSize": 10}&orderBy=[{"field": "name", "ascend": "true"}]
JSON Response
— Nine more report results omitted for brevity.