Sends a previously prepared message as a transactional message including transaction details such as purchase confirmation.
User can iterate through the list of items using <%ForEach%> expression to access the individual item from provided eventDetails.
User can specify any number of attributes aka TransactionalItemDetails and access them using expression language in CMS.
Since the user is in control of JSON, it is strongly recommended to use the same structure for each itemDetails to avoid inconsistency inside <%ForEach%>
<%ForEach%> syntax for displaying transactional details in transactional message (use ${ transaction _details} placeholder inside ForEach)
<%ForEach var="product" items="${transaction_details}" max="10"%>
|
|
Successful response
HTTP 204 |
Var value refers to a single object inside the list of itemDetails, the name can by anything, in this case, it’s the product.
Items value refers to eventDetails which is a placeholder for the list of items we want to show.Available from |
---|
v12 |
POST [REST URL]/message/sendTransactionalWithEventDetails
Parameter | Type | Description |
---|---|---|
recipientId | Long | ID of the user |
messageId | Long | ID of the message or prepared message |
externalTransactionFormula | String | External transactional identifier |