Skip to content

Risk controls

Risk controls decide what Flint does with each card payment attempt. Your rules read facts about the attempt, such as the amount, the buyer's email, or the card's country, and allow it, block it, require 3D Secure, or hold it in a payment review for someone to approve or decline. Every environment starts with two Flint default rules and three default block lists, and you add your own rules and lists on top of them. The Risk controls guide walks through writing a rule, building lists, resolving reviews, and testing in a sandbox.

ObjectID prefixWhat it is
Risk rulerule_An action and a predicate, the condition that decides when the action applies.
Risk listrl_A set of values of one item_type, such as emails or card fingerprints. Rules refer to a list by its alias.
Risk list itemrli_One value on a list.
Attribute registryNoneThe attributes a predicate can read in this environment, from GET /v1/risk-rules/attributes.
Risk previewNoneThe result of validating a draft rule, or an edit to a saved one, without saving anything.
Payment reviewrev_A payment that a review rule held for your decision.
Fraud warningfrw_A card issuer's report that a payment was fraudulent. It can arrive days after the payment.

Rules, lists, and reviews belong to one environment: live mode and each sandbox have their own.

How rules decide a payment#

Flint checks rules twice for each attempt: once before the card goes to the bank, and once after authorization, when the card processor's fraud screening result is known. A rule's stage follows from the attributes it reads. A rule that reads risk_level or risk_score is post_authorization, and every other rule is pre_authorization. The stage limits which actions a rule can take:

actionStagesWhen the rule decides
allowBothBlock and review rules, yours and Flint's, no longer apply to the attempt. require_3ds rules still apply, and the bank can still decline.
blockPre-authorizationThe attempt fails with payment_blocked before it reaches the bank.
require_3dsPre-authorizationThe bank must authenticate the buyer with 3D Secure. Off-session payments skip it, so these rules report applicability: on_session_only.
reviewBothThe payment proceeds, and Flint opens a payment review if the bank approves it.

Rules have no priority, and the order GET /v1/risk-rules returns them in has no effect. Every matching require_3ds rule adds 3D Secure. Otherwise a matching allow beats a matching block, and a block beats a review. The payment intent's risk.matched_risk_rule_id names the rule that decided. How rules combine covers the post-authorization pass, and Which payments are checked covers ACH debits, off-session payments, and the virtual terminal.

Each attempt records the rules and list contents in force when it starts, and both checks use that record. A rule or list change applies from the next attempt.

Write a predicate#

A predicate is one comparison, or an all, any, or not group of predicates. This one matches guest card payments of $500 or more:

JSON
{
  "all": [
    {"attribute": "amount_money", "operator": "gte", "amount_money": {"amount": 50000, "currency": "USD"}},
    {"attribute": "is_guest", "operator": "eq", "value": true},
    {"attribute": "payment_method_type", "operator": "eq", "value": "card"}
  ]
}

A comparison names an attribute, an operator, and the one operand that operator takes: value, values for in, list_alias for in_list, amount_money for the amount_money attribute, or nothing for is_missing. These rules apply across the predicate's fields:

  • Read the registry first. GET /v1/risk-rules/attributes lists each attribute's value_type, its operators, and the stage it's known from (available_from). A rule can use only attributes with is_available: true, and unavailable_reason says why one isn't, such as risk_scoring_not_enabled.
  • Payment intent metadata is readable too, as payment_intent_metadata. followed by the key, for example payment_intent_metadata.fulfillment_region. These attributes are strings that take eq, neq, in, and is_missing. The registry doesn't list them.
  • A missing value never matches. A comparison on an attribute the payment doesn't have is skipped, including neq and a not around it. To match missing values too, add an is_missing comparison in an any group.
  • Operands are exact. An amount_money comparison only matches payments in its currency, so write one comparison per currency you accept. Countries and currencies are uppercase ISO codes, and a risk_score operand is an integer from 0 to 99.

A predicate can have up to 100 nodes and nest 10 levels deep. Predicate grammar and Attributes describe every operator and attribute.

Validate a rule before you save it#

POST /v1/risk-previews checks a rule without saving or changing anything, and it needs only risk.read. mode says what to check:

modeSendChecks
inlineaction and predicate. Add risk_rule_id to check them as an edit to that saved rule.The draft, or the saved rule with your edit
stored_rulerisk_rule_id onlyThe saved rule as it is now

A rule with problems still returns 200, with is_valid: false, analysis: null, and every problem in issues. This draft names a list that doesn't exist:

cURL
curl -X POST https://api.withflintpay.com/v1/risk-previews \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "mode": "inline",
    "action": "block",
    "predicate": {
      "all": [
        {"attribute": "payment_method_type", "operator": "eq", "value": "card"},
        {"attribute": "email", "operator": "in_list", "list_alias": "flagged_emails"}
      ]
    }
  }'
Response
{
  "data": {
    "is_valid": false,
    "issues": [
      {
        "code": "list_not_found",
        "message": "risk list alias \"flagged_emails\" does not exist",
        "path": "predicate.all[1].list_alias"
      }
    ],
    "analysis": null,
    "warnings": []
  }
}

Each issue is a RiskRuleIssue, and path points at the part of the rule to change. Saved rules report the same objects in their own issues array. A valid rule returns analysis with its stage, applicability, attributes_used, and list_aliases_used, plus any warnings: risk_rule_limit_reached when a new rule would pass the active-rule limit, or rule_evaluation_stage_changed when an edit moves a saved rule to the other stage. Validation errors lists every issue code. Accept codes you don't recognize, because Flint can add more.

Rule status and issues#

status on risk rule
Final values do not change again
  • active
    Runs on every payment attempt while its issues array is empty. A new rule starts here unless you send "status": "inactive".
  • inactive
    Saved but not running. It doesn't count toward the limit of 100 active rules. Set status to active to run it again.
  • archivedFinal
    Set by DELETE /v1/risk-rules/{risk_rule_id}. The rule never runs again and can't be changed or restored, but stays readable by ID. archived_at records when.
  • Writes accept active or inactive. Only a delete archives a rule. GET /v1/risk-rules returns active and inactive rules, and archived ones only when status includes archived.
  • An environment can have 100 active rules, counting Flint's defaults. Creating or activating one more returns 409 LIMIT_REACHED.
  • Flint's default rules accept only status changes. They have origin: "system_default" and created_by: null. Set one inactive to turn it off. Flint's default controls says what each one matches.
  • issues is computed on every read and write, against the current registry and your current lists, so a rule that was valid when you saved it can gain issues later, for example when a list it names is archived. An active rule with issues is skipped on every payment. Archived rules always have an empty array.
  • Turning a rule on checks it again. Creating an active rule, or activating an inactive one, validates the predicate against the current registry and checks every list it names. An inactive rule skips the list check: it saves even when a list it names is missing, archived, or the wrong type, reports the problem in issues, and can't be activated until you fix it. The rest of the predicate is validated whatever the status.
  • Turning a rule off always works, even when it has issues, and so does changing its description.

Fix a rule that stopped running shows how to find and repair rules with issues.

Lists#

A list holds values that rules match with in_list, so you can change who is blocked or trusted without editing rules.

  • The alias is permanent. It starts with a lowercase letter, then uses lowercase letters, digits, and underscores, up to 128 characters. It can't be changed and stays reserved after the list is archived. Only name can be edited.
  • item_type decides validation, normalization, and matching. Flint normalizes each value when you add it, when a payment is compared, and when you filter items with value, so Grace@Example.com on an email list matches grace@example.com. The item type also decides which attributes the list can match: a country list matches card_country, for example. Lists has the table.
  • Adding values is safe to repeat. POST /v1/risk-lists/{risk_list_id}/items takes values, up to 500 at a time. Values already on the list come back with outcome: "existing", and one invalid value fails the whole batch.
  • Archiving needs the list unused. While an active rule names the alias, archiving returns 409 RESOURCE_IN_USE. Inactive rules don't block it, but each one then reports a list_archived issue.
  • Flint's default lists, default_block_card_fingerprints, default_block_emails, and default_block_ip_addresses, have origin: "system_default". They start empty and can't be renamed or archived, but you can add and remove their values. Declining a review with add_to_block_lists: true adds that payment's card fingerprint, email, and IP address to them.

GET /v1/risk-lists?alias=flagged_emails finds a list by the alias your rules use. The alias must already be in its valid lowercase form, because Flint doesn't normalize it. GET /v1/risk-lists/{risk_list_id}/items?value=... finds the item holding a value, to remove it by ID.

Versions and concurrent edits#

Rules and lists carry a version. Send the version you last read as expected_version to refuse a change when someone else changed the rule or list since:

RequestWhere expected_version goes
PATCH /v1/risk-rules/{risk_rule_id} or PATCH /v1/risk-lists/{risk_list_id}The request body
DELETE /v1/risk-rules/{risk_rule_id} or DELETE /v1/risk-lists/{risk_list_id}The query string

It's optional. A stale value returns 409 VERSION_CONFLICT with the current version in details[0].current_version, and nothing changes. A rule's version increases on every update. A list's increases when it's renamed or archived and whenever item_count changes, but not when a request adds only values already on the list, and not when payments match it. Item requests don't take expected_version. Change a list without overwriting a teammate shows the retry.

Payment reviews#

A review opens only when a review rule decides a payment and the bank approves it. What the review controls depends on whether the payment was already captured:

Manual capture

The review holds the capture

Capture returns 409 PAYMENT_REVIEW_OPEN until the review is approved. Approving allows a later capture but never captures. Declining cancels the authorization. If nobody decides, Flint cancels the authorization shortly before authorization_expires_at and closes the review as expired.

Automatic capture

The payment already succeeded

Approving closes the review. Declining refunds what was captured minus earlier refunds, with reason fraudulent. If nobody decides within 14 days, the review closes as expired and the payment stands.

Warning: A review doesn't hold an automatic-capture payment

The buyer has already paid, so fulfillment that runs on payment_intent.succeeded or order.paid ships before anyone reviews the payment. To hold funds until someone decides, create the payments your review rules are likely to match with capture_method: "manual", or wait for payment_review.closed before you fulfill.

Payment review statusFinal
  • open moves to closed on approve
  • open moves to resolving on decline or expiry
  • resolving moves to closed on done
  • resolving moves to open on refund fails
status on payment review
Final values do not change again
  • open
    Waiting for a decision. Approve or decline it.
  • resolving
    A decision is being carried out, and the review can't take another. pending_action is decline while a decline cancels or refunds the payment, or expire while Flint cancels an authorization nobody resolved in time.
  • closedFinal
    Resolved. closed_reason says how, and closed_by says who. A review also closes without your action when the payment is canceled, refunded in full, or disputed.

Approving returns the closed review. A decline returns 200 when the cancellation or refund finished within the request, and 202 Accepted with the review resolving while a refund is still processing. A 202 has no Retry-After header: wait for payment_review.closed or payment_review.reopened, or read the review with a growing delay until it leaves resolving. When a decline refunds, refund_id and refunded_money describe the refund. If the refund fails, the review goes back to open, last_resolution_failure names the failed refund, and Flint sends payment_review.reopened. Decline again with a new Idempotency-Key to start another refund. Resolve reviews covers each response.

Fraud warnings#

A fraud warning is separate from Flint's own risk decision. The card issuer can report fraud on any card payment, including one you approved in review, and a dispute often follows. is_actionable is true until the payment is refunded in full, a dispute opens on it, or the card network marks the warning resolved. A partial refund doesn't change it. dispute_id links the dispute once one opens.

List the warnings you can still act on with GET /v1/fraud-warnings?is_actionable=true. created_after and created_before filter created_at, when Flint recorded the warning, not the issuer's reported_at. To act on one, stop fulfillment if the order hasn't shipped, then decide whether to refund the payment in full with reason fraudulent. Respond to fraud warnings shows the refund.

Who made a change#

created_by on rules, lists, and list items, and resolution_started_by and closed_by on reviews, are null when Flint acted, or a reference to the credential that made the request:

Request made withresource_typeresource_id
An API keyapi_keyThe key's key_ ID. A reference can name a key from the other mode.
The Dashboard or the Flint CLIuserThe signed-in person's usr_ ID
A partner app's tokenpartner_app_installThe install's pinst_ ID

GET /v1/payment-reviews and GET /v1/payment-reviews/{payment_review_id} accept expand with payment_intent, order, and customer. GET /v1/fraud-warnings and GET /v1/fraud-warnings/{fraud_warning_id} accept payment_intent and dispute. Each path adds the related record beside its ID, or null when there's no ID, and needs that record's read scope as well as risk read access:

expandAddsAlso needs
payment_intentThe payment intent summary for payment_intent_idpayments.payment_intents.read
orderThe order summary for order_idcommerce.orders.read
customerThe customer summary for customer_idcustomers.read
disputeThe full dispute for dispute_idpayments.disputes.read

A key without a scope a path needs gets 403 INSUFFICIENT_SCOPE with param: expand. Expand related records covers how Flint expands a whole page at once.

cURL
curl -G https://api.withflintpay.com/v1/payment-reviews \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "status=open" \
  --data-urlencode "expand=payment_intent,order"

Scopes#

ScopeGrants
risk.readEvery read, and POST /v1/risk-previews
risk.controls.writeCreating, changing, and archiving rules and lists, and adding and removing list items. Includes risk.read.
risk.reviews.writeApproving and declining reviews. Includes risk.read.

A key with only risk.reviews.write can resolve reviews without changing the rules and lists that decide future payments. Partner apps need risk.read to receive the risk webhook events.

Webhook events#

A review moving to resolving sends no event. Each event's data.object has the same shape as the matching GET response.

Errors across these endpoints#

  • HTTP 409
    Reason managed_externally: Flint's default rules accept only status changes and can't be deleted, and default lists can't be renamed or archived.
  • HTTP 409
    Reason archived: the rule or list is archived, including a list that a rule you're activating names.
  • HTTP 409
    Reason in_progress: the review is resolving. Read its pending_action and wait for it to close or reopen. Repeating the decline already running returns its 202 instead.
  • HTTP 409
    Reason terminal_status: the review is already closed. Read it for closed_reason.
  • HTTP 409
    Reason enabled_risk_rules: the environment already has 100 active rules, and details[0].limit carries the limit. Set a rule inactive, or delete one, first.
  • HTTP 409
    VERSION_CONFLICTRefresh, then retry
    The rule or list changed since you read it. Read it again, reapply your change, and resend with the new expected_version and a new Idempotency-Key.
  • HTTP 409
    Active rules still name the list you're archiving. details[0].blocking_resources lists them as risk_rule references.
  • HTTP 409
    Capture was requested before the payment's review was approved. Approve it, then capture.
  • HTTP 409
    OPERATION_IN_PROGRESSRetry the same request
    A capture, cancellation, refund, or payment update is already running on the payment you're approving or declining. Nothing started, so send the same request again once it finishes.

Rule and list write requests that fail validation return 400 INVALID_REQUEST with details[].param and details[].code, not the typed issue codes previews return. Risk controls errors lists every code.

The Risk rule object#

A rule for assessing and handling payment risk.

Returned by GET /v1/risk-rules/{risk_rule_id} and carried by the endpoints below.

Attributes

actionenumRequired

What Flint does with a payment the rule matches.

  • allow
  • block
  • review
  • require_3ds
applicabilityenumRequired

Which payments the rule applies to.

  • all_payments
  • on_session_only
archived_atstring or nullRequired

RFC3339 timestamp. `null` when the resource isn't archived.

attributes_usedarray of stringRequired

Names of the payment attributes the rule reads.

created_atstringRequired

RFC3339 timestamp.

created_byobject or nullRequired

The credential that created this rule. Null when Flint created it, as for Flint's default rules. The reference may name an API key in the other mode.

descriptionstringRequired

Your note on what the rule is for. Leading and trailing whitespace is trimmed.

issuesarray of objectRequired

Problems that stop Flint from evaluating this rule. Empty when the rule can run. An active rule with issues is skipped on every payment and protects nothing until you fix it. An inactive rule with issues can't be activated until you fix it.

originenumRequired

Whether Flint manages the rule or you created it.

  • system_default
  • merchant
predicateone ofRequired

The condition a payment must meet for the rule to match.

risk_rule_idstringRequired

ID of the saved rule to check.

stageenumRequired

When Flint evaluates the rule for a payment.

  • pre_authorization
  • post_authorization
statusenumRequired

Whether the rule runs.

  • active
  • inactive
  • archived
updated_atstringRequired

RFC3339 timestamp.

versionintegerRequired

Increases on every change to the rule. Send it as expected_version to avoid overwriting someone else's change.

JSON
{
  "action": "review",
  "applicability": "all_payments",
  "archived_at": null,
  "attributes_used": [
    "amount_money"
  ],
  "created_at": "2026-09-07T12:00:00Z",
  "created_by": {
    "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
    "resource_type": "api_key"
  },
  "description": "Review payments above USD 500.",
  "issues": [],
  "origin": "merchant",
  "predicate": {
    "amount_money": {
      "amount": 50000,
      "currency": "USD"
    },
    "attribute": "amount_money",
    "operator": "gt"
  },
  "risk_rule_id": "rule_01KEZF7C00FWGAQJXXA8CRA319",
  "stage": "pre_authorization",
  "status": "active",
  "updated_at": "2026-09-07T12:00:00Z",
  "version": 1
}

The Fraud warning object#

A notice that a payment may be fraudulent.

Returned by GET /v1/fraud-warnings/{fraud_warning_id} and carried by the endpoints below.

Attributes

created_atstringRequired

RFC3339 timestamp.

disputeobject or null

Present only when `expand` includes `dispute`; `null` when expanded and there is no related dispute.

dispute_idstring or nullRequired

The dispute that opened on this payment after the warning. `null` when no dispute has opened.

fraud_typeenumRequired

The kind of fraud the card network reported.

  • card_never_received
  • fraudulent_card_application
  • made_with_counterfeit_card
  • made_with_lost_card
  • made_with_stolen_card
  • unauthorized_use_of_card
  • other
fraud_warning_idstringRequired

Unique identifier for this fraud warning, prefixed `frw_`.

is_actionablebooleanRequired

true until the payment is refunded in full, a dispute opens on it, or the card network marks the warning resolved; after that it stays false. A partial refund doesn't change it.

payment_intentobject or null

Present only when `expand` includes `payment_intent`; `null` when expanded and there is no related payment intent.

payment_intent_idstringRequired

ID of the payment the warning is about.

payment_summaryobjectRequired

The payment's amount, buyer email, and card, for recognizing it.

reported_atstringRequired

RFC3339 timestamp.

updated_atstringRequired

RFC3339 timestamp.

JSON
{
  "created_at": "2026-07-09T18:02:12Z",
  "dispute_id": null,
  "fraud_type": "unauthorized_use_of_card",
  "fraud_warning_id": "frw_01KEZF7C007FGBC5EK2V2YMXMZ",
  "is_actionable": true,
  "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
  "payment_summary": {
    "amount_money": {
      "amount": 12900,
      "currency": "USD"
    },
    "email": "buyer@example.com",
    "last4": "4242",
    "payment_method_brand": "visa"
  },
  "reported_at": "2026-07-09T18:02:11Z",
  "updated_at": "2026-07-09T18:02:12Z"
}

The Payment review object#

A payment review requiring a merchant decision.

Returned by GET /v1/payment-reviews/{payment_review_id} and carried by the endpoints below.

Attributes

closed_atstring or nullRequired

RFC3339 timestamp.

closed_byobject or nullRequired

The credential that closed this payment review. Null when Flint closed it.

closed_reasonenum or nullRequired
  • approved
  • declined
  • refunded
  • disputed
  • payment_canceled
  • expired
  • null
customerobject or null

Present only when `expand` includes `customer`; `null` when expanded and there is no related customer.

customer_idstring or nullRequired
ip_addressstring or nullRequired
last_resolution_failureobject or nullRequired

The most recent resolution attempt that failed. Set when a decline's refund failed and the review reopened. Null when no attempt has failed.

matched_risk_rule_idstring or nullRequired
opened_atstringRequired

RFC3339 timestamp.

opened_reasonenumRequired
  • rule
orderobject or null

Present only when `expand` includes `order`; `null` when expanded and there is no related order.

order_idstring or nullRequired
payment_flowenumRequired
  • checkout
  • payment_link
  • invoice
  • subscription_initial
  • subscription_renewal
  • virtual_terminal
  • api
payment_intentobject or null

Present only when `expand` includes `payment_intent`; `null` when expanded and there is no related payment intent.

payment_intent_idstringRequired
payment_review_idstringRequired

Unique identifier for this payment review, prefixed `rev_`.

payment_summaryobjectRequired

The payment details shown on a review: amount, capture method, authorization expiry, card brand and last four digits, and buyer email.

pending_actionenum or nullRequired

The decision being carried out. `null` when status isn't resolving.

  • approve
  • decline
  • expire
  • null
refund_idstring or nullRequired

The refund that closed this review. Null otherwise.

refunded_moneyobject or nullRequired

Refunded amount for this review. Null when no refund is recorded.

resolution_started_atstring or nullRequired

RFC3339 timestamp.

resolution_started_byobject or nullRequired

The credential that started resolving this payment review. Null when Flint started it.

riskobjectRequired

The risk assessment shown on a review: a `level` and, when available, a numeric `score`.

statusenumRequired
  • open
  • resolving
  • closed
supported_actionsarray of enumRequired

Lifecycle actions accepted in the current stored review state. An action remains listed while it is processing or can be repeated without changing the result.

  • approve
  • decline
updated_atstringRequired

RFC3339 timestamp.

JSON
{
  "closed_at": null,
  "closed_by": null,
  "closed_reason": null,
  "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
  "ip_address": null,
  "last_resolution_failure": null,
  "matched_risk_rule_id": null,
  "opened_at": "2026-07-09T18:02:11Z",
  "opened_reason": "rule",
  "order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
  "payment_flow": "checkout",
  "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
  "payment_review_id": "rev_01KEZF7C00F15RYMD8K5YCB6GH",
  "payment_summary": {
    "amount_money": {
      "amount": 12900,
      "currency": "USD"
    },
    "authorization_expires_at": null,
    "capture_method": "automatic",
    "email": "buyer@example.com",
    "last4": "4242",
    "payment_method_brand": "visa"
  },
  "pending_action": null,
  "refund_id": null,
  "refunded_money": null,
  "resolution_started_at": null,
  "resolution_started_by": null,
  "risk": {
    "level": "elevated"
  },
  "status": "open",
  "supported_actions": [
    "approve",
    "decline"
  ],
  "updated_at": "2026-07-09T18:02:11Z"
}

The Risk list object#

A collection of values used in payment risk rules.

Returned by GET /v1/risk-lists/{risk_list_id} and carried by the endpoints below.

Attributes

aliasstringRequired

Name rules use to refer to this list, such as flagged_emails: a lowercase letter, then up to 127 lowercase letters, digits, or underscores. Set at creation and never changed.

archived_atstring or nullRequired

RFC3339 timestamp. `null` when the resource isn't archived.

created_atstringRequired

RFC3339 timestamp.

created_byobject or nullRequired

The credential that created this list. Null when Flint created it, as for Flint's default lists. The reference may name an API key in the other mode.

item_countintegerRequired

Number of values on the list now.

item_typeenumRequired

Values are trimmed and compared exactly after item-type normalization for deduplication and membership. card_fingerprint is the 32-character hexadecimal value from PaymentMethod.fingerprint and is lowercased; case_sensitive_string preserves case and Unicode composition. string and email are lowercased, with accents preserved. email requires a bare address. email_domain is lowercased, has one final dot removed, and converts internationalized domains to ASCII. ip_address uses canonical IP form, including IPv4-mapped IPv6 conversion to IPv4. country uses uppercase ISO codes. card_bin preserves 6 through 8 digits, including leading zeros, and matches the full value. customer_id preserves the validated ID.

  • card_fingerprint
  • card_bin
  • email
  • email_domain
  • ip_address
  • country
  • customer_id
  • string
  • case_sensitive_string
namestringRequired

Display name of the list.

originenumRequired

Whether Flint manages the list or the merchant created it.

  • system_default
  • merchant
risk_list_idstringRequired

Unique identifier for this risk list, prefixed `rl_`.

statusenumRequired

Whether the list can still be used.

  • active
  • archived
updated_atstringRequired

RFC3339 timestamp.

versionintegerRequired

Version of persisted list configuration and item-count changes. External observations do not advance this counter.

JSON
{
  "alias": "flagged_emails",
  "archived_at": null,
  "created_at": "2026-09-07T12:00:00Z",
  "created_by": {
    "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
    "resource_type": "api_key"
  },
  "item_count": 2,
  "item_type": "email",
  "name": "Flagged email addresses",
  "origin": "merchant",
  "risk_list_id": "rl_01KEZF7C00VYSERA4QCTJP147A",
  "status": "active",
  "updated_at": "2026-09-07T12:01:00Z",
  "version": 2
}

List early fraud warnings#

GET/v1/fraud-warnings

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Lists early fraud warnings that card networks reported on your payments, most recently reported first. Filter with `is_actionable=true` to find warnings a full refund can still resolve before a dispute. Default order: reported_at descending, then fraud_warning_id descending.

Query parameters

is_actionableboolean

Filter by whether a proactive fraudulent refund can still prevent a dispute.

payment_intent_idstring

Filter by Flint payment intent ID.

created_afterstring

Inclusive lower bound on created_at.

created_beforestring

Exclusive upper bound on created_at.

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.

expandarray of enum

Include related objects in the response. Supported expansions: dispute, payment_intent. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.

  • dispute
  • payment_intent

Response · 200

List early fraud warnings result.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/fraud-warnings \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List early fraud warnings result.

JSON
{
  "data": [
    {
      "created_at": "2026-07-09T18:02:12Z",
      "dispute_id": null,
      "fraud_type": "unauthorized_use_of_card",
      "fraud_warning_id": "frw_01KEZF7C007FGBC5EK2V2YMXMZ",
      "is_actionable": true,
      "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
      "payment_summary": {
        "amount_money": {
          "amount": 12900,
          "currency": "USD"
        },
        "email": "buyer@example.com",
        "last4": "4242",
        "payment_method_brand": "visa"
      },
      "reported_at": "2026-07-09T18:02:11Z",
      "updated_at": "2026-07-09T18:02:12Z"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM604N8V6CNS9QPV1S7VPEX"
}

Get an early fraud warning#

GET/v1/fraud-warnings/{fraud_warning_id}

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Retrieves an early fraud warning. Expand `payment_intent` or `dispute` to include them.

Path parameters

fraud_warning_idstringRequired

Flint fraud warning ID.

Query parameters

expandarray of enum

Include related objects in the response. Supported expansions: dispute, payment_intent. Expansion requires risk.read plus the read scope for each expanded resource. Limits: at most 10 unique expand paths per request.

  • dispute
  • payment_intent

Response · 200

The requested early fraud warning.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/fraud-warnings/frw_01KEZF7C00WD6W4TAFS0FH851W \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The requested early fraud warning.

JSON
{
  "data": {
    "created_at": "2026-07-09T18:02:12Z",
    "dispute_id": null,
    "fraud_type": "unauthorized_use_of_card",
    "fraud_warning_id": "frw_01KEZF7C007FGBC5EK2V2YMXMZ",
    "is_actionable": true,
    "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
    "payment_summary": {
      "amount_money": {
        "amount": 12900,
        "currency": "USD"
      },
      "email": "buyer@example.com",
      "last4": "4242",
      "payment_method_brand": "visa"
    },
    "reported_at": "2026-07-09T18:02:11Z",
    "updated_at": "2026-07-09T18:02:12Z"
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM604N8V6CNS9QPV1S7VPEX"
}

List payment reviews#

GET/v1/payment-reviews

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Lists payment reviews, most recently opened first. A review opens when a `review` rule matches a payment the bank approved. Every status is included unless you filter by `status`. Default order: opened_at descending, then payment_review_id descending.

Query parameters

statusarray of enum

Filter by review status. Repeat or comma-separate values. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • open
  • resolving
  • closed
risk_levelarray of enum

Filter by immutable review risk level. Repeat or comma-separate values. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • normal
  • elevated
  • highest
  • not_assessed
payment_flowarray of enum

Filter by immutable payment flow. Repeat or comma-separate values. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • checkout
  • payment_link
  • invoice
  • subscription_initial
  • subscription_renewal
  • virtual_terminal
  • api
payment_intent_idstring

Filter by Flint payment intent ID.

order_idstring

Filter by Flint order ID.

customer_idstring

Filter by Flint customer ID.

opened_afterstring

Inclusive lower bound on opened_at.

opened_beforestring

Exclusive upper bound on opened_at.

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.

expandarray of enum

Include related objects in the response. Supported expansions: customer, order, payment_intent. Include the requested related resources using scoped batch reads for this page. Each relationship requires its existing target read scopes. Expansion changes the representation without changing pagination tokens. Limits: at most 10 unique expand paths per request.

  • customer
  • order
  • payment_intent

Response · 200

List payment reviews result.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/payment-reviews \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List payment reviews result.

JSON
{
  "data": [
    {
      "closed_at": null,
      "closed_by": null,
      "closed_reason": null,
      "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
      "ip_address": null,
      "last_resolution_failure": null,
      "matched_risk_rule_id": null,
      "opened_at": "2026-07-09T18:02:11Z",
      "opened_reason": "rule",
      "order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
      "payment_flow": "checkout",
      "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
      "payment_review_id": "rev_01KEZF7C00F15RYMD8K5YCB6GH",
      "payment_summary": {
        "amount_money": {
          "amount": 12900,
          "currency": "USD"
        },
        "authorization_expires_at": null,
        "capture_method": "automatic",
        "email": "buyer@example.com",
        "last4": "4242",
        "payment_method_brand": "visa"
      },
      "pending_action": null,
      "refund_id": null,
      "refunded_money": null,
      "resolution_started_at": null,
      "resolution_started_by": null,
      "risk": {
        "level": "elevated"
      },
      "status": "open",
      "supported_actions": [
        "approve",
        "decline"
      ],
      "updated_at": "2026-07-09T18:02:11Z"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6NY0BAJS2WMZRHCM1C94M"
}

Get a payment review#

GET/v1/payment-reviews/{payment_review_id}

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Retrieves a payment review. Expand `payment_intent`, `order`, or `customer` to include them.

Path parameters

payment_review_idstringRequired

Flint payment review ID.

Query parameters

expandarray of enum

Include related objects in the response. Supported expansions: customer, order, payment_intent. Expansion requires risk.read plus the read scope for each expanded resource. Limits: at most 10 unique expand paths per request.

  • customer
  • order
  • payment_intent

Response · 200

The requested payment review.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/payment-reviews/rev_01KEZF7C00BVBQ00XDFNKB1EF6 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

The requested payment review.

JSON
{
  "data": {
    "closed_at": null,
    "closed_by": null,
    "closed_reason": null,
    "customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
    "ip_address": null,
    "last_resolution_failure": null,
    "matched_risk_rule_id": null,
    "opened_at": "2026-07-09T18:02:11Z",
    "opened_reason": "rule",
    "order_id": "ord_01KEZF7C00JBKMARG3P06Z224B",
    "payment_flow": "checkout",
    "payment_intent_id": "pi_01KEZF7C0050JFFB0HNCWWV1G3",
    "payment_review_id": "rev_01KEZF7C00F15RYMD8K5YCB6GH",
    "payment_summary": {
      "amount_money": {
        "amount": 12900,
        "currency": "USD"
      },
      "authorization_expires_at": null,
      "capture_method": "automatic",
      "email": "buyer@example.com",
      "last4": "4242",
      "payment_method_brand": "visa"
    },
    "pending_action": null,
    "refund_id": null,
    "refunded_money": null,
    "resolution_started_at": null,
    "resolution_started_by": null,
    "risk": {
      "level": "elevated"
    },
    "status": "open",
    "supported_actions": [
      "approve",
      "decline"
    ],
    "updated_at": "2026-07-09T18:02:11Z"
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6NY0BAJS2WMZRHCM1C94M"
}

Approve a payment review#

POST/v1/payment-reviews/{payment_review_id}/approveIdempotent

Requires scope risk.reviews.write

Rate limit: external_provider_action

Approves the payment and closes the review with `closed_reason: approved`. Approving never captures: capture a manual-capture payment yourself before `authorization_expires_at`. Approving a review you already approved returns it unchanged.

Path parameters

payment_review_idstringRequired

Flint payment review ID.

Response · 200

Approve a payment review result.

Same response as Get a payment review.

curl -X POST https://api.withflintpay.com/v1/payment-reviews/rev_01KEZF7C00BVBQ00XDFNKB1EF6/approve \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Decline a payment review#

POST/v1/payment-reviews/{payment_review_id}/declineIdempotent

Requires scope risk.reviews.write

Rate limit: external_provider_action

Declines the payment and closes the review with `closed_reason: declined`. Flint cancels an uncaptured authorization, or refunds the remaining captured amount (captured minus earlier refunds) to the original payment method with reason `fraudulent`. The review is closed once the decline completes. If the refund already failed, the review is `open` again with `last_resolution_failure` set. While the refund is still processing, the decline is accepted but not complete; wait for `payment_review.closed` or `payment_review.reopened`.

Path parameters

payment_review_idstringRequired

Flint payment review ID.

Request body

add_to_block_listsboolean

Add the payment's card fingerprint, email and IP address to Flint's default block lists, so later payments with any of them are blocked. Values the payment didn't have are skipped. Defaults to false.

Response · 200

Decline a payment review result.

Same response as Get a payment review.

Response · 202

The decline is still canceling or refunding the payment. The review is resolving.

Same response as Get a payment review.

curl -X POST https://api.withflintpay.com/v1/payment-reviews/rev_01KEZF7C00BVBQ00XDFNKB1EF6/decline \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "add_to_block_lists": true
  }'

List risk lists#

GET/v1/risk-lists

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Lists risk lists, newest first, including Flint's default block lists. Archived lists appear only when status includes archived. Default order: created_at descending, then risk_list_id descending.

Query parameters

aliasstring

Exact-match filter on the lowercase list alias. No whitespace or case normalization is applied.

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • active
  • archived
page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.

Response · 200

List risk lists result.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/risk-lists \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List risk lists result.

JSON
{
  "data": [
    {
      "alias": "flagged_emails",
      "archived_at": null,
      "created_at": "2026-09-07T12:00:00Z",
      "created_by": {
        "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
        "resource_type": "api_key"
      },
      "item_count": 2,
      "item_type": "email",
      "name": "Flagged email addresses",
      "origin": "merchant",
      "risk_list_id": "rl_01KEZF7C00VYSERA4QCTJP147A",
      "status": "active",
      "updated_at": "2026-09-07T12:01:00Z",
      "version": 2
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Create a risk list#

POST/v1/risk-listsIdempotent

Requires scope risk.controls.write

Rate limit: write

Creates an empty list. Rules refer to it by alias, which can't be changed or reused, even after the list is archived. item_type decides how values are validated and compared.

Request body

aliasstringRequired

Name rules use to refer to this list: a lowercase letter, then up to 127 lowercase letters, digits, or underscores. It can't be changed after creation.

item_typeenumRequired

Values are trimmed and compared exactly after item-type normalization for deduplication and membership. card_fingerprint is the 32-character hexadecimal value from PaymentMethod.fingerprint and is lowercased; case_sensitive_string preserves case and Unicode composition. string and email are lowercased, with accents preserved. email requires a bare address. email_domain is lowercased, has one final dot removed, and converts internationalized domains to ASCII. ip_address uses canonical IP form, including IPv4-mapped IPv6 conversion to IPv4. country uses uppercase ISO codes. card_bin preserves 6 through 8 digits, including leading zeros, and matches the full value. customer_id preserves the validated ID.

  • card_fingerprint
  • card_bin
  • email
  • email_domain
  • ip_address
  • country
  • customer_id
  • string
  • case_sensitive_string
namestringRequired

Display name of the list.

Response · 201

Create a risk list result.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/risk-lists \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "alias": "flagged_emails",
    "item_type": "email",
    "name": "Flagged email addresses"
  }'

Get a risk list#

GET/v1/risk-lists/{risk_list_id}

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Retrieves a risk list. item_count is its current number of values.

Path parameters

risk_list_idstringRequired

Flint risk list ID.

Response · 200

Get a risk list result.

Same response as Create a risk list.

curl https://api.withflintpay.com/v1/risk-lists/rl_01KEZF7C00VYSERA4QCTJP147A \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Get a risk list result.

JSON
{
  "data": {
    "alias": "flagged_emails",
    "archived_at": null,
    "created_at": "2026-09-07T12:00:00Z",
    "created_by": {
      "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
      "resource_type": "api_key"
    },
    "item_count": 2,
    "item_type": "email",
    "name": "Flagged email addresses",
    "origin": "merchant",
    "risk_list_id": "rl_01KEZF7C00VYSERA4QCTJP147A",
    "status": "active",
    "updated_at": "2026-09-07T12:01:00Z",
    "version": 2
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Update a risk list#

PATCH/v1/risk-lists/{risk_list_id}Idempotent

Requires scope risk.controls.write

Rate limit: write

Renames a list you created. Flint-managed lists fail with `ACTION_NOT_ALLOWED` and reason `managed_externally`. Items can still be added to and removed from active Flint-managed lists.

Path parameters

risk_list_idstringRequired

Flint risk list ID.

Request body

expected_versioninteger

Version last read from the resource returned in `data` (the primary resource for a result object). The write fails with `VERSION_CONFLICT` if it has changed. Requiredness depends on the operation and fields being changed.

namestringRequired

Name of a merchant-created risk list. It can't be cleared.

Response · 200

Update a risk list result.

Same response as Create a risk list.

curl -X PATCH https://api.withflintpay.com/v1/risk-lists/rl_01KEZF7C00VYSERA4QCTJP147A \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "expected_version": 1,
    "name": "Addresses requiring review"
  }'

Retire a risk list#

DELETE/v1/risk-lists/{risk_list_id}Idempotent

Requires scope risk.controls.write

Rate limit: write

Archives a list you created. Fails with `RESOURCE_IN_USE` while an active rule names it. Flint-managed lists fail with `ACTION_NOT_ALLOWED` and reason `managed_externally`. Archived lists can't be used by rules or edited. Items can still be added to and removed from active Flint-managed lists.

Path parameters

risk_list_idstringRequired

Flint risk list ID.

Query parameters

expected_versioninteger

Optional risk list version last read by the caller.

Response · 200

Retire a risk list result.

Same response as Create a risk list.

curl -X DELETE https://api.withflintpay.com/v1/risk-lists/rl_01KEZF7C00VYSERA4QCTJP147A \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List risk list items#

GET/v1/risk-lists/{risk_list_id}/items

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Lists a list's values, newest first. Default order: created_at descending, then risk_list_item_id descending.

Path parameters

risk_list_idstringRequired

Flint risk list ID.

Query parameters

valuestring

Exact-match filter after normalization for the parent list's item_type. Accepts 1 through 512 Unicode characters, following the same normalization as item creation. Commas are literal. Values are trimmed and compared exactly after item-type normalization for deduplication and membership. card_fingerprint is the 32-character hexadecimal value from PaymentMethod.fingerprint and is lowercased; case_sensitive_string preserves case and Unicode composition. string and email are lowercased, with accents preserved. email requires a bare address. email_domain is lowercased, has one final dot removed, and converts internationalized domains to ASCII. ip_address uses canonical IP form, including IPv4-mapped IPv6 conversion to IPv4. country uses uppercase ISO codes. card_bin preserves 6 through 8 digits, including leading zeros, and matches the full value. customer_id preserves the validated ID.

page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.

Response · 200

List risk list items result.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/risk-lists/rl_01KEZF7C00VYSERA4QCTJP147A/items \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List risk list items result.

JSON
{
  "data": [
    {
      "created_at": "2026-09-07T12:01:00Z",
      "created_by": {
        "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
        "resource_type": "api_key"
      },
      "risk_list_id": "rl_01KEZF7C00VYSERA4QCTJP147A",
      "risk_list_item_id": "rli_4QHTGXHN0SQS3XQRVEE94C5320",
      "value": "buyer@example.com"
    },
    {
      "created_at": "2026-09-07T12:01:00Z",
      "created_by": {
        "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
        "resource_type": "api_key"
      },
      "risk_list_id": "rl_01KEZF7C00VYSERA4QCTJP147A",
      "risk_list_item_id": "rli_2TSD4THP8EQSQM3K2QYDDDT7YA",
      "value": "review@example.com"
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Add risk list items#

POST/v1/risk-lists/{risk_list_id}/itemsIdempotent

Requires scope risk.controls.write

Rate limit: write

Adds up to 500 values, each validated and normalized for the list's item_type. The additions array reports each value's outcome: values already on the list come back as existing, so a batch is safe to resend. The response is `201` when at least one value was added and `200` when none were. Payments see the change from the next attempt.

Path parameters

risk_list_idstringRequired

Flint risk list ID.

Request body

valuesarray of stringRequired

Values to add to the risk list, in request order. Values are trimmed and compared exactly after item-type normalization for deduplication and membership. card_fingerprint is the 32-character hexadecimal value from PaymentMethod.fingerprint and is lowercased; case_sensitive_string preserves case and Unicode composition. string and email are lowercased, with accents preserved. email requires a bare address. email_domain is lowercased, has one final dot removed, and converts internationalized domains to ASCII. ip_address uses canonical IP form, including IPv4-mapped IPv6 conversion to IPv4. country uses uppercase ISO codes. card_bin preserves 6 through 8 digits, including leading zeros, and matches the full value. customer_id preserves the validated ID.

Response · 201

At least one requested risk list item was created.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

Response · 200

All requested values matched existing risk list items; nothing was created.

Same attributes as 201.

curl -X POST https://api.withflintpay.com/v1/risk-lists/rl_01KEZF7C00VYSERA4QCTJP147A/items \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "values": [
      "buyer@example.com",
      "review@example.com"
    ]
  }'

Get a risk list item#

GET/v1/risk-lists/{risk_list_id}/items/{risk_list_item_id}

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Retrieves one value on a list.

Path parameters

risk_list_idstringRequired

Flint risk list ID.

risk_list_item_idstringRequired

Flint risk list item ID.

Response · 200

Get a risk list item result.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/risk-lists/rl_01KEZF7C00VYSERA4QCTJP147A/items/rli_01KEZF7C006BND1CJYPAJW9JWE \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Get a risk list item result.

JSON
{
  "data": {
    "created_at": "2026-09-07T12:01:00Z",
    "created_by": {
      "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
      "resource_type": "api_key"
    },
    "risk_list_id": "rl_01KEZF7C00VYSERA4QCTJP147A",
    "risk_list_item_id": "rli_4QHTGXHN0SQS3XQRVEE94C5320",
    "value": "buyer@example.com"
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Delete a risk list item#

DELETE/v1/risk-lists/{risk_list_id}/items/{risk_list_item_id}Idempotent

Requires scope risk.controls.write

Rate limit: write

Removes a value from a list permanently. Payments see the change from the next attempt.

Path parameters

risk_list_idstringRequired

Flint risk list ID.

risk_list_item_idstringRequired

Flint risk list item ID.

Response · 200

Delete a risk list item result.

Same response as Get a risk list item.

curl -X DELETE https://api.withflintpay.com/v1/risk-lists/rl_01KEZF7C00VYSERA4QCTJP147A/items/rli_01KEZF7C006BND1CJYPAJW9JWE \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Create a risk preview#

POST/v1/risk-previews

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Validates a rule without saving anything. Send mode inline with action and predicate to check a draft; add risk_rule_id to check them as an edit to that rule. Send mode stored_rule with risk_rule_id, and no action or predicate, to check the saved rule as it is. Requires risk.read. Rule content issues produce a preview with `is_valid: false`, every issue in order, `analysis` null, and empty `warnings`. A valid rule returns analysis and any warnings about how the change would affect evaluation. List reference issues are reported at the list_alias path. A new rule at the active-rule limit gets a risk_rule_limit_reached warning. A malformed request fails with `INVALID_REQUEST`, and an unknown `risk_rule_id` fails with `RESOURCE_NOT_FOUND`. Proposing a different action or predicate for a Flint default rule fails with `ACTION_NOT_ALLOWED` and reason `managed_externally`.

Request body

Send exactly one of these

The `inline` variant of `CreateRiskPreviewRequest`.

actionenumRequired

What Flint would do with a payment the rule matches.

  • allow
  • block
  • review
  • require_3ds
modeenumRequired

What to check: a rule in this request, or a saved rule.

  • inline
predicateone ofRequired

The condition a payment must meet for the rule to match.

risk_rule_idstring

ID of a saved rule. Send it to check the action and predicate as an edit to that rule.

Response · 200

The proposed rule's validation result.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/risk-previews \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "review",
    "mode": "inline",
    "predicate": {
      "amount_money": {
        "amount": 50000,
        "currency": "USD"
      },
      "attribute": "amount_money",
      "operator": "gt"
    }
  }'

List risk rules#

GET/v1/risk-rules

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Lists risk rules, newest first, including Flint's default rules. By default, includes active and inactive rules. Archived rules appear only when status includes archived. This isn't the order Flint evaluates them in. Default order: created_at descending, then risk_rule_id descending.

Query parameters

statusarray of enum

Filter by status. Omitted, the list leaves out archived rows; name archived to include them. Values are trimmed and deduplicated in first-seen order; empty or unknown entries are rejected. Values within this filter are ORed; separate filters are ANDed.

  • active
  • inactive
  • archived
page_sizeinteger

Maximum number of results to return, from 1 to 100. Defaults to 20.

page_tokenstring

Opaque next_page_token from the previous response. Omit on the first request. You may change `page_size` between pages. Reuse it with the same endpoint, filters, sort, and request context. Do not parse or construct tokens. An invalid, expired, or mismatched token returns a validation error.

Response · 200

List risk rules result.

dataarray of objectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

next_page_tokenstring

Opaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/risk-rules \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

List risk rules result.

JSON
{
  "data": [
    {
      "action": "review",
      "applicability": "all_payments",
      "archived_at": null,
      "attributes_used": [
        "amount_money"
      ],
      "created_at": "2026-09-07T12:00:00Z",
      "created_by": {
        "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
        "resource_type": "api_key"
      },
      "description": "Review payments above USD 500.",
      "issues": [],
      "origin": "merchant",
      "predicate": {
        "amount_money": {
          "amount": 50000,
          "currency": "USD"
        },
        "attribute": "amount_money",
        "operator": "gt"
      },
      "risk_rule_id": "rule_01KEZF7C00FWGAQJXXA8CRA319",
      "stage": "pre_authorization",
      "status": "active",
      "updated_at": "2026-09-07T12:00:00Z",
      "version": 1
    }
  ],
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Create a risk rule#

POST/v1/risk-rulesIdempotent

Requires scope risk.controls.write

Rate limit: write

Creates a rule that applies from the next payment attempt. Flint validates the predicate and checks every list before activating the rule. The rule is active unless you send status: inactive. An environment can have 100 active rules, counting Flint's defaults. To check a draft without saving it, use POST /v1/risk-previews.

Request body

actionenumRequired

What Flint does with a payment the rule matches.

  • allow
  • block
  • review
  • require_3ds
descriptionstringRequired

Your note on what the rule is for.

predicateone ofRequired

The condition a payment must meet for the rule to match.

statusenum

Whether the rule runs.

  • active
  • inactive

Response · 201

Create a risk rule result.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl -X POST https://api.withflintpay.com/v1/risk-rules \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "action": "review",
    "description": "Review payments above USD 500.",
    "predicate": {
      "amount_money": {
        "amount": 50000,
        "currency": "USD"
      },
      "attribute": "amount_money",
      "operator": "gt"
    },
    "status": "active"
  }'

Get a risk rule#

GET/v1/risk-rules/{risk_rule_id}

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Retrieves a risk rule. The issues array lists anything that stops Flint from evaluating it.

Path parameters

risk_rule_idstringRequired

Flint risk rule ID.

Response · 200

Get a risk rule result.

Same response as Create a risk rule.

curl https://api.withflintpay.com/v1/risk-rules/rule_01KEZF7C00FWGAQJXXA8CRA319 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Get a risk rule result.

JSON
{
  "data": {
    "action": "review",
    "applicability": "all_payments",
    "archived_at": null,
    "attributes_used": [
      "amount_money"
    ],
    "created_at": "2026-09-07T12:00:00Z",
    "created_by": {
      "resource_id": "key_01KEZF7C007F5ZGD2ZXDWJGD76",
      "resource_type": "api_key"
    },
    "description": "Review payments above USD 500.",
    "issues": [],
    "origin": "merchant",
    "predicate": {
      "amount_money": {
        "amount": 50000,
        "currency": "USD"
      },
      "attribute": "amount_money",
      "operator": "gt"
    },
    "risk_rule_id": "rule_01KEZF7C00FWGAQJXXA8CRA319",
    "stage": "pre_authorization",
    "status": "active",
    "updated_at": "2026-09-07T12:00:00Z",
    "version": 1
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Update a risk rule#

PATCH/v1/risk-rules/{risk_rule_id}Idempotent

Requires scope risk.controls.write

Rate limit: write

Changes a rule's action, predicate, description, or status, and increases its version. Send expected_version to avoid overwriting another edit. Flint's default rules accept only status. Activating a rule validates it again.

Path parameters

risk_rule_idstringRequired

Flint risk rule ID.

Request body

Send at least one of these

actionenumRequired

What Flint does with a payment the rule matches.

  • allow
  • block
  • review
  • require_3ds
descriptionstring

Your note on what the rule is for.

expected_versioninteger

Optional risk rule version last read by the caller.

predicateone of

The condition a payment must meet for the rule to match.

statusenum

Whether the rule runs.

  • active
  • inactive

Response · 200

Update a risk rule result.

Same response as Create a risk rule.

curl -X PATCH https://api.withflintpay.com/v1/risk-rules/rule_01KEZF7C00FWGAQJXXA8CRA319 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: a-unique-key" \
  -d '{
    "description": "Review payments above USD 750.",
    "expected_version": 1,
    "predicate": {
      "amount_money": {
        "amount": 75000,
        "currency": "USD"
      },
      "attribute": "amount_money",
      "operator": "gt"
    }
  }'

Retire a risk rule#

DELETE/v1/risk-rules/{risk_rule_id}Idempotent

Requires scope risk.controls.write

Rate limit: write

Archives a rule. It stops running at once and can't be changed or restored. Flint's default rules can't be archived; set them inactive instead.

Path parameters

risk_rule_idstringRequired

Flint risk rule ID.

Query parameters

expected_versioninteger

Optional risk rule version last read by the caller.

Response · 200

Retire a risk rule result.

Same response as Create a risk rule.

curl -X DELETE https://api.withflintpay.com/v1/risk-rules/rule_01KEZF7C00FWGAQJXXA8CRA319 \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Get the risk rule attribute registry#

GET/v1/risk-rules/attributes

Requires scope risk.controls.write or risk.read or risk.reviews.write

Rate limit: read

Lists the attributes a predicate can read in this environment, with each one's value type, operators, and the stage it becomes available. An attribute with is_available: false can't be used yet. Payment intent metadata is also readable as payment_intent_metadata.{key}, which isn't listed.

Response · 200

Get the risk rule attribute registry result.

dataobjectRequired

Resource, collection, or operation result returned by this request.

metaobject

Additional information about this response.

request_idstringRequired

Identifier of this API request, used to correlate logs and support requests.

curl https://api.withflintpay.com/v1/risk-rules/attributes \
  -H "Flint-Version: 2026-09-07" \
  -H "Authorization: Bearer YOUR_API_KEY"

Get the risk rule attribute registry result.

JSON
{
  "data": {
    "attributes": [
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": false,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "amount_money",
        "operators": [
          "eq",
          "neq",
          "gt",
          "gte",
          "lt",
          "lte"
        ],
        "value_type": "money"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": false,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "currency",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "currency"
      },
      {
        "available_from": "pre_authorization",
        "enum_values": [
          "amex",
          "discover",
          "diners",
          "jcb",
          "mastercard",
          "unionpay",
          "visa",
          "unknown"
        ],
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "card_brand",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "enum"
      },
      {
        "available_from": "pre_authorization",
        "enum_values": [
          "credit",
          "debit",
          "prepaid",
          "unknown"
        ],
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "card_funding",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "enum"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "card_country",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "country"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "card_bin",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "string"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "card_fingerprint",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "string"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "email",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "email"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "email_domain",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "string"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "ip_address",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "ip_address"
      },
      {
        "available_from": "pre_authorization",
        "is_available": false,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "ip_country",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "unavailable_reason": "ip_geolocation_not_enabled",
        "value_type": "country"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "customer_id",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "string"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": false,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "is_guest",
        "operators": [
          "eq",
          "neq",
          "is_missing"
        ],
        "value_type": "boolean"
      },
      {
        "available_from": "pre_authorization",
        "enum_values": [
          "card",
          "affirm"
        ],
        "is_available": true,
        "is_nullable": false,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "payment_method_type",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "enum"
      },
      {
        "available_from": "pre_authorization",
        "enum_values": [
          "apple_pay",
          "google_pay"
        ],
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "digital_wallet",
        "operators": [
          "eq",
          "neq",
          "in",
          "in_list",
          "is_missing"
        ],
        "value_type": "enum"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": false,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "is_saved_payment_method",
        "operators": [
          "eq",
          "neq",
          "is_missing"
        ],
        "value_type": "boolean"
      },
      {
        "available_from": "pre_authorization",
        "is_available": true,
        "is_nullable": false,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "is_off_session",
        "operators": [
          "eq",
          "neq",
          "is_missing"
        ],
        "value_type": "boolean"
      },
      {
        "available_from": "pre_authorization",
        "enum_values": [
          "checkout",
          "payment_link",
          "invoice",
          "subscription_initial",
          "subscription_renewal",
          "virtual_terminal",
          "api"
        ],
        "is_available": true,
        "is_nullable": false,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "payment_flow",
        "operators": [
          "eq",
          "neq",
          "in"
        ],
        "value_type": "enum"
      },
      {
        "available_from": "post_authorization",
        "is_available": false,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "risk_score",
        "operators": [
          "eq",
          "neq",
          "gt",
          "gte",
          "lt",
          "lte",
          "in",
          "is_missing"
        ],
        "unavailable_reason": "risk_scoring_not_enabled",
        "value_type": "integer"
      },
      {
        "available_from": "post_authorization",
        "enum_values": [
          "normal",
          "elevated",
          "highest",
          "not_assessed"
        ],
        "is_available": true,
        "is_nullable": true,
        "missing_value_behavior": "not_applicable_except_is_missing",
        "name": "risk_level",
        "operators": [
          "eq",
          "neq",
          "in",
          "is_missing"
        ],
        "value_type": "enum"
      }
    ]
  },
  "meta": {
    "api_version": "2026-09-07"
  },
  "request_id": "req_01KWM6WAHG3N9Q8T2V5XRZ7C4D"
}

Was this helpful?