Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Finance, Invoices & Accounting

Finance, Invoices & Accounting

Score refund requests for fraud from a webhook with approval checks and audit trail

Runs on each refund request sent to a webhook: validates it, calls an external fraud risk API, runs multi-level approvals and returns a decision with an audit trail.

What it does

## Automated Refund Investigation Engine Receives a refund request, runs fraud risk scoring, performs multi-level approval checks, and returns a final refund decision with full audit trail. ### All nodes (1-line each) 1. Webhook - Refund Request – Receives the refund investigation payload via POST. 2. Code - Validate & Score Fraud Risk – Validates the request and calculates fraud risk score + required approval levels. 3. Wait - Pre Fraud Check – Short pause before external fraud service call. 4. HTTP Request - Fraud Service Check – Calls external fraud / risk scoring API. 5. Wait - Pre Level 1 Approval – Pause before Level-1 (support / auto) approval check. 6. HTTP Request - Level 1 Approver – Notifies or checks Level-1 approver. 7. Wait - Pre Level 2 Approval – Pause before Level-2 (finance / risk) approval check. 8. HTTP Request - Level 2 Approver – Notifies or checks Level-2 approver. 9. HTTP Request - Process Refund / Reject – Executes the refund or records rejection at payment gateway. 10. Code - Build Final Decision – Aggregates fraud score + approval results into final approve/reject decision + audit trail. 11. Respond to Webhook – Returns the complete investigation report to the caller.

The steps

  1. Webhook - Refund Request
  2. Code - Validate & Score Fraud Risk
  3. Wait - Pre Fraud Check
  4. HTTP Request - Fraud Service Check
  5. Wait - Pre Level 1 Approval
  6. HTTP Request - Level 1 Approver
  7. Wait - Pre Level 2 Approval
  8. HTTP Request - Level 2 Approver
  9. HTTP Request - Process Refund / Reject
  10. Code - Build Final Decision
  11. Respond to Webhook

Similar automations