Generate Email Document
post
/rest/v19/emailGenerator
This operation creates an html email document for a given Transaction. The response of the POST returns the location of the generated email in the location header with 201 response code. Using a GET on the specified location would return the content of the email output.
Request
Supported Media Types
- application/json
Root Schema : Generate Email
Type:
objectTitle:
Show Source
Generate Email-
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. -
processVarname:
string
Title:
Process VarnameThe available Commerce Process variable name -
templateName:
string
Title:
Template NameThe Email Designer template name -
transactionId:
integer
Title:
Transaction IDCommerce Transaction Id
Response
Supported Media Types
- application/json
Default Response
No content. This task does not return elements in the response body.
Examples
The following example shows how to create an email 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/emailGenerator
Request Body Sample
{
"processVarname":"oraclecpqo",
"templateName":"Generic Approval Notification",
"transactionId":5531903,
"languageCode":-1
}