Quotes Document

Knowledge Center > API > REST API > REST API Reference > Quotes Document

Quotes Document

The document call generates a quote document and returns the generated document URL. You can directly access the generated quote file through the returned URL.

The document call should be only used from Zuora Quotes. 


  • Production: POST https://rest.zuora.com/v1/quotes/document
  • API Sandbox: POST https://rest.apisandbox.zuora.com/v1/quotes/document

Request Body Parameters

documentType Required Type of the document to generate: PDF or DOC
quoteId Required Id of the quote
serverUrl Required SOAP URL used to login to Salesforce to get data. You can get the value with the following code in a Visualforce page:


sessionId Required Salesforce session id used to log in to Salesforce to get data. You can get the value with the following code in a Visualforce page:


templateId Required Id of the quote template in Zuora
useSFDCLocale Optional If using Salesforce org locale, set this to a value that is not null.
locale Optional Salesforce locale value to use
apiuser Optional If not using Salesforce locale, this API Zuora user will be used to retrieve the locale from Zuora.
zquotesMajorVersion Optional

The major version number of Zuora Quotes you are generating the quote document in.

You can use a quote template with hierarchy sizes bigger than 3 if this is set to 7 or higher.

zquotesMinorVersion Optional The minor version number of Zuora Quotes you are generating the quote document in.



success Contains true if successful, otherwise false
file URL of the generated quote document if the file was successfully generated

Error message if the file was not generated. It includes code and message. For example:

"reasons": [
            "code": 57030000,
            "message": "Invalid login, password or token; or user locked out."

processId When the API call is not successful, this processId is used to indicate the process ran in Zuora.

File Size Limitation 

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.


CURL request:

curl -i -k -H "apiAccessKeyId:$USER_NAME" -H "apiSecretAccessKey:$PASSWORD" -H "Content-Type:application/json" -H "Accept:application/json" -X POST https://api.zuora.com/rest/v1/quotes/document -d '
   "zquotesMajorVersion": "7",
   "zquotesMinorVersion": "0",

JSON response:

   "success": true,
Last modified



(not set)