Message: payment.applyCommands
Back to IndexApplies a list of commands to a Payment
Body
commands | array of command An array of order commands to be applied. If any command fail, the order will not be updated. |
Response Type
string
Rule Hooks
Examples
Add Tag to Payment
POST https://<hantera-hostname>/resources/actors/payment/43ebb15a-8e7b-43cd-b3b0-fbb4de269a8fAuthorization: Bearer <YOUR TOKEN>Content-Type: application/json
[{ "type": "applyCommands", "body": { "commands": [{ "type": "addTag", "key": "card" } ] }}]
curl -i -X POST \ https://<hantera-hostname>/resources/actors/payment/43ebb15a-8e7b-43cd-b3b0-fbb4de269a8f \ -H 'Authorization: Bearer <YOUR TOKEN>' \ -H 'Content-Type: application/json' \ -d '[{ "type": "applyCommands", "body": { "commands": [{ "type": "addTag", "key": "card" } ] }}]'
Invoke-WebRequest `-Uri "https://<hantera-hostname>/resources/actors/payment/43ebb15a-8e7b-43cd-b3b0-fbb4de269a8f" `-Method POST ` `-Headers @{Authorization="Bearer <YOUR TOKEN>"; 'Content-Type'="application/json"}-Body '[{ "type": "applyCommands", "body": { "commands": [{ "type": "addTag", "key": "card" } ] }}]'