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.
| Object | ID prefix | What it is |
|---|---|---|
| Risk rule | rule_ | An action and a predicate, the condition that decides when the action applies. |
| Risk list | rl_ | A set of values of one item_type, such as emails or card fingerprints. Rules refer to a list by its alias. |
| Risk list item | rli_ | One value on a list. |
| Attribute registry | None | The attributes a predicate can read in this environment, from GET /v1/risk-rules/attributes. |
| Risk preview | None | The result of validating a draft rule, or an edit to a saved one, without saving anything. |
| Payment review | rev_ | A payment that a review rule held for your decision. |
| Fraud warning | frw_ | 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:
action | Stages | When the rule decides |
|---|---|---|
allow | Both | Block and review rules, yours and Flint's, no longer apply to the attempt. require_3ds rules still apply, and the bank can still decline. |
block | Pre-authorization | The attempt fails with payment_blocked before it reaches the bank, so no money moves. A payment Flint couldn't accept after it was sent is a different outcome: canceled, with cancellation_reason payment_returned once Flint returns money it collected or releases the hold. |
require_3ds | Pre-authorization | The bank must authenticate the buyer with 3D Secure. Off-session payments skip it, so these rules report applicability: on_session_only. |
review | Both | The 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:
{
"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/attributeslists each attribute'svalue_type, itsoperators, and the stage it's known from (available_from). A rule can use only attributes withis_available: true, andunavailable_reasonsays why one isn't, such asrisk_scoring_not_enabled. - Payment intent metadata is readable too, as
payment_intent_metadata.followed by the key, for examplepayment_intent_metadata.fulfillment_region. These attributes are strings that takeeq,neq,in, andis_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
neqand anotaround it. To match missing values too, add anis_missingcomparison in ananygroup. - Operands are exact. An
amount_moneycomparison only matches payments in its currency, and Flint accepts only USD today, so write amounts in USD. Countries and currencies are uppercase ISO codes, and arisk_scoreoperand 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:
mode | Send | Checks |
|---|---|---|
inline | action 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_rule | risk_rule_id only | The 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 -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"}
]
}
}'
{
"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 ruleactiveRuns on every payment attempt while itsissuesarray is empty. A new rule starts here unless you send"status": "inactive".inactiveSaved but not running. It doesn't count toward the limit of 100 active rules. Setstatustoactiveto run it again.archivedFinalSet byDELETE /v1/risk-rules/{risk_rule_id}. The rule never runs again and can't be changed or restored, but stays readable by ID.archived_atrecords when.
- Writes accept
activeorinactive. Only a delete archives a rule.GET /v1/risk-rulesreturns active and inactive rules, and archived ones only whenstatusincludesarchived. - 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
statuschanges. They haveorigin: "system_default"andcreated_by: null. Set oneinactiveto turn it off. Flint's default controls says what each one matches. issuesis 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
namecan be edited. item_typedecides validation, normalization, and matching. Flint normalizes each value when you add it, when a payment is compared, and when you filter items withvalue, soGrace@Example.comon anemaillist matchesgrace@example.com. The item type also decides which attributes the list can match: acountrylist matchescard_country, for example. Lists has the table.- Adding values is safe to repeat.
POST /v1/risk-lists/{risk_list_id}/itemstakesvalues, up to 500 at a time. Values already on the list come back withoutcome: "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 alist_archivedissue. - Flint's default lists,
default_block_card_fingerprints,default_block_emails, anddefault_block_ip_addresses, haveorigin: "system_default". They start empty and can't be renamed or archived, but you can add and remove their values. Declining a review withadd_to_block_lists: trueadds 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:
| Request | Where 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.
- 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 reviewopenWaiting for a decision. Approve or decline it.resolvingA decision is being carried out, and the review can't take another.pending_actionisdeclinewhile a decline cancels or refunds the payment, orexpirewhile Flint cancels an authorization nobody resolved in time.closedFinalResolved.closed_reasonsays how, andclosed_bysays 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 with | resource_type | resource_id |
|---|---|---|
| An API key | api_key | The key's key_ ID. A reference can name a key from the other mode. |
| The Dashboard or the Flint CLI | user | The signed-in person's usr_ ID |
| A partner app's token | partner_app_install | The install's pinst_ ID |
Expand related records#
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:
expand | Adds | Also needs |
|---|---|---|
payment_intent | The payment intent summary for payment_intent_id | payments.payment_intents.read |
order | The order summary for order_id | commerce.orders.read |
customer | The customer summary for customer_id | customers.read |
dispute | The full dispute for dispute_id | payments.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 -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#
| Scope | Grants |
|---|---|
risk.read | Every read, and POST /v1/risk-previews |
risk.controls.write | Creating, changing, and archiving rules and lists, and adding and removing list items. Includes risk.read. |
risk.reviews.write | Approving 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#
- payment_
review. opened Areviewrule matched a payment the bank approved. - payment_
review. closed The review closed. Sent once per review, withclosed_reason. - payment_
review. reopened A decline's refund failed, and the review is open again withlast_resolution_failureset. - fraud_
warning. created A card issuer reported fraud on a payment. - fraud_
warning. updated is_actionableordispute_idchanged.
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#
- StatusHTTP 409What to doReason
managed_externally: Flint's default rules accept onlystatuschanges and can't be deleted, and default lists can't be renamed or archived. - StatusHTTP 409What to doReason
archived: the rule or list is archived, including a list that a rule you're activating names. - StatusHTTP 409What to doReason
in_progress: the review isresolving. Read itspending_actionand wait for it to close or reopen. Repeating the decline already running returns its202instead. - StatusHTTP 409What to doReason
terminal_status: the review is already closed. Read it forclosed_reason. - StatusHTTP 409CodeLIMIT_
REACHED What to doReasonenabled_risk_rules: the environment already has 100 active rules, anddetails[0].limitcarries the limit. Set a ruleinactive, or delete one, first. - StatusHTTP 409What to doThe rule or list changed since you read it. Read it again, reapply your change, and resend with the new
expected_versionand a newIdempotency-Key. - StatusHTTP 409CodeRESOURCE_
IN_ USE What to doActive rules still name the list you're archiving.details[0].blocking_resourceslists them asrisk_rulereferences. - StatusHTTP 409What to doCapture was requested before the payment's review was approved. Approve it, then capture.
- StatusHTTP 409What to doA 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
actionenumRequiredWhat Flint does with a payment the rule matches.
allowblockreviewrequire_3ds
applicabilityenumRequiredWhich payments the rule applies to.
all_paymentson_session_only
archived_atstring or nullRequiredRFC3339 timestamp. `null` when the resource isn't archived.
attributes_usedarray of stringRequiredNames of the payment attributes the rule reads.
created_atstringRequiredRFC3339 timestamp.
created_byobject or nullRequiredThe 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.
descriptionstringRequiredYour note on what the rule is for. Leading and trailing whitespace is trimmed.
issuesarray of objectRequiredProblems 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.
originenumRequiredWhether Flint manages the rule or you created it.
system_defaultmerchant
predicateone ofRequiredThe condition a payment must meet for the rule to match.
risk_rule_idstringRequiredID of the saved rule to check.
stageenumRequiredWhen Flint evaluates the rule for a payment.
pre_authorizationpost_authorization
statusenumRequiredWhether the rule runs.
activeinactivearchived
updated_atstringRequiredRFC3339 timestamp.
versionintegerRequiredIncreases on every change to the rule. Send it as expected_version to avoid overwriting someone else's change.
{
"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_01KEZF7C00D9HDEXZ24F5QHX50",
"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_atstringRequiredRFC3339 timestamp.
disputeobject or nullPresent only when `expand` includes `dispute`; `null` when expanded and there is no related dispute.
dispute_idstring or nullRequiredThe dispute that opened on this payment after the warning. `null` when no dispute has opened.
fraud_typeenumRequiredThe kind of fraud the card network reported.
card_never_receivedfraudulent_card_applicationmade_with_counterfeit_cardmade_with_lost_cardmade_with_stolen_cardunauthorized_use_of_cardother
fraud_warning_idstringRequiredUnique identifier for this fraud warning, prefixed `frw_`.
is_actionablebooleanRequiredtrue 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 nullPresent only when `expand` includes `payment_intent`; `null` when expanded and there is no related payment intent.
payment_intent_idstringRequiredID of the payment the warning is about.
payment_summaryobjectRequiredThe payment's amount, buyer email, and card, for recognizing it.
reported_atstringRequiredRFC3339 timestamp.
updated_atstringRequiredRFC3339 timestamp.
{
"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 nullRequiredRFC3339 timestamp. `null` when the review isn't closed.
closed_byobject or nullRequiredThe credential that closed this payment review. Null when Flint closed it.
closed_reasonenum or nullRequiredHow the review was resolved. `null` when the review isn't closed.
approveddeclinedrefundeddisputedpayment_canceledexpirednull
customerobject or nullPresent only when `expand` includes `customer`; `null` when expanded and there is no related customer.
customer_idstring or nullRequiredID of the customer the payment was made for. `null` when the payment has no customer.
ip_addressstring or nullRequiredThe buyer's IP address recorded for the payment when it was confirmed. `null` when no buyer IP address was supplied for the payment.
last_resolution_failureobject or nullRequiredThe 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_idstringRequiredID of the risk rule with the review action that opened this review.
opened_atstringRequiredRFC3339 timestamp.
opened_reasonenumRequiredWhy Flint opened the review.
rule
orderobject or nullPresent only when `expand` includes `order`; `null` when expanded and there is no related order.
order_idstring or nullRequiredID of the order the payment belongs to. `null` when the payment doesn't belong to an order.
payment_flowenumRequiredHow the reviewed payment was started.
checkoutpayment_linkshopinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
payment_intentobject or nullPresent only when `expand` includes `payment_intent`; `null` when expanded and there is no related payment intent.
payment_intent_idstringRequiredID of the payment intent under review.
payment_review_idstringRequiredUnique identifier for this payment review, prefixed `rev_`.
payment_summaryobjectRequiredA snapshot of the payment as it was when the review opened.
pending_actionenum or nullRequiredThe decision being carried out. `null` when status isn't resolving.
approvedeclineexpirenull
refund_idstring or nullRequiredThe refund created when the payment was declined. It can be set while status is resolving, before the refund finishes and the review closes. `null` when no refund exists for the review, including after a decline that needed none or when the review is open.
refunded_moneyobject or nullRequiredRefunded amount for this review. Null when no refund is recorded.
resolution_started_atstring or nullRequiredRFC3339 timestamp. `null` when nobody has started approving or declining the review and Flint hasn't started expiring it.
resolution_started_byobject or nullRequiredThe credential that started resolving this payment review, retained after closure. Null when no resolution has started or Flint started it.
riskobjectRequiredThe payment's risk level and score when the review opened.
statusenumRequiredWhere the review is in its lifecycle.
openresolvingclosed
supported_actionsarray of enumRequiredLifecycle actions accepted in the current stored review state. An action remains listed while it is processing or can be repeated without changing the result.
approvedecline
updated_atstringRequiredRFC3339 timestamp.
{
"closed_at": null,
"closed_by": null,
"closed_reason": null,
"customer_id": "cus_01KEZF7C003ACYXT6Q5EQZ78EE",
"ip_address": null,
"last_resolution_failure": null,
"matched_risk_rule_id": "rule_01KEZF7C00D9HDEXZ24F5QHX50",
"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
aliasstringRequiredName 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 nullRequiredRFC3339 timestamp. `null` when the resource isn't archived.
created_atstringRequiredRFC3339 timestamp.
created_byobject or nullRequiredThe 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_countintegerRequiredNumber of values on the list now.
item_typeenumRequiredValues 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_fingerprintcard_binemailemail_domainip_addresscountrycustomer_idstringcase_sensitive_string
namestringRequiredDisplay name of the list.
originenumRequiredWhether Flint manages the list or the merchant created it.
system_defaultmerchant
risk_list_idstringRequiredUnique identifier for this risk list, prefixed `rl_`.
statusenumRequiredWhether the list can still be used.
activearchived
updated_atstringRequiredRFC3339 timestamp.
versionintegerRequiredVersion of persisted list configuration and item-count changes. External observations do not advance this counter.
{
"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#
/v1/fraud-warningsRequires 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_actionablebooleanFilter by whether a proactive fraudulent refund can still prevent a dispute.
payment_intent_idstringFilter by Flint payment intent ID.
created_afterstringInclusive lower bound on created_at.
created_beforestringExclusive upper bound on created_at.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. 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 altered, invalid, expired, or mismatched token returns a validation error.
expandarray of enumInclude 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.
disputepayment_intent
Response · 200
List early fraud warnings result.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/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_idstringRequiredFlint fraud warning ID. Must be a valid ID with prefix frw_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude 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.
disputepayment_intent
Response · 200
The requested early fraud warning.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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.
{
"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"
}Block signals from a failed payment attempt#
/v1/payment-intents/{payment_intent_id}/attempts/{payment_attempt_id}/block-signalsIdempotentRequires scope risk.controls.write
Rate limit: write
Adds the retained card fingerprint, email, and IP address from a failed or blocked attempt to the default block lists in one transaction. The result names the list item types present after the call. Existing entries are kept. Flint skips missing or unlistable signals and omits IP addresses for virtual-terminal payments. Future payments are checked when the default block rule is active.
Path parameters
payment_intent_idstringRequiredFlint payment intent ID. Must be a valid ID with prefix pi_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
payment_attempt_idstringRequiredFlint attempt ID from the payment intent's failed attempts. Must be a valid ID with prefix pia_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Response · 200
The default block-list item types covered by this request.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier of this API request, used to correlate logs and support requests.
curl -X POST https://api.withflintpay.com/v1/payment-intents/pi_01KEZF7C00G8H9D509YEV22P7R/attempts/pia_01KEZF7C00CGGHWWR7KPCGNJRM/block-signals \
-H "Flint-Version: 2026-09-07" \
-H "Authorization: Bearer YOUR_API_KEY"List payment reviews#
/v1/payment-reviewsRequires 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 enumFilter 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.
openresolvingclosed
risk_levelarray of enumFilter 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.
normalelevatedhighestnot_assessed
payment_flowarray of enumFilter 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.
checkoutpayment_linkshopinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
payment_intent_idstringFilter by Flint payment intent ID.
order_idstringFilter by Flint order ID.
customer_idstringFilter by Flint customer ID.
opened_afterstringInclusive lower bound on opened_at.
opened_beforestringExclusive upper bound on opened_at.
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. 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 altered, invalid, expired, or mismatched token returns a validation error.
expandarray of enumInclude 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.
customerorderpayment_intent
Response · 200
List payment reviews result.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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": "rule_01KEZF7C00D9HDEXZ24F5QHX50",
"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#
/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_idstringRequiredFlint payment review ID. Must be a valid ID with prefix rev_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expandarray of enumInclude 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.
customerorderpayment_intent
Response · 200
The requested payment review.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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.
{
"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": "rule_01KEZF7C00D9HDEXZ24F5QHX50",
"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#
/v1/payment-reviews/{payment_review_id}/approveIdempotentRequires 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_idstringRequiredFlint payment review ID. Must be a valid ID with prefix rev_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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#
/v1/payment-reviews/{payment_review_id}/declineIdempotentRequires 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_idstringRequiredFlint payment review ID. Must be a valid ID with prefix rev_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
add_to_block_listsbooleanAdd 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 · 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#
/v1/risk-listsRequires 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
aliasstringExact-match filter on the lowercase list alias. No whitespace or case normalization is applied.
statusarray of enumFilter 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.
activearchived
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. 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 altered, invalid, expired, or mismatched token returns a validation error.
Response · 200
List risk lists result.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/risk-listsIdempotentRequires 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
aliasstringRequiredName 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_typeenumRequiredValues 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_fingerprintcard_binemailemail_domainip_addresscountrycustomer_idstringcase_sensitive_string
namestringRequiredDisplay name of the list. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
Response · 201
Create a risk list result.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint risk list ID. Must be a valid ID with prefix rl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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.
{
"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#
/v1/risk-lists/{risk_list_id}IdempotentRequires 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_idstringRequiredFlint risk list ID. Must be a valid ID with prefix rl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
expected_versionintegerVersion 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.
namestringRequiredName of a merchant-created risk list. It can't be cleared. Surrounding whitespace is trimmed before length validation. A supplied value cannot be blank; use null where clearing is supported.
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#
/v1/risk-lists/{risk_list_id}IdempotentRequires 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_idstringRequiredFlint risk list ID. Must be a valid ID with prefix rl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expected_versionintegerOptional risk list version last read by the caller.
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#
/v1/risk-lists/{risk_list_id}/itemsRequires 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_idstringRequiredFlint risk list ID. Must be a valid ID with prefix rl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
valuestringExact-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_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. 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 altered, invalid, expired, or mismatched token returns a validation error.
Response · 200
List risk list items result.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/risk-lists/{risk_list_id}/itemsIdempotentRequires 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_idstringRequiredFlint risk list ID. Must be a valid ID with prefix rl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
valuesarray of stringRequiredValues 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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint risk list ID. Must be a valid ID with prefix rl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
risk_list_item_idstringRequiredFlint risk list item ID. Must be a valid ID with prefix rli_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Response · 200
Get a risk list item result.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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.
{
"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#
/v1/risk-lists/{risk_list_id}/items/{risk_list_item_id}IdempotentRequires 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_idstringRequiredFlint risk list ID. Must be a valid ID with prefix rl_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
risk_list_item_idstringRequiredFlint risk list item ID. Must be a valid ID with prefix rli_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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#
/v1/risk-previewsRequires 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, to check the saved rule, optionally overriding action or predicate. An omitted or null override keeps the saved value. 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`.
actionenum or nullRequiredAction to preview. In stored_rule mode, omitted or null keeps the saved action.
allowblockreviewrequire_3dsnull
modeenumRequiredWhat to check: a rule in this request, or a saved rule.
inline
predicateone of or nullRequiredPredicate to preview. In stored_rule mode, omitted or null keeps the saved predicate.
risk_rule_idstringID of a saved rule. Send it to check the action and predicate as an edit to that rule.
The `stored_rule` variant of `CreateRiskPreviewRequest`.
actionenum or nullAction to preview. In stored_rule mode, omitted or null keeps the saved action.
allowblockreviewrequire_3dsnull
modeenumRequiredWhat to check: a rule in this request, or a saved rule.
stored_rule
predicateone of or nullPredicate to preview. In stored_rule mode, omitted or null keeps the saved predicate.
risk_rule_idstringRequiredID of the saved rule to check.
Response · 200
The proposed rule's validation result.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/v1/risk-rulesRequires 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 enumFilter 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.
activeinactivearchived
page_sizeintegerMaximum number of results to return, from 1 to 100. Defaults to 20.
page_tokenstringOpaque, signed next_page_token from the previous response, bound to the list and caller. 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 altered, invalid, expired, or mismatched token returns a validation error.
Response · 200
List risk rules result.
dataarray of objectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
next_page_tokenstringOpaque token to send as `page_token` to retrieve the next page. Omitted when there is no next page.
request_idstringRequiredIdentifier 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.
{
"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_01KEZF7C00D9HDEXZ24F5QHX50",
"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#
/v1/risk-rulesIdempotentRequires 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
actionenumRequiredWhat Flint does with a payment the rule matches.
allowblockreviewrequire_3ds
descriptionstringRequiredYour note on what the rule is for. Limited to 512 characters (Unicode code points). Leading and trailing whitespace is trimmed.
predicateone ofRequiredThe condition a payment must meet for the rule to match.
statusenumWhether the rule runs.
activeinactive
Response · 201
Create a risk rule result.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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#
/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_idstringRequiredFlint risk rule ID. Must be a valid ID with prefix rule_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
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.
{
"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_01KEZF7C00D9HDEXZ24F5QHX50",
"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#
/v1/risk-rules/{risk_rule_id}IdempotentRequires 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_idstringRequiredFlint risk rule ID. Must be a valid ID with prefix rule_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Request body
Send at least one of these
actionenumRequiredWhat Flint does with a payment the rule matches.
allowblockreviewrequire_3ds
descriptionstringYour note on what the rule is for. Limited to 512 characters (Unicode code points). Leading and trailing whitespace is trimmed.
expected_versionintegerOptional risk rule version last read by the caller.
predicateone ofThe condition a payment must meet for the rule to match.
statusenumWhether the rule runs.
activeinactive
actionenumWhat Flint does with a payment the rule matches.
allowblockreviewrequire_3ds
descriptionstringYour note on what the rule is for. Limited to 512 characters (Unicode code points). Leading and trailing whitespace is trimmed.
expected_versionintegerOptional risk rule version last read by the caller.
predicateone ofRequiredThe condition a payment must meet for the rule to match.
statusenumWhether the rule runs.
activeinactive
actionenumWhat Flint does with a payment the rule matches.
allowblockreviewrequire_3ds
descriptionstringRequiredYour note on what the rule is for. Limited to 512 characters (Unicode code points). Leading and trailing whitespace is trimmed.
expected_versionintegerOptional risk rule version last read by the caller.
predicateone ofThe condition a payment must meet for the rule to match.
statusenumWhether the rule runs.
activeinactive
actionenumWhat Flint does with a payment the rule matches.
allowblockreviewrequire_3ds
descriptionstringYour note on what the rule is for. Limited to 512 characters (Unicode code points). Leading and trailing whitespace is trimmed.
expected_versionintegerOptional risk rule version last read by the caller.
predicateone ofThe condition a payment must meet for the rule to match.
statusenumRequiredWhether the rule runs.
activeinactive
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#
/v1/risk-rules/{risk_rule_id}IdempotentRequires 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_idstringRequiredFlint risk rule ID. Must be a valid ID with prefix rule_. Malformed IDs return 400 INVALID_REQUEST with detail INVALID_VALUE; well-formed IDs that do not exist return 404 RESOURCE_NOT_FOUND.
Query parameters
expected_versionintegerOptional risk rule version last read by the caller.
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#
/v1/risk-rules/attributesRequires 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.
dataobjectRequiredResource, collection, or operation result returned by this request.
metaobjectAdditional information about this response.
request_idstringRequiredIdentifier 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.
{
"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": "pre_authorization",
"is_available": true,
"is_nullable": true,
"missing_value_behavior": "not_applicable_except_is_missing",
"name": "payment_link_id",
"operators": [
"eq",
"neq",
"in",
"is_missing"
],
"value_type": "string"
},
{
"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?