Skip to content

Message: customer.applyCommands

Back to Index

Applies a list of commands to a Customer

Body
commandsarray 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-05c245c1d8bf
Authorization: Bearer <YOUR TOKEN>
Content-Type: application/json
[{
"type": "applyCommands",
"body": {
"commands": [{
"type": "addTag",
"key": "blocked"
}
]
}
}]
Back to Index