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
  • The variable name of the main document, the first letter must be capitalized
  • The variable name of the Commerce process, the first letter must be capitalized
  • Current unique user-side ID. This is the internal identifier for a transaction within a CPQ site.
Body ()
Root Schema : commerceTransaction-_send_emailRequest
Type: object
Show Source
Nested Schema : Attachments to be merged
Type: array
Title: Attachments to be merged
List of attachments to be merged for an email action
Show Source
Nested Schema : Attachments to be merged
Type: array
Title: Attachments to be merged
List of attachments to be merged for an email or print action
Show Source
Nested Schema : Attachment properties
Type: object
Title: Attachment properties
Captures the id and name of the attachment
Show Source
Back to Top

Response

Default Response

Body ()
Root Schema : commerceTransaction-_send_emailResponse
Type: object
Show Source
  • Title: Cache Instance Id
    The 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.
  • Title: Message
    The summary message for sending email
Back to Top