# lomi. Radar
Source: https://docs.lomi.africa/build/money/radar

Screen incoming card and mobile-money charges with risk assessments, webhooks, and a small fee on the factors that fire.

***

title: lomi. Radar
description: Screen incoming card and mobile-money charges with risk assessments, webhooks, and a small fee on the factors that fire.
-------------------------------------------------------------------------------------------------------------------------------------

import { Callout } from '@/components/docs/docs-callout';

**lomi. Radar** evaluates **incoming** charges (card, MTN, Wave) before they complete. Every charge is recorded as a risk assessment. When Radar is on for the organization, the transaction shows a **Normal**, **Risky**, or **Blocked** label. It is separate from [Disputes](/build/money/disputes) (card chargebacks after the fact) and from platform payout controls described in [Payouts](/build/money/payouts).

<Callout type="info">
  Every charge is assessed in the background. Enforcement, the transaction risk label, webhooks, and factor fees start when the organization turns Radar on. Platform rules (including unverified accounts taking USD or EUR cards) cannot be turned off while Radar is on.
</Callout>

## Mode

```bash
curl -X PATCH "https://api.lomi.africa/organizations/radar-settings" \
  -H "X-API-KEY: $LOMI_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": true, "mode": "block" }'
```

| Field                      | Values                             | Meaning                                            |
| -------------------------- | ---------------------------------- | -------------------------------------------------- |
| `enabled`                  | `true` / `false` (default `false`) | Turn on enforcement, labels, and factor fees       |
| `mode`                     | `monitor`                          | Mark risky charges but allow them                  |
| `mode`                     | `block`                            | Reject charges that trigger block rules            |
| `stripe_radar_passthrough` | `true` (default)                   | Merge card-network risk signals after card capture |

Dashboard Settings → Radar shows the same on/off and mode controls, plus the rules in effect. Risky and blocked charges also create an in-app notification when Radar is on.

## Block a customer

Writes their phone, email, and saved cards onto the organization blocklist. Matching charges are refused while Radar is on. Unblock removes those identifiers.

Dashboard: customer sheet, or **This was fraud** on a flagged transaction (that also blocks them).

```bash
curl -X POST "https://api.lomi.africa/customers/$CUSTOMER_ID/block" \
  -H "X-API-KEY: $LOMI_SECRET_KEY"

curl -X POST "https://api.lomi.africa/customers/$CUSTOMER_ID/unblock" \
  -H "X-API-KEY: $LOMI_SECRET_KEY"
```

MCP: `lomi_customers` with `action=block` or `action=unblock`.

## Built-in rules

| Rule                               | Rails           | Default action                                       |
| ---------------------------------- | --------------- | ---------------------------------------------------- |
| `high_value_charge`                | card, MTN, Wave | Flag ≥ 500,000 XOF equivalent                        |
| `velocity_charges_1h`              | all             | Block > 20 charges / customer / hour                 |
| `repeat_phone_24h`                 | MTN, Wave       | Flag same phone across customers                     |
| `card_country_mismatch`            | card            | Flag billing country outside WAEMU                   |
| `unverified_card_foreign_currency` | card            | Flag USD/EUR cards on unverified accounts (platform) |

## List risk assessments

```bash
curl "https://api.lomi.africa/risk-assessments?decision=flag&page=1&pageSize=50" \
  -H "X-API-KEY: $LOMI_SECRET_KEY"
```

Optional filters: `decision` (`allow`, `flag`, `block`), `rail` (`card`, `mtn`, `wave`), `startDate`, `endDate`. Assessments are returned only while Radar is on for the organization.

Example row:

```json
{
  "assessment_id": "…",
  "transaction_id": "…",
  "rail": "mtn",
  "decision": "flag",
  "risk_score": 45,
  "signals": [{ "rule": "repeat_phone_24h", "action": "flag", "detail": "…" }],
  "amount": 10000,
  "currency_code": "XOF"
}
```

## Webhooks

Subscribe to:

* `PAYMENT_RISK_FLAGGED`, charge allowed but flagged for review
* `PAYMENT_RISK_BLOCKED`, charge blocked when `mode` is `block`

These events fire only while Radar is on. Payload includes `assessment_id`, `transaction_id`, `rail`, `decision`, `risk_score`, `signals`, `amount`, and `currency_code`.

## Disputes vs Radar vs payout controls

|           | **Disputes**                  | **Radar**                                   | **Payout controls**      |
| --------- | ----------------------------- | ------------------------------------------- | ------------------------ |
| Timing    | After chargeback              | Before/during charge                        | At withdrawal            |
| API       | `GET /disputes`               | `GET /risk-assessments`                     | None (internal)          |
| Dashboard | Settings → Support → Disputes | Transaction sheet: Normal / Risky / Blocked | Withdrawal error message |

## Factor fees

Radar does not add a fee when a rule fires. Platform rules are free and always on. Monitor is free. Block and Review are not priced until rule precision is measured. A later price, if any, is a flat amount per screened charge or inclusion in a plan. It is never tied to a fired factor.
