This reference describes how to retrieve files through the REST API by specifying the file ID. You can retrieve accounting period reports, such as the Revenue Detail report, as well as other files such as invoice PDFs.
The Zuora ID of the file you want to retrieve.
The maximum export file size is 2047MB. If you have large data requests that go over this limit, you will get the following 403 HTTP response code from Zuora:
Submit a request at Zuora Global Support if you require additional assistance.
We can work with you to determine if large file optimization is an option for you.
The following is an example cURL request that retrieves an invoice PDF.
curl -i -k -H "apiAccessKeyId:$USER_NAME" -H "apiSecretAccessKey:$PASSWORD" -H "Accept:application/pdf" -X GET https://apisandbox-api.zuora.com/rest/v1/files/2c92c08c55534cf00155581fb474314d -o /Users/jsmith/Downloads/invoiceFile1.pdf
The invoice PDF is downloaded to
/Users/jsmith/Downloads and named