Skip to content

Command: customer.addActivityLog

Back to Index

Adds an activity log to a Customer

Body
messageTemplatestring

The message template. Use {placeholders} for dynamic values (see https://messagetemplates.org/)

dynamicmap of string to any value (optional)

Dynamic properties to add to the log

Examples

Add activity log to existing Customer
POST https://<hantera-hostname>/resources/actors/customer/d5559220-d7dc-4254-bdf8-625382d0794f
Authorization: Bearer <YOUR TOKEN>
Content-Type: application/json
[{
"type": "applyCommands",
"body": {
"commands": [{
"type": "addActivityLog",
"messageTemplate": "E-mail sent: {type}",
"dynamic": {
"type": "order-notification"
}
}
]
}
}]
Back to Index