Generate Document
post
/rest/v7/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 Cloud.
Request
Supported Media Types
- application/json
Root Schema : Generate Document
Type:
objectTitle:
Show Source
Generate Document-
languageCode(optional):
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 Cloud Administration Online Help > Language Support topic. -
outputFormat(optional):
string
Title:
Output FormatThe output format options available are as follows (separated by comma): PDF, DOCX, RTF -
processVarname(optional):
string
Title:
Process Variable NameThe Commerce Process variable name -
templateName(optional):
string
Title:
Template NameThe Document Designer template name -
transactionId(optional):
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 -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" https://sitename.oracle.com/rest/v7/documentGenerator
Request Body Sample
{
"processVarname":"oraclecpqo",
"templateName":"Tech Solutions Output",
"transactionId":5531903,
"languageCode":-1,
"outputFormat":"PDF"
}