Command: order.addActivityLog
Back to IndexAdds an activity log to an Order
Body
messageTemplate | string The message template. Use {placeholders} for dynamic values (see https://messagetemplates.org/) |
dynamic | map of string to any value (optional) Dynamic properties to add to the log |
Examples
Add activity log to existing order
POST https://<hantera-hostname>/resources/actors/order/ec806cf5-d976-49de-b390-03b303da8117Authorization: Bearer <YOUR TOKEN>Content-Type: application/json
[{ "type": "applyCommands", "body": { "commands": [{ "type": "addActivityLog", "messageTemplate": "Delivery {deliveryNumber} cancelled due to missing stock", "dynamic": { "deliveryNumber": "OD10001" } } ] }}]
curl -i -X POST \ https://<hantera-hostname>/resources/actors/order/ec806cf5-d976-49de-b390-03b303da8117 \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "applyCommands", "body": { "commands": [{ "type": "addActivityLog", "messageTemplate": "Delivery {deliveryNumber} cancelled due to missing stock", "dynamic": { "deliveryNumber": "OD10001" } } ] }}]'
Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/order/ec806cf5-d976-49de-b390-03b303da8117" `-Method POST ` `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"}-Body '[{ "type": "applyCommands", "body": { "commands": [{ "type": "addActivityLog", "messageTemplate": "Delivery {deliveryNumber} cancelled due to missing stock", "dynamic": { "deliveryNumber": "OD10001" } } ] }}]'