Generate Document
post
                    /rest/v19/documentGenerator
This operation creates a Document Designer document. When executed correctly, the external system will receive the URL of the document in the Location header of the REST response from CPQ. 
                
                Request
Supported Media Types
                - application/json
Root Schema : Generate Document
    
      Type: 
      
    
    
    
    objectTitle: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Show Source
        Generate Document- 
            languageCode: 
            integer
            Title:Language CodeThe language integer value to specify the template language. To identify integer values, refer to the Supported Languages section in the CPQ Administration Online Help > Language Support topic.
- 
            outputFormat: 
            string
            Title:Output FormatThe output format options available are as follows (separated by comma): PDF, DOCX, RTF
- 
            processVarname: 
            string
            Title:Process Variable NameThe Commerce Process variable name
- 
            templateName: 
            string
            Title:Template NameThe Document Designer template name
- 
            transactionId: 
            integer
            Title:Transaction IDCommerce Transaction Id. However, this property will not have any data in the response.
Response
Default Response
No content. This task does not return elements in the response body.
                
                
                Examples
The following example shows how to create a document generator by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" https://sitename.oracle.com/rest/v19/documentGenerator
Request Body Sample
{
"processVarname":"oraclecpqo",
"templateName":"Tech Solutions Output",
"transactionId":5531903,
"languageCode":-1,
"outputFormat":"PDF"
}