vouch.fraud.assess() before any payment is accepted, before an escrow is funded, or whenever you detect unusual activity on an account. Vouch analyses a combination of device signals, geolocation data, transaction behaviour, and identity status to return a risk score and a clear recommended action.
1
Assess a Transaction
Call
vouch.fraud.assess() with the platform user ID and the amount being transacted. Link the assessment to an escrow agreement by passing agreementId when one exists.2
Handle the Response
Branch your logic on
assessment.flag. Each flag maps to a distinct risk level and requires a different response.3
Interpret Triggered Signals
assessment.triggeredSignals is an array of string keys that explain why the score is elevated. Use these to make more granular decisions and to surface useful guidance to users.4
Implement Step-Up Verification
When the flag is
AMBER, the safest response is to pause the transaction and ask the user to re-verify their identity. If they pass, you can reassess the transaction and allow it to proceed.Best Practices
Combining identity verification and fraud assessment gives you layered protection. Run KYC once during onboarding (see the KYC flow guide), then callvouch.fraud.assess() on every subsequent payment. This way, the identity_not_verified signal never appears for legitimate users and the overall score stays low.