Message: customer.applyCommands
Back to IndexApplies a list of commands to a Customer
Body
commands | array of command An array of customer commands to be applied. If any command fail, the customer will not be updated. |
Response Type
string
Rule Hooks
Examples
Add Tag to Payment
POST https://<hantera-hostname>/resources/actors/customer/a2761b85-6c63-4aab-a9b7-05c245c1d8bfAuthorization: Bearer <YOUR TOKEN>Content-Type: application/json
[{ "type": "applyCommands", "body": { "commands": [{ "type": "addTag", "key": "blocked" } ] }}]
curl -i -X POST \ https://<hantera-hostname>/resources/actors/customer/a2761b85-6c63-4aab-a9b7-05c245c1d8bf \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "applyCommands", "body": { "commands": [{ "type": "addTag", "key": "blocked" } ] }}]'
Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/customer/a2761b85-6c63-4aab-a9b7-05c245c1d8bf" `-Method POST ` `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"}-Body '[{ "type": "applyCommands", "body": { "commands": [{ "type": "addTag", "key": "blocked" } ] }}]'