FlitDocs

Step up at payout

Some payouts are neither clearly fine nor clearly fraud. For those the verdict is challenge: ask the customer to prove it is them, and pay only if they do. Flit can issue and check that proof for you.

When Flit asks

A decision comes back as challenge when:

  • the score falls in the band below a block, where the evidence is real but not enough to refuse a customer on;
  • a finding always asks for one, such as an origin other Flit customers have confirmed as fraud;
  • a rule you wrote says so.

By default Flit only says challenge, and how you check the customer is yours to build. Set a challenge_method and Flit issues the challenge inside the decision.

Turn it on

This sets one-time codes as the method. So that there is something to see, it also adds a rule: always step up for one account, the sort of rule support adds when a customer reports a lost phone.

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 '{
    "challenge_method": "otp",
    "rules": {
      "challenge": [
        {
          "subject": "client_id",
          "pattern": "user_501",
          "reason": "Reported a lost phone"
        }
      ]
    }
  }'
200 Answer the fields this page talks about
{
  "data": {
    "challenge_method": "otp",
    "rules": {
      "block": [],
      "review": [],
      "challenge": [
        {
          "subject": "client_id",
          "pattern": "user_501",
          "reason": "Reported a lost phone"
        }
      ],
      "allow": []
    }
  }
}
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": {},
    "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": []
}

The methods are otp, a six-digit code; turnstile, a bot check for signups; and liveness, a face check, covered below.

A payout that is challenged

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_5001",
    "type": "debit",
    "amount": 250000,
    "currency_code": "NGN",
    "client_id": "user_501",
    "kyc_level": "level_three",
    "daily_cumulative_debit_balance": 0,
    "counterparty_id": "0123456789",
    "counterparty_bank": "058",
    "initiator_id": "partner_key_1",
    "channel": "nip",
    "ip_address": "196.46.20.10",
    "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": "f991eefe-f5d3-4aad-9bd4-5a7e643361f8",
    "verdict": "challenge",
    "should_challenge": true,
    "step_up_method": "otp",
    "challenge": {
      "id": "c01d31ba-bdd0-4f72-b4fb-b77447d8e41e",
      "method": "otp",
      "expires_at": "2026-12-02T19:14:28.898147+00:00",
      "code": "481516"
    },
    "factors": [
      "req_event_attrs",
      "policy_challenge"
    ]
  }
}
The whole answer
{
  "data": {
    "audit_id": "f991eefe-f5d3-4aad-9bd4-5a7e643361f8",
    "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",
      "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": "policy_challenge",
        "path": "client_id",
        "context": {
          "score": 0.0,
          "force_challenge": true,
          "matched": [
            {
              "layer": "application",
              "subject": "client_id",
              "pattern": "user_501",
              "reason": "Reported a lost phone"
            }
          ]
        },
        "text": "Step-up required by policy: application client_id=user_501 (Reported a lost phone)"
      }
    ],
    "enforcement": "enforcing",
    "verdict": "challenge",
    "should_block": false,
    "should_challenge": true,
    "should_review": false,
    "would_block": false,
    "would_challenge": true,
    "recommendation": "CHALLENGE: Step up verification before proceeding (req_event_attrs, req_event_attrs, req_event_attrs). Evidence is short of a block but the action should cost more than one request.",
    "confidence": 0.8,
    "coverage": 0.15,
    "factors": [
      "req_event_attrs",
      "policy_challenge"
    ],
    "degraded": [],
    "disabled_rules": [],
    "policy_matches": {
      "challenge": [
        {
          "layer": "application",
          "subject": "client_id",
          "pattern": "user_501",
          "reason": "Reported a lost phone"
        }
      ]
    },
    "block_streak": 0,
    "shadow": [],
    "hook": null,
    "challenge": {
      "id": "c01d31ba-bdd0-4f72-b4fb-b77447d8e41e",
      "method": "otp",
      "expires_at": "2026-12-02T19:14:28.898147+00:00",
      "code": "481516"
    },
    "step_up_method": "otp",
    "agent": null
  },
  "errors": []
}

The challenge in the answer is live. Flit made the code; you deliver it, by the SMS, email or push you already send, and you never show it in the page that asks for it. It appears in this answer once. Flit keeps only a digest.

A challenge lasts 15 minutes and allows five attempts.

Check what the customer typed

POST /api/v1/applications/$APP/challenges/$CHALLENGE/verify
curl -s -X POST "$FLIT/api/v1/applications/$APP/challenges/$CHALLENGE/verify" \
  -H "Authorization: Bearer $KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "response": "'"$CODE"'"
  }'
200 Answer
{
  "data": {
    "passed": true,
    "reason": null,
    "challenge": {
      "id": "c01d31ba-bdd0-4f72-b4fb-b77447d8e41e",
      "client_id": "user_501",
      "method": "otp",
      "status": "passed",
      "attempts": 1,
      "attempts_remaining": 4,
      "created_at": "2026-12-02T18:59:28.898275Z",
      "expires_at": "2026-12-02T19:14:28.898147Z",
      "resolved_at": "2026-12-02T18:59:28.902538Z"
    }
  },
  "errors": []
}

When passed is false, reason says why:

ReasonWhat to do
incorrect_codeLet them try again. attempts_remaining says how many are left.
no_attempts_remaining, expiredThe challenge is over. Refuse the payout; a new one needs a new decision.
already_resolvedIt was passed or failed before. Do not treat this as a pass.

Send the payout again

A passed challenge does not release the payout by itself. Ask Flit about the payout again, with the challenge's id, and act on the new verdict:

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_5001",
    "type": "debit",
    "amount": 250000,
    "currency_code": "NGN",
    "client_id": "user_501",
    "kyc_level": "level_three",
    "daily_cumulative_debit_balance": 0,
    "counterparty_id": "0123456789",
    "counterparty_bank": "058",
    "initiator_id": "partner_key_1",
    "channel": "nip",
    "ip_address": "196.46.20.10",
    "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",
    "challenge_id": "'"$CHALLENGE"'"
  }'
200 Answer the fields this page talks about
{
  "data": {
    "audit_id": "d4cdd6b1-0df7-4ae9-95d8-a90aeb105ff4",
    "verdict": "allow",
    "should_challenge": false,
    "challenge": null,
    "factors": [
      "req_event_attrs",
      "challenge_passed",
      "policy_challenge"
    ]
  }
}
The whole answer
{
  "data": {
    "audit_id": "d4cdd6b1-0df7-4ae9-95d8-a90aeb105ff4",
    "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",
      "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": "challenge_passed",
        "path": "challenge_id",
        "context": {
          "score": 0.0,
          "challenge_id": "c01d31ba-bdd0-4f72-b4fb-b77447d8e41e",
          "method": "otp",
          "replay": 1,
          "passed_challenge": true
        },
        "text": "The actor cleared the step-up this decision asked for"
      },
      {
        "code": "policy_challenge",
        "path": "client_id",
        "context": {
          "score": 0.0,
          "force_challenge": true,
          "matched": [
            {
              "layer": "application",
              "subject": "client_id",
              "pattern": "user_501",
              "reason": "Reported a lost phone"
            }
          ]
        },
        "text": "Step-up required by policy: application client_id=user_501 (Reported a lost phone)"
      }
    ],
    "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.9500000000000001,
    "coverage": 0.15,
    "factors": [
      "req_event_attrs",
      "challenge_passed",
      "policy_challenge"
    ],
    "degraded": [],
    "disabled_rules": [],
    "policy_matches": {
      "challenge": [
        {
          "layer": "application",
          "subject": "client_id",
          "pattern": "user_501",
          "reason": "Reported a lost phone"
        }
      ]
    },
    "block_streak": 0,
    "shadow": [],
    "hook": null,
    "challenge": null,
    "step_up_method": null,
    "agent": null
  },
  "errors": []
}

challenge_passed is in the factors and the verdict is allow. A pass can be presented for 15 minutes, up to three times, and only for the account it was issued to. Anything else is reported as challenge_replay_rejected and the payout is judged as if no challenge had been passed.

Passing never lifts a block. A pass takes a borderline score out of the challenge band. It does nothing to a decision Flit would refuse: an attacker who can pass one check on one account cannot spend that pass against a tripped cap or a sanctioned address. If the second decision says block, refuse.

A face instead of a code

A one-time code proves someone holds the phone. After a SIM swap or a phished code, that is the attacker. For the payouts where that is the worry, Flit can ask for a liveness check through the identity vendor you already use.

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 '{
    "liveness": {
      "provider": "sumsub",
      "credentials": {
        "app_token": "'"$SUMSUB_APP_TOKEN"'",
        "secret_key": "'"$SUMSUB_SECRET_KEY"'"
      },
      "settings": {
        "level_name": "liveness-only"
      }
    }
  }'
200 Answer the fields this page talks about
{
  "data": {
    "liveness": {
      "provider": "sumsub",
      "settings": {
        "level_name": "liveness-only"
      },
      "credentials_configured": [
        "app_token",
        "secret_key"
      ],
      "ready": true
    },
    "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"
    ]
  }
}
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": true,
    "enforcement": "enforcing",
    "webhook": null,
    "decision_hook": null,
    "liveness": {
      "provider": "sumsub",
      "settings": {
        "level_name": "liveness-only"
      },
      "credentials_configured": [
        "app_token",
        "secret_key"
      ],
      "ready": true
    },
    "effective": {
      "thresholds": {
        "block_at": 0.7,
        "review_at": 0.5,
        "challenge_at": 0.45
      },
      "enforcing": true
    },
    "rule_findings": [],
    "organization": {
      "rules": {
        "block": [],
        "review": [],
        "challenge": [],
        "allow": []
      },
      "max_block_at": null,
      "max_review_at": null,
      "required_enforcement": "enforcing",
      "disabled_rules": []
    }
  },
  "errors": []
}

Connecting a vendor is the whole switch. From then on, a step-up becomes a liveness check when the decision has one of the findings in liveness_factors: the account was just recovered, the destination is new, the amount is out of pattern. Every other step-up keeps the cheaper method. The credentials are stored encrypted and never returned; the answer only names which are set.

ProviderCredentialsSettings
sumsubapp_token, secret_keylevel_name
smile_idapi_keypartner_id
personaapi_keyinquiry_template_id
onfidoapi_tokenworkflow_id
veriffapi_key, shared_secretbase_url
premblyapi_keyworkflow_id, organisation_id
dojahsecret_keyapp_id, widget_id

The flow is the one above with two differences. The challenge in the decision carries a session in place of a code: hand it to the vendor's own SDK in your app, which runs the check. And verifying takes no response; Flit asks the vendor for the result.

Two outcomes are particular to liveness:

  • Held. The vendor wants a person to look, or the face did not match the account's. The challenge's status is held, Flit opens a case, and the payout waits.
  • Unavailable. If the vendor cannot be reached when the decision is made, the answer's challenge is {"method": "liveness", "error": "liveness_unavailable"} and the decision is also sent to review. Flit does not quietly fall back to a code. The payout still needs a passed challenge.

In shadow

No challenge is issued in shadow, because nobody should be asked for anything. would_challenge is true, and step_up_method says which method would have been used, so you can count how often customers would have been asked before you turn it on.

Webhooks

Every challenge that ends sends challenge.passed, challenge.failed or challenge.held, with the challenge, the account and the decision it came from. One that is abandoned expires and is sent as failed. Registering a webhook is covered with the caps.