Skip to content

Command: payment.addActivityLog

Back to Index

Adds an activity log to a Payment

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 Payment
POST https://<hantera-hostname>/resources/actors/payment/43ebb15a-8e7b-43cd-b3b0-fbb4de269a8f
Authorization: Bearer <YOUR TOKEN>
Content-Type: application/json
[{
"type": "applyCommands",
"body": {
"commands": [{
"type": "addActivityLog",
"messageTemplate": "Charge failed: {reason}",
"dynamic": {
"reason": "Authorization expired"
}
}
]
}
}]
Back to Index