Send Email for Transaction
post
/rest/v7/commerceDocuments{ProcessVarName}{MainDocVarName}/{_id}/actions/_send_email
This action collects email form data, generates the attachment, pushes the email to SMTP servers, and returns confirmation on email sent time. The email recipient receives an email with the comments in the email body and an attachment that contains the transaction information.
Request
Path Parameters
-
MainDocVarName: string
The variable name of the main document, the first letter must be capitalized
-
ProcessVarName: string
The variable name of the Commerce process, the first letter must be capitalized
-
_id: integer
Current unique user-side ID. This is the internal identifier for a transaction within a CPQ site.
Root Schema : commerceTransaction-_send_emailRequest
Type:
Show Source
object-
actionVariableName(optional):
string
Title:
Action Variable NameThe email action variable name used to look up email action configuration -
attachmentIds(optional):
array Attachments to be merged
Title:
Attachments to be mergedList of attachments to be merged for an email action -
attachmentIdsForMerge(optional):
array Attachments to be merged
Title:
Attachments to be mergedList of attachments to be merged for an email or print action -
bccEmail(optional):
string
Title:
Bcc EmailThe bcc email address(es) -
cacheInstanceId(optional):
string
Title:
Cache Instance IdThe unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db. -
ccEmail(optional):
string
Title:
Cc EmailThe cc email address(es) -
comments(optional):
string
Title:
CommentsThe comments to be sent in the email body -
fromName(optional):
string
Title:
From NameThe sender's name -
subject(optional):
string
Title:
SubjectThe email subject line -
toEmail(optional):
string
Title:
To EmailThe recipient's email address(es) -
toName(optional):
string
Title:
To NameThe recipient's name
Nested Schema : Attachments to be merged
Type:
arrayTitle:
Attachments to be mergedList of attachments to be merged for an email action
Show Source
-
Array of:
object Attachment properties
Title:
Attachment propertiesCaptures the id and name of the attachment
Nested Schema : Attachments to be merged
Type:
arrayTitle:
Attachments to be mergedList of attachments to be merged for an email or print action
Show Source
-
Array of:
object Attachment properties
Title:
Attachment propertiesCaptures the id and name of the attachment
Nested Schema : Attachment properties
Type:
objectTitle:
Attachment propertiesCaptures the id and name of the attachment
Show Source
-
id(optional):
integer
ID for the attachment
-
name(optional):
string
Name for the attachment
Response
Default Response
Root Schema : commerceTransaction-_send_emailResponse
Type:
Show Source
object-
cacheInstanceId(optional):
string
Title:
Cache Instance IdThe unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db. -
message(optional):
string
Title:
MessageThe summary message for sending email