Test Compliance Risk Checks
Exercising risk screening is hard to arrange on demand. For inbound payments you would normally need access to a wallet that already carries a risk score. In both directions it is not obvious which addresses correspond to which risk categories. To let you build and test your compliance handling against every outcome, Tesser provides two testing mechanisms in sandbox:
- Outbound: send a payout to one of the public test destination addresses below. Each address corresponds to a different risk severity.
- Inbound: call
POST /v1/payments/simulate-inboundand choose themocked_risk_statusyou want the screening verdict forced to, or a screening scenario whose findings your Risk Profile then decides.
With both mechanisms you get the same payment.risk_updated webhook, risk_status transitions, and manual-review flow as in production. See Compliance and Risk Management for how screening works and the Funds Movement Lifecycle and Data Model for the full risk_status taxonomy.
Sandbox only
These are testing tools for your sandbox integration. POST /v1/payments/simulate-inbound is blocked in production (returns payments-3053). The outbound test addresses are public on-chain addresses that Tesser does not control. Use them as payout beneficiaries in sandbox and never send meaningful value to them.
Test outbound risk checks
Outbound screening targets the beneficiary wallet, the on-chain address behind desired.to.account_id. To trigger a given outcome, create a payout whose destination account's crypto_wallet_address is one of the test addresses. A payout does not execute until risk is approved (see Payout risk review).
Outbound test destination addresses
These are EVM addresses and can be used on Ethereum Sepolia, Base Sepolia, and Polygon Amoy. In sandbox, use one as the beneficiary of a stablecoin payout.
Severity → risk_status | Destination address |
|---|---|
Medium → automatically_approved | 0xd3f72b3e91c8124dfc1b4273e93594bb00c9be6f |
High → awaiting_decision | 0x0a5b2bf3ccfb44c1d22f07eed9553ecba752d4ad |
Severe → automatically_rejected | 0xac4cc4b68ea24bbfaac8fd127b67ed445accce22 |
Steps
-
Create a beneficiary account at a test address. Create a counterparty and a stablecoin account whose
crypto_wallet_addressis the test address for the severity you want to exercise. Payouts to this account screen to the corresponding outcome. -
Create a payout to that account. Follow Create a Payout and set
desired.to.account_idto the beneficiary account. A minimal request:Code -
Observe the verdict. Once
desired.to.account_idis set, Tesser screens the beneficiary and emits apayment.risk_updatedwebhook carrying the mappedrisk_status:Code
Test inbound risk checks
POST /v1/payments/simulate-inbound sends a real, tiny test-USDC transfer from a Tesser-controlled faucet wallet into one of your managed wallets. It then replaces the screening result in one of two ways. With mocked_risk_status, the verdict is forced to the status you choose and carries risk indicators that match it. With mocked_screening_scenario, screening receives a fixed set of findings and your Risk Profile decides the verdict, as it would in production (see Screening scenarios). The inbound itself is genuine. It is detected on-chain through the normal path, and balances, lifecycle, and webhooks all behave exactly as they would for a real inbound. Only the screening input is fabricated, so risk_status_reasons is populated the same way as in production. See Receive an Inbound Payment to a Wallet for the flow this exercises.
Prerequisites
- A managed
stablecoin_ethereumwallet with an on-chain address to receive the inbound (to_account). Provision one via Create an Account. An account that exists but is not an eligible managed wallet returnspayments-3055.
Request
| Field | Required | Description |
|---|---|---|
to_account | Yes | Managed account ID that should receive the simulated inbound. |
mocked_risk_status | One of the two | The risk_status the screening verdict is forced to: automatically_approved, awaiting_decision, or automatically_rejected. |
mocked_screening_scenario | One of the two | A named screening scenario: vasp_findings_near_threshold. Its risk_status is decided by your Risk Profile. |
network | No | EVM testnet to send on: BASE_SEPOLIA (default), ETHEREUM_SEPOLIA, POLYGON_AMOY, or TEMPO_MODERATO. Any other network returns payments-3054. |
Send exactly one of mocked_risk_status and mocked_screening_scenario. A request with both, or with neither, returns 400. The transfer is a fixed 1 USDC per call. The API returns the actual value.
Code
The mocked_risk_status you send is exactly the risk_status the resulting inbound screens to. If you choose awaiting_decision, record a decision afterward (see Review a payment awaiting a decision).
Response
Once the inbound payment is detected and screened, the endpoint returns the full payment with risk_status set to your mocked_risk_status:
Code
If the on-chain transfer is broadcast but not yet detected and screened within the request's wait budget, the endpoint returns 202 Accepted instead, with the transaction hash and (once known) the payment_id. Poll GET /v1/payments/{paymentId} for the screened payment:
Code
Inbound risk is advisory and does not gate the credit (see Spending the Inbound Funds).
Screening scenarios
mocked_risk_status decides the outcome for you. A screening scenario does not. It replaces only the screening provider's response with a fixed one shaped like a real production screen, then runs that response through the same screening as any other inbound: materiality thresholds, severity, participants, and risk_status_reasons. The risk_status you get is the one your Risk Profile decides for those findings. Use a scenario to see how a specific case looks in the API and on the payment page.
Code
The endpoint waits until screening has set any risk_status and returns the payment, or returns 202 Accepted as described above.
| Scenario | What the screen reports | With the default Risk Profile |
|---|---|---|
vasp_findings_near_threshold | The sending wallet is hosted by an exchange, "Simulated Exchange (near threshold)". Two findings sit just over the VASP-hosted threshold: COUNTERPARTY exposure to Gambling Service (High) at 0.183527% of volume, and INDIRECT exposure to Sports Betting (Medium) at 0.102816%. | awaiting_decision. Both findings are in risk_status_reasons with a volume_usd_percent_threshold of 0.1. Gambling Service is DECISIVE, Sports Betting is NON_DECISIVE. The payment page shows every percent on the payment with the same number of decimals, enough for each observed value to differ from its threshold: 0.184% vs 0.100% and 0.103% vs 0.100%. "Simulated Exchange (near threshold)" is the Originator VASP. |
To see a sender identified only by its VASP, use mocked_risk_status automatically_approved or awaiting_decision: those fixtures attribute the sending wallet to a VASP, so the payment page shows the Originator VASP block without an Originator block.
The thresholds are yours
Thresholds come from your Risk Profile, not from the scenario. The values above assume the Tesser default inbound VASP-hosted percent thresholds of 0.1% for ownership, counterparty and indirect exposure. With other thresholds the same findings can be below the bar, drop out of risk_status_reasons, and change the risk_status.
To see findings measured against a zero threshold, set your inbound VASP-hosted counterparty and indirect percent thresholds to 0 first (contact us to change your sandbox Risk Profile), then run vasp_findings_near_threshold. A zero threshold means any volume counts. Both findings still surface, and the page shows 0.18% vs 0.00% and 0.10% vs 0.00%.
Review a payment awaiting a decision
Whenever a payment lands in awaiting_decision, record a decision through the risk review decision API or in the Tesser dashboard:
Code
After the decision is recorded, risk_reviewed_by and risk_reviewed_at are populated. A payment.risk_updated webhook fires with risk_status transitioned to manually_approved (when is_approved is true) or manually_rejected (when false).