Update transaction status and trigger update rules automatically
trigger_transaction_updated triggerAuthorization header:
string (uuid)CREATED - Transaction created (open state)PROCESSING - Transaction being processed (open state)SUSPENDED - Transaction temporarily suspended (open state)SENT - Transaction sent/transmitted (closed state)EXPIRED - Transaction expired (closed state)DECLINED - Transaction declined/rejected (closed state)REFUNDED - Transaction refunded/reversed (closed state)SUCCESSFUL - Transaction completed successfully (closed state)enum - 'CREATED' | 'PROCESSING' | 'SUSPENDED' | 'SENT' | 'EXPIRED' | 'DECLINED' | 'REFUNDED' | 'SUCCESSFUL'CREATEDPROCESSINGSUSPENDEDSENTEXPIREDDECLINEDREFUNDEDSUCCESSFUL| From State | To State | Allowed? | Note |
|---|---|---|---|
| CREATED | PROCESSING | β Yes | Normal flow |
| CREATED | SUSPENDED | β Yes | Suspend for review |
| CREATED | SUCCESSFUL | β Yes | Quick approval |
| PROCESSING | SUSPENDED | β Yes | Suspend during processing |
| PROCESSING | SUCCESSFUL | β Yes | Normal completion |
| PROCESSING | DECLINED | β Yes | Reject during processing |
| SUSPENDED | PROCESSING | β Yes | Resume processing |
| SUSPENDED | SUCCESSFUL | β Yes | Approve suspended transaction |
| SUSPENDED | DECLINED | β Yes | Reject suspended transaction |
| SUCCESSFUL | PROCESSING | β No | Cannot reopen closed transaction |
| DECLINED | PROCESSING | β No | Cannot reopen closed transaction |
| EXPIRED | PROCESSING | β No | Cannot reopen closed transaction |
| REFUNDED | any | β No | Cannot change refunded transaction |
| SUCCESSFUL | DECLINED | β No | Cannot change between closed states |
trigger: 'updated' in their scopetrigger_transaction_updated mode, which executes all rules configured with the updated trigger.
Example rule scope configuration:
rulesResult.rulesExecutionSummary. Only present when rules ran. Summary of which rules matched (hit) vs did not match (no hit), executed actions, and total score.rulesResult object to ensure update rules are triggering as expected and check execution details, warnings, and metadata