FlitDocs

Cap what can leave

A limit per account does not notice a stolen API key, because the thief spreads the money over every account the key can reach. An outflow cap limits what can leave through one credential in total, whichever accounts it comes from.

What a payout has to say

Send every debit to audit-transaction before the money moves. For the caps to work, four fields matter beside the amount:

FieldWhat it is
initiator_idWho asked for the money to move: the partner's API key id, the operator, the service. Not the account holder. This is the credential a cap is counted against.
channelThe rail it leaves by.
counterparty_id, counterparty_bankWhere it is going.
amount, currency_codeIn whole units of the currency: 3000000 is three million naira.

Set the caps

PATCH /api/v1/applications/$APP/policy
curl -s -X PATCH "$FLIT/api/v1/applications/$APP/policy" \
  -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "outflow_limits": {
      "currency": "NGN",
      "per_initiator": {
        "1h": 5000000,
        "24h": 20000000
      },
      "per_application": {
        "24h": 200000000
      },
      "fail": "block"
    }
  }'
200 Answer the fields this page talks about
{
  "data": {
    "outflow_limits": {
      "currency": "NGN",
      "per_initiator": {
        "1h": 5000000,
        "24h": 20000000
      },
      "per_application": {
        "24h": 200000000
      },
      "fail": "block"
    }
  }
}
The whole answer
{
  "data": {
    "thresholds": {
      "block_at": 0.7,
      "review_at": 0.5,
      "challenge_at": 0.45
    },
    "weights": {},
    "rules": {
      "block": [],
      "review": [],
      "challenge": [
        {
          "subject": "client_id",
          "pattern": "user_501",
          "reason": "Reported a lost phone"
        }
      ],
      "allow": []
    },
    "disabled_rules": [],
    "shadow_rules": [],
    "live_rules": [],
    "challenge_method": "otp",
    "latency_budget_ms": 3000,
    "outflow_limits": {
      "currency": "NGN",
      "per_initiator": {
        "1h": 5000000,
        "24h": 20000000
      },
      "per_application": {
        "24h": 200000000
      },
      "fail": "block"
    },
    "beneficiary_control": {},
    "liveness_factors": [
      "account_takeover_risk",
      "beneficiary_unverified",
      "credential_reset_storm",
      "impossible_travel_detected",
      "maximum_daily_cumulative_debit_exceeded",
      "maximum_single_debit_exceeded",
      "new_device_country",
      "new_withdrawal_address",
      "reset_then_login",
      "unknown_beneficiary",
      "unusual_debit_amount"
    ],
    "liveness_enabled": false,
    "enforcement": "enforcing",
    "webhook": null,
    "decision_hook": null,
    "liveness": null,
    "effective": {
      "thresholds": {
        "block_at": 0.7,
        "review_at": 0.5,
        "challenge_at": 0.45
      },
      "enforcing": true
    },
    "rule_findings": [],
    "organization": null
  },
  "errors": []
}
KeyWhat it caps
currencyThe one currency the caps are in. A payout in another currency cannot be measured against them; see fail.
per_initiatorThe total one credential may send, across every account.
per_initiator_untrustedThe part of that which may go to destinations the credential has no history with. Set this lower.
per_channel, per_applicationTotals for one rail, and for everything.
off_hoursstart, end, timezone and a factor: outside working hours every cap is multiplied by the factor, so 0.25 allows a quarter.
failWhat happens to a payout that cannot be measured. block (the default) refuses it. review lets it through and opens a case.

Each cap is a set of windows: 15m, 1h, 24h. Use more than one. A short window catches a burst, and a long one catches a slow drain that stays under the short one.

A key can tighten, only a person can loosen. Setting caps for the first time, or lowering one, works with an API key. Raising or removing one is refused unless a person is signed in, because the key may be the thing that was stolen.

What a trip looks like

The cap is five million an hour. One partner credential sends three million from one account:

POST /api/v1/applications/$APP/audit-transaction
curl -s -X POST "$FLIT/api/v1/applications/$APP/audit-transaction" \
  -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "payout_6001",
    "type": "debit",
    "amount": 3000000,
    "currency_code": "NGN",
    "client_id": "user_601",
    "kyc_level": "level_three",
    "daily_cumulative_debit_balance": 0,
    "counterparty_id": "0000000001",
    "counterparty_bank": "058",
    "initiator_id": "partner_key_1",
    "channel": "nip",
    "ip_address": "196.46.20.21",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
  }'
200 Answer the fields this page talks about
{
  "data": {
    "audit_id": "d12278f2-aba5-4b9b-adc9-8d111882d31d",
    "verdict": "allow",
    "risk_score": 0.0,
    "risk_level": "low",
    "factors": [
      "req_event_attrs"
    ]
  }
}
The whole answer
{
  "data": {
    "audit_id": "d12278f2-aba5-4b9b-adc9-8d111882d31d",
    "device_id": null,
    "identity": {
      "rungs": [
        "ip"
      ],
      "coverage": 0.15,
      "missing": [
        "device",
        "email_root",
        "asn"
      ],
      "strongest": "ip"
    },
    "risk_score": 0.0,
    "risk_level": "low",
    "rules": [
      "DeviceExpiredRule",
      "NewDeviceCountryRule",
      "UnregisteredDeviceRule",
      "AmlCftLimitExceededRule",
      "MaximumSingleDebitExceededRule",
      "MaximumDailyCumulativeDebitExceededRule",
      "VelocityCheckRule",
      "AccountTakeoverRule",
      "IPConcentrationRule",
      "IPReputationRule",
      "BotSignalRule",
      "ExpectedSignalRule",
      "NetworkReputationRule",
      "ChallengeEvasionRule",
      "ChallengePassedRule",
      "MultiAccountingRule",
      "AccountSharingRule",
      "PassThroughRule",
      "StructuringRule",
      "DormantAwakeningRule",
      "UnusualDebitAmountRule",
      "AccountFarmingRule",
      "SessionShapeRule",
      "BlockStreakRule",
      "OutflowBreakerRule",
      "ThresholdProbingRule",
      "ProbingSessionRule"
    ],
    "reasons": [
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "DeviceExpiredRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "NewDeviceCountryRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "UnregisteredDeviceRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      }
    ],
    "enforcement": "enforcing",
    "verdict": "allow",
    "should_block": false,
    "should_challenge": false,
    "should_review": false,
    "would_block": false,
    "would_challenge": false,
    "recommendation": "ALLOW: Low risk. Proceed with standard processing.",
    "confidence": 0.8,
    "coverage": 0.15,
    "factors": [
      "req_event_attrs"
    ],
    "degraded": [],
    "disabled_rules": [],
    "policy_matches": {},
    "block_streak": 0,
    "shadow": [],
    "hook": null,
    "challenge": null,
    "step_up_method": null,
    "agent": null
  },
  "errors": []
}

Then three million more, from a different account:

POST /api/v1/applications/$APP/audit-transaction
curl -s -X POST "$FLIT/api/v1/applications/$APP/audit-transaction" \
  -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "payout_6002",
    "type": "debit",
    "amount": 3000000,
    "currency_code": "NGN",
    "client_id": "user_602",
    "kyc_level": "level_three",
    "daily_cumulative_debit_balance": 0,
    "counterparty_id": "0000000002",
    "counterparty_bank": "058",
    "initiator_id": "partner_key_1",
    "channel": "nip",
    "ip_address": "196.46.20.22",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
  }'
200 Answer the fields this page talks about
{
  "data": {
    "audit_id": "9069b23d-a8ab-4ba1-b6fa-3610515c8cf2",
    "verdict": "block",
    "risk_score": 1.0,
    "risk_level": "critical",
    "factors": [
      "req_event_attrs",
      "outflow_limit_exceeded"
    ],
    "reasons": [
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "DeviceExpiredRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "NewDeviceCountryRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "UnregisteredDeviceRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "outflow_limit_exceeded",
        "path": "amount",
        "context": {
          "rule": "OutflowBreakerRule",
          "hard_block": true,
          "breaches": [
            {
              "kind": "initiator",
              "value": "partner_key_1",
              "window": "1h",
              "limit": 500000000,
              "used": 600000000
            }
          ],
          "currency_code": "NGN"
        },
        "text": "This transfer would take outflow over a configured limit"
      }
    ]
  }
}
The whole answer
{
  "data": {
    "audit_id": "9069b23d-a8ab-4ba1-b6fa-3610515c8cf2",
    "device_id": null,
    "identity": {
      "rungs": [
        "ip"
      ],
      "coverage": 0.15,
      "missing": [
        "device",
        "email_root",
        "asn"
      ],
      "strongest": "ip"
    },
    "risk_score": 1.0,
    "risk_level": "critical",
    "rules": [
      "DeviceExpiredRule",
      "NewDeviceCountryRule",
      "UnregisteredDeviceRule",
      "AmlCftLimitExceededRule",
      "MaximumSingleDebitExceededRule",
      "MaximumDailyCumulativeDebitExceededRule",
      "VelocityCheckRule",
      "AccountTakeoverRule",
      "IPConcentrationRule",
      "IPReputationRule",
      "BotSignalRule",
      "ExpectedSignalRule",
      "NetworkReputationRule",
      "ChallengeEvasionRule",
      "ChallengePassedRule",
      "MultiAccountingRule",
      "AccountSharingRule",
      "PassThroughRule",
      "StructuringRule",
      "DormantAwakeningRule",
      "UnusualDebitAmountRule",
      "AccountFarmingRule",
      "SessionShapeRule",
      "BlockStreakRule",
      "OutflowBreakerRule",
      "ThresholdProbingRule",
      "ProbingSessionRule"
    ],
    "reasons": [
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "DeviceExpiredRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "NewDeviceCountryRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "UnregisteredDeviceRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "outflow_limit_exceeded",
        "path": "amount",
        "context": {
          "rule": "OutflowBreakerRule",
          "hard_block": true,
          "breaches": [
            {
              "kind": "initiator",
              "value": "partner_key_1",
              "window": "1h",
              "limit": 500000000,
              "used": 600000000
            }
          ],
          "currency_code": "NGN"
        },
        "text": "This transfer would take outflow over a configured limit"
      }
    ],
    "enforcement": "enforcing",
    "verdict": "block",
    "should_block": true,
    "should_challenge": false,
    "should_review": true,
    "would_block": true,
    "would_challenge": false,
    "recommendation": "BLOCK: High-risk activity detected. Recommend blocking transaction and triggering manual review.",
    "confidence": 0.8,
    "coverage": 0.15,
    "factors": [
      "req_event_attrs",
      "outflow_limit_exceeded"
    ],
    "degraded": [],
    "disabled_rules": [],
    "policy_matches": {},
    "block_streak": 1,
    "shadow": [],
    "hook": null,
    "challenge": null,
    "step_up_method": null,
    "agent": null
  },
  "errors": []
}

Neither account did anything unusual. The credential did. breaches says which cap, over which window, and how far over. The figures in a reason are in the currency's smallest unit, so 500000000 is 5,000,000.00.

The refused payout is not counted against the cap. What happens next depends on the mode:

  • When Flit is enforcing (test mode always is), the credential is tripped. Every payout it asks for is refused with outflow_trip_active, even small ones, until a person releases it. Flit sends the outflow.tripped webhook and opens a high-priority case.
  • In shadow, nothing trips. The answer carries would_block, and the money counts as having left.

Release a trip

Releasing is for a person, not a key. Sign in for a token, which lasts 15 minutes:

POST /api/v1/auth/token
curl -s -X POST "$FLIT/api/v1/auth/token" \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "[email protected]",
    "password": "a long passphrase you chose"
  }'
200 Answer
{
  "data": {
    "refresh": "eyJ…",
    "access": "eyJ…"
  },
  "errors": []
}
export TOKEN=…   # data.access

Anyone holding a key can see what is tripped:

GET /api/v1/applications/$APP/outflow-trips
curl -s "$FLIT/api/v1/applications/$APP/outflow-trips" \
  -H "Authorization: Bearer $KEY"
200 Answer
{
  "data": {
    "trips": [
      {
        "id": "8bbfe286-8f8a-493d-8da4-178e422013af",
        "scope_kind": "initiator",
        "scope_value": "partner_key_1",
        "window": "1h",
        "limit": 5000000.0,
        "used": 6000000.0,
        "currency_code": "NGN",
        "trigger_audit_id": "9069b23d-a8ab-4ba1-b6fa-3610515c8cf2",
        "tripped_at": "2026-12-02T18:59:28.948461+00:00",
        "released_at": null,
        "released_by": null,
        "release_note": ""
      }
    ]
  },
  "errors": []
}

Only the signed-in owner can release it, with a note that is kept:

PATCH /api/v1/applications/$APP/outflow-trips/$TRIP
curl -s -X PATCH "$FLIT/api/v1/applications/$APP/outflow-trips/$TRIP" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "note": "Confirmed with the partner: a scheduled bulk settlement"
  }'
200 Answer
{
  "data": {
    "trip": {
      "id": "8bbfe286-8f8a-493d-8da4-178e422013af",
      "scope_kind": "initiator",
      "scope_value": "partner_key_1",
      "window": "1h",
      "limit": 5000000.0,
      "used": 6000000.0,
      "currency_code": "NGN",
      "trigger_audit_id": "9069b23d-a8ab-4ba1-b6fa-3610515c8cf2",
      "tripped_at": "2026-12-02T18:59:28.948461+00:00",
      "released_at": "2026-12-02T18:59:29.037349+00:00",
      "released_by": "ada5df04-28aa-4e5b-9b8b-a957a404bfe8",
      "release_note": "Confirmed with the partner: a scheduled bulk settlement"
    }
  },
  "errors": []
}

Releasing starts the credential's windows again from zero.

Payouts to somewhere new

A cap bounds the damage. The other half is where the money goes: a thief pays accounts the credential has never paid. With beneficiary control on, a credential can only pay a destination it is trusted to pay from that account.

PATCH /api/v1/applications/$APP/policy
curl -s -X PATCH "$FLIT/api/v1/applications/$APP/policy" \
  -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "beneficiary_control": {
      "enabled": true,
      "cooling_hours": 72,
      "fail": "block"
    }
  }'
200 Answer the fields this page talks about
{
  "data": {
    "beneficiary_control": {
      "enabled": true,
      "cooling_hours": 72,
      "fail": "block"
    }
  }
}
The whole answer
{
  "data": {
    "thresholds": {
      "block_at": 0.7,
      "review_at": 0.5,
      "challenge_at": 0.45
    },
    "weights": {},
    "rules": {
      "block": [],
      "review": [],
      "challenge": [
        {
          "subject": "client_id",
          "pattern": "user_501",
          "reason": "Reported a lost phone"
        }
      ],
      "allow": []
    },
    "disabled_rules": [],
    "shadow_rules": [],
    "live_rules": [],
    "challenge_method": "otp",
    "latency_budget_ms": 3000,
    "outflow_limits": {
      "currency": "NGN",
      "per_initiator": {
        "1h": 5000000,
        "24h": 20000000
      },
      "per_application": {
        "24h": 200000000
      },
      "fail": "block"
    },
    "beneficiary_control": {
      "enabled": true,
      "cooling_hours": 72,
      "fail": "block"
    },
    "liveness_factors": [
      "account_takeover_risk",
      "beneficiary_unverified",
      "credential_reset_storm",
      "impossible_travel_detected",
      "maximum_daily_cumulative_debit_exceeded",
      "maximum_single_debit_exceeded",
      "new_device_country",
      "new_withdrawal_address",
      "reset_then_login",
      "unknown_beneficiary",
      "unusual_debit_amount"
    ],
    "liveness_enabled": false,
    "enforcement": "enforcing",
    "webhook": null,
    "decision_hook": null,
    "liveness": null,
    "effective": {
      "thresholds": {
        "block_at": 0.7,
        "review_at": 0.5,
        "challenge_at": 0.45
      },
      "enforcing": true
    },
    "rule_findings": [],
    "organization": null
  },
  "errors": []
}
POST /api/v1/applications/$APP/audit-transaction
curl -s -X POST "$FLIT/api/v1/applications/$APP/audit-transaction" \
  -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "payout_6003",
    "type": "debit",
    "amount": 50000,
    "currency_code": "NGN",
    "client_id": "user_601",
    "kyc_level": "level_three",
    "daily_cumulative_debit_balance": 0,
    "counterparty_id": "0000000099",
    "counterparty_bank": "058",
    "initiator_id": "partner_key_1",
    "channel": "nip",
    "ip_address": "196.46.20.21",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
  }'
200 Answer the fields this page talks about
{
  "data": {
    "audit_id": "327b8ba9-7bbe-45f6-aa61-1483dbfd07a9",
    "verdict": "block",
    "risk_score": 0.7,
    "risk_level": "critical",
    "factors": [
      "req_event_attrs",
      "unknown_beneficiary"
    ],
    "reasons": [
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "DeviceExpiredRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "NewDeviceCountryRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "UnregisteredDeviceRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "unknown_beneficiary",
        "path": "counterparty_id",
        "context": {
          "rule": "UnknownBeneficiaryRule",
          "hard_block": true,
          "seen_before": false,
          "revoked": false
        },
        "text": "This credential has no trusted history of paying this beneficiary from this account"
      }
    ]
  }
}
The whole answer
{
  "data": {
    "audit_id": "327b8ba9-7bbe-45f6-aa61-1483dbfd07a9",
    "device_id": null,
    "identity": {
      "rungs": [
        "ip"
      ],
      "coverage": 0.15,
      "missing": [
        "device",
        "email_root",
        "asn"
      ],
      "strongest": "ip"
    },
    "risk_score": 0.7,
    "risk_level": "critical",
    "rules": [
      "DeviceExpiredRule",
      "NewDeviceCountryRule",
      "UnregisteredDeviceRule",
      "AmlCftLimitExceededRule",
      "MaximumSingleDebitExceededRule",
      "MaximumDailyCumulativeDebitExceededRule",
      "VelocityCheckRule",
      "AccountTakeoverRule",
      "IPConcentrationRule",
      "IPReputationRule",
      "BotSignalRule",
      "ExpectedSignalRule",
      "NetworkReputationRule",
      "ChallengeEvasionRule",
      "ChallengePassedRule",
      "MultiAccountingRule",
      "AccountSharingRule",
      "PassThroughRule",
      "StructuringRule",
      "DormantAwakeningRule",
      "UnusualDebitAmountRule",
      "AccountFarmingRule",
      "SessionShapeRule",
      "BlockStreakRule",
      "UnknownBeneficiaryRule",
      "OutflowBreakerRule",
      "ThresholdProbingRule",
      "ProbingSessionRule"
    ],
    "reasons": [
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "DeviceExpiredRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "NewDeviceCountryRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "UnregisteredDeviceRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "unknown_beneficiary",
        "path": "counterparty_id",
        "context": {
          "rule": "UnknownBeneficiaryRule",
          "hard_block": true,
          "seen_before": false,
          "revoked": false
        },
        "text": "This credential has no trusted history of paying this beneficiary from this account"
      }
    ],
    "enforcement": "enforcing",
    "verdict": "block",
    "should_block": true,
    "should_challenge": false,
    "should_review": true,
    "would_block": true,
    "would_challenge": false,
    "recommendation": "BLOCK: High-risk activity detected. Recommend blocking transaction and triggering manual review.",
    "confidence": 0.9500000000000001,
    "coverage": 0.15,
    "factors": [
      "req_event_attrs",
      "unknown_beneficiary"
    ],
    "degraded": [],
    "disabled_rules": [],
    "policy_matches": {},
    "block_streak": 1,
    "shadow": [],
    "hook": null,
    "challenge": null,
    "step_up_method": null,
    "agent": null
  },
  "errors": []
}

A destination becomes trusted in one of two ways. A person approves it:

POST /api/v1/applications/$APP/trusted-beneficiaries
curl -s -X POST "$FLIT/api/v1/applications/$APP/trusted-beneficiaries" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "beneficiaries": [
      {
        "initiator_id": "partner_key_1",
        "client_id": "user_601",
        "counterparty_id": "0000000099",
        "counterparty_bank": "058"
      }
    ]
  }'
201 Answer
{
  "data": {
    "approved": 1
  },
  "errors": []
}
POST /api/v1/applications/$APP/audit-transaction
curl -s -X POST "$FLIT/api/v1/applications/$APP/audit-transaction" \
  -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "id": "payout_6004",
    "type": "debit",
    "amount": 50000,
    "currency_code": "NGN",
    "client_id": "user_601",
    "kyc_level": "level_three",
    "daily_cumulative_debit_balance": 0,
    "counterparty_id": "0000000099",
    "counterparty_bank": "058",
    "initiator_id": "partner_key_1",
    "channel": "nip",
    "ip_address": "196.46.20.21",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
  }'
200 Answer the fields this page talks about
{
  "data": {
    "audit_id": "c18192ca-c3f0-4a8f-a83f-7a86410e2b61",
    "verdict": "allow",
    "risk_score": 0.105,
    "risk_level": "low",
    "factors": [
      "req_event_attrs"
    ]
  }
}
The whole answer
{
  "data": {
    "audit_id": "c18192ca-c3f0-4a8f-a83f-7a86410e2b61",
    "device_id": null,
    "identity": {
      "rungs": [
        "ip"
      ],
      "coverage": 0.15,
      "missing": [
        "device",
        "email_root",
        "asn"
      ],
      "strongest": "ip"
    },
    "risk_score": 0.105,
    "risk_level": "low",
    "rules": [
      "DeviceExpiredRule",
      "NewDeviceCountryRule",
      "UnregisteredDeviceRule",
      "AmlCftLimitExceededRule",
      "MaximumSingleDebitExceededRule",
      "MaximumDailyCumulativeDebitExceededRule",
      "VelocityCheckRule",
      "AccountTakeoverRule",
      "IPConcentrationRule",
      "IPReputationRule",
      "BotSignalRule",
      "ExpectedSignalRule",
      "NetworkReputationRule",
      "ChallengeEvasionRule",
      "ChallengePassedRule",
      "MultiAccountingRule",
      "AccountSharingRule",
      "PassThroughRule",
      "StructuringRule",
      "DormantAwakeningRule",
      "UnusualDebitAmountRule",
      "AccountFarmingRule",
      "SessionShapeRule",
      "BlockStreakRule",
      "UnknownBeneficiaryRule",
      "OutflowBreakerRule",
      "ThresholdProbingRule",
      "ProbingSessionRule"
    ],
    "reasons": [
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "DeviceExpiredRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "NewDeviceCountryRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      },
      {
        "code": "req_event_attrs",
        "path": null,
        "context": {
          "rule": "UnregisteredDeviceRule",
          "attributes": [
            "visit_id"
          ]
        },
        "text": "Some event attributes are required and cannot be null"
      }
    ],
    "enforcement": "enforcing",
    "verdict": "allow",
    "should_block": false,
    "should_challenge": false,
    "should_review": false,
    "would_block": false,
    "would_challenge": false,
    "recommendation": "ALLOW: Low risk. Proceed with standard processing.",
    "confidence": 0.9,
    "coverage": 0.15,
    "factors": [
      "req_event_attrs"
    ],
    "degraded": [],
    "disabled_rules": [],
    "policy_matches": {},
    "block_streak": 0,
    "shadow": [],
    "hook": null,
    "challenge": null,
    "step_up_method": null,
    "agent": null
  },
  "errors": []
}

Or it ages in: once Flit has seen the credential pay that destination from that account, and cooling_hours have passed since the first time, it is trusted. A destination later labelled as fraud loses its trust.

Turn this on in shadow first. Flit learns destinations only from payouts it let through, and only while this control is on. Switched on while enforcing, it refuses every existing payee on day one. Switch it on in live mode while live is still in shadow, leave it for longer than the cooling period, then enforce.

A payout with no initiator_id or no counterparty_id cannot be checked at all. It is let through with beneficiary_unverified and sent to review, so you find out the field is missing.

The other findings in these answers

Every payout above lists req_event_attrs. It means a rule wanted a field the event did not have, and names both in reasons. It never changes the score. Here three device rules wanted a device. Two more things produce it on a payout:

  • Per-account limits need kyc_level and daily_cumulative_debit_balance. Your policy has a table of limits per level (level_one to level_three, and merchant_starter, merchant_standard, merchant_enterprise). Without a level Flit cannot pick a row.
  • Those limits are in naira until changed. A payout in another currency is not measured against them and reports policy_currency_mismatch. The per-account limits are set by the Flit team; ask for yours when you open live mode.

Hear about a trip as it happens

Register a webhook on the same policy endpoint, with a secret of your own of at least 16 characters:

PATCH /api/v1/applications/$APP/policy

{ "webhook": { "url": "https://example.com/hooks/flit",
               "secret": "…",
               "events": ["outflow.tripped"] } }

Each delivery is signed. The X-Flit-Signature header is t=<unix time>,v1=<signature>, where the signature is the HMAC-SHA256, in hex, of the time, a full stop and the raw body, keyed with your secret. Recompute it, compare in constant time, and refuse anything more than five minutes old. A delivery that fails is tried up to eight times, further apart each time, over about an hour.