GREEN, AMBER, or RED. When the flag is GREEN or AMBER, Vouch also returns the virtual bank account details the buyer should transfer funds to. If the flag is RED, the transaction should be blocked and no virtual account is provided.
Endpoint
Request
Headers
string
required
Your Vouch API key.
Path Parameters
string
required
The unique ID of the escrow agreement to assess. This is the
id returned when you created the agreement (e.g. agr_clx8f7k2z000108l4).Body Parameters
string
required
The buyer’s external ID as stored in your platform. Must match the
buyerExternalId used when creating the agreement.number
required
The amount the buyer intends to transfer, in the smallest currency unit (kobo for NGN). Should match the agreement’s
totalAmount or a partial funding amount.string
An opaque string uniquely identifying the buyer’s device. Providing this improves the accuracy of the risk score. Can be generated client-side using a fingerprinting library.
boolean
default:"false"
When set to
true, the assessment engine treats the request as if it originated from a VPN. Useful for testing your integration’s RED-flag handling in non-production environments.boolean
default:"false"
When set to
true, the assessment engine simulates an impossible-travel signal. Useful for testing your integration in non-production environments.Examples
Response
number
A numeric risk score from
0 (lowest risk) to 100 (highest risk). Scores below roughly 30 yield GREEN, above 70 yield RED, and values in between yield AMBER.string
The overall risk verdict. One of:
GREEN— transaction is low-risk; virtual account is provided.AMBER— elevated risk; virtual account is provided but you may want to apply additional checks.RED— high risk; no virtual account is returned and the transaction should be blocked.
object
The virtual bank account the buyer should transfer funds to. Only present when
flag is GREEN or AMBER.array
A list of signal identifiers that contributed to a high risk score. Only present on
AMBER and RED responses. Example values: "vpn_detected", "impossible_travel", "device_mismatch".string
A human-readable action recommendation. Only present on
RED responses, e.g. "Block this transaction.".