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. |
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, so write one comparison per currency you accept. 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.
resource_idstringRequiredPublic Flint ID of the referenced resource.
resource_typeenumRequiredPublic resource kind identified by resource_id, such as payment_intent for a payment.
api_keyapi_request_logbalancebalance_transactionbundlebundle_componentcategorycheckout_sessioncheckout_session_customer_verificationcredit_notecredit_note_allocationcustom_domaincustomercustomer_addresscustomer_deletion_requestcustomer_email_preferencescustomer_sessioncustomer_verificationdelivery_location_setdelivery_methoddelivery_profiledelivery_quotedelivery_ratedelivery_rate_callbackdelivery_revocationdelivery_selectiondelivery_zonedemo_sessiondevicediscountdisputeemail_change_requestenvironment_grantfeedback_reportfileflint_walletflint_wallet_cardfraud_warningfulfillmentfulfillment_eventfulfillment_notificationgift_cardgift_card_funding_dispositiongift_card_loadgift_card_notificationgift_card_redemptiongift_card_transactionimageinventory_adjustmentinventory_allocation_policyinventory_allocation_policy_revisioninventory_countinventory_iteminventory_levelinventory_movementinventory_receiptinventory_reservationinventory_reservation_lineinventory_transferinventory_transfer_lineinvoiceinvoice_delivery_attemptinvoice_late_feeinvoice_line_iteminvoice_manual_paymentinvoice_payment_attemptinvoice_payment_termlocationmerchantmerchant_billing_balancemerchant_billing_entrymerchant_billing_invoicemodifiermodifier_groupmodifier_setorderorder_chargeorder_line_itemorder_line_item_modifierorder_payment_attemptorganizationpackagepackage_itempartner_apppartner_app_credentialpartner_app_installpayment_intentpayment_linkpayment_link_custom_fieldpayment_link_line_itempayment_methodpayment_method_domainpayment_reviewpayoutpayout_destinationpayout_settingsproductproduct_optionproduct_option_valueproduct_variantpromotionpromotion_codepurchase_refund_allocationrefundrefund_allocationrefund_line_item_adjustmentreportreport_downloadreturnreturn_activityreturn_dispositionreturn_inspectionreturn_inspection_line_itemreturn_line_itemreturn_policyreturn_policy_revisionreturn_reasonreturn_receiptreturn_receipt_line_itemreturn_resolutionrisk_listrisk_list_itemrisk_rulesandboxsettingsshipmentsubscriptionsubscription_delivery_migrationsubscription_line_itemsubscription_offersubscription_payment_retrysubscription_plansubscription_plan_line_itemtax_connectiontax_registrationtest_clockuserwebhook_deliverywebhook_endpointwebhook_eventworkload_identity
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.
codeenumRequiredExtensible rule issue code. Accept new codes as they are added. Risk rules and previews share these issue codes; invalid rule writes use the standard error codes.
invalid_predicateinvalid_predicate_nodeinvalid_predicate_groupunknown_predicate_fieldunknown_attributeattribute_unavailableinvalid_operatorinvalid_operandinvalid_list_aliasinvalid_moneyinvalid_rule_actionrule_action_unavailable_at_stagelist_not_foundlist_archivedlist_type_mismatch
messagestringRequiredDescription of the rule issue and how to correct it.
pathstringRequiredPublic request field path, as used by error param: predicate for the root, predicate.all[0].attribute for a nested field, or action.
unavailable_reasonenumWhy an attribute is unavailable. Present only for attribute_unavailable issues.
risk_scoring_not_enabledip_geolocation_not_enabled
originenumRequiredWhether Flint manages the rule or you created it.
system_defaultmerchant
predicateone ofRequiredThe condition a payment must meet for the rule to match.
One of these shapes
The `All` variant of `RiskPredicateNode`.
allarray of one ofRequiredPredicates that must all 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_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_atstringRequiredRFC3339 timestamp.
disputeobject or nullPresent only when `expand` includes `dispute`; `null` when expanded and there is no related dispute.
amount_moneyobjectRequiredAmount in dispute. For a chargeback, this amount left your balance when the case opened; an inquiry moves no money.
can_respond_with_evidencebooleanRequiredWhether this dispute has an evidence response window. It stays true after the window closes or a decision is made. Use is_action_required to know whether a response is needed now.
case_typeenumRequiredKind of case the card network or bank opened. `status` and `is_action_required` say whether a response is needed.
inquirychargebackcomplianceresolutionblockotherbank_return
created_atstringRequiredRFC3339 timestamp.
customerobject or nullPresent only when `expand` includes `customer`; `null` when expanded and there is no related customer.
customer_idstringThe customer on the disputed payment. Absent when the payment has none.
dispute_idstringRequiredStable identifier of the dispute.
evidence_due_atstring or nullRequiredDeadline for submitting evidence. Respond before it when is_action_required is true. `null` when the dispute has no response window, such as a bank return or a case your processor gave no deadline for.
evidence_submission_countintegerRequiredHow many times evidence was submitted for this dispute. 0 until you submit.
fraud_warning_idstringThe fraud warning the card network sent for this payment before the dispute. Absent when there was none.
has_evidencebooleanRequiredWhether evidence is saved for this dispute, submitted or not. In test mode this includes an unsubmitted draft Flint saves when the dispute first needs a response, so it doesn't mean someone started a response. evidence_submission_count says whether evidence was submitted.
is_action_requiredbooleanRequiredTrue when status is needs_response or inquiry_needs_response, can_respond_with_evidence is true, and evidence_due_at hasn't passed. Evaluated when the dispute is read; in a webhook payload, as of when Flint recorded the change. It turns false once evidence_due_at has passed, with no event.
is_evidence_deadline_passedbooleanRequiredWhether evidence_due_at has passed on a dispute with a response window. Always false when can_respond_with_evidence is false. Evaluated when the dispute is read; in a webhook payload, as of when Flint recorded the change. It turns true once evidence_due_at has passed, with no event.
merchant_idstringRequiredID of the merchant this resource belongs to.
orderobject or nullPresent only when `expand` includes `order`; `null` when expanded and there is no related order.
order_idstringID of the order the disputed payment was for. Absent when Flint can't link the dispute to an order.
payment_intentobject or nullPresent only when `expand` includes `payment_intent`; `null` when expanded and there is no related payment intent.
payment_intent_idstringID of the payment intent that took the disputed payment. Absent when Flint can't link the dispute to a payment intent.
payment_optionenum or nullRequiredHow the buyer paid for the disputed payment. `null` when Flint hasn't linked the dispute to a payment intent that records a payment option.
cardapple_paygoogle_payaffirmach_debitnull
reasonenumRequiredWhy the payment was disputed. A reason Flint doesn't recognize is `other`.
fraudulentunrecognizedduplicateproduct_not_receivedproduct_not_as_describedrefund_not_processedsubscription_cancelednoncompliantinsufficient_fundsdebit_not_authorizedbank_account_not_foundother
response_unavailable_reasonenumWhy a response is unavailable when can_respond_with_evidence is false. Absent when no reason is reported. Current values are bank_return_not_contestable and response_window_unavailable. response_window_unavailable means no evidence deadline was supplied.
bank_return_not_contestableresponse_window_unavailable
statusenumRequiredWhere the dispute stands. `needs_response` and `inquiry_needs_response` ask you to respond; `inquiry_closed`, `won`, `lost`, and `prevented` are final.
inquiry_needs_responseinquiry_under_reviewinquiry_closedneeds_responseunder_reviewwonlostpreventedother
status_changed_atstringRecorded time of the current status. On first observation this is the dispute creation time. Later status changes use the provider event time when available, or the time Flint observed the change. This may not be the exact decision or submission time.
supported_actionsarray of enumRequiredLifecycle actions Flint accepts now. Evaluated when the dispute is read; in a webhook payload, as of when Flint recorded the change. It turns empty once evidence_due_at has passed, with no event.
accept
updated_atstringRequiredRFC3339 timestamp.
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.
amount_moneyobjectRequiredThe amount requested from the buyer, including any tip_money. Capturing doesn't change it: after a partial capture it still shows the requested amount, and captured_money shows what was collected. On a standalone payment intent, PATCH can change it only before the first confirmation attempt.
capture_methodenumWhen money is collected. Defaults to automatic.
automaticmanual
created_atstringRFC3339 timestamp.
customer_idstringCustomer linked to this payment intent.
order_idstringOrder this payment intent belongs to. Create it through the order and confirm it with POST /v1/orders/{order_id}/pay. Capture and cancel use POST /v1/payment-intents/{payment_intent_id}/capture or /cancel for every payment intent. Order-owned intents accept PATCH for metadata and external_reference_id.
payment_intent_idstringRequiredFlint payment intent ID.
payment_sourceobjectSummary of the card or bank account used for the payment. Absent until a payment source is attached.
refund_statusenumHow much of captured_money has been refunded, including value issued as store credit, based on refunded_money.
nonepartially_refundedrefunded
statusenumRequiredLifecycle status. requires_payment_method covers both a new payment intent and one whose last attempt failed, so read last_payment_error with it. succeeded, canceled, and expired are final. Refunds and disputes never change status.
requires_payment_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
updated_atstringRFC3339 timestamp.
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
payment_intent_idstringRequiredID of the payment the warning is about.
payment_summaryobjectRequiredThe payment's amount, buyer email, and card, for recognizing it.
amount_moneyobjectRequiredThe payment amount.
emailstringRequiredEmail address the buyer gave for the payment.
last4stringRequiredLast four digits of the card.
payment_method_brandenumRequiredThe card network.
amexdiscoverdinersjcbmastercardunionpayvisaunknown
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.
closed_byobject or nullRequiredThe credential that closed this payment review. Null when Flint closed it.
resource_idstringRequiredPublic Flint ID of the referenced resource.
resource_typeenumRequiredPublic resource kind identified by resource_id, such as payment_intent for a payment.
api_keyapi_request_logbalancebalance_transactionbundlebundle_componentcategorycheckout_sessioncheckout_session_customer_verificationcredit_notecredit_note_allocationcustom_domaincustomercustomer_addresscustomer_deletion_requestcustomer_email_preferencescustomer_sessioncustomer_verificationdelivery_location_setdelivery_methoddelivery_profiledelivery_quotedelivery_ratedelivery_rate_callbackdelivery_revocationdelivery_selectiondelivery_zonedemo_sessiondevicediscountdisputeemail_change_requestenvironment_grantfeedback_reportfileflint_walletflint_wallet_cardfraud_warningfulfillmentfulfillment_eventfulfillment_notificationgift_cardgift_card_funding_dispositiongift_card_loadgift_card_notificationgift_card_redemptiongift_card_transactionimageinventory_adjustmentinventory_allocation_policyinventory_allocation_policy_revisioninventory_countinventory_iteminventory_levelinventory_movementinventory_receiptinventory_reservationinventory_reservation_lineinventory_transferinventory_transfer_lineinvoiceinvoice_delivery_attemptinvoice_late_feeinvoice_line_iteminvoice_manual_paymentinvoice_payment_attemptinvoice_payment_termlocationmerchantmerchant_billing_balancemerchant_billing_entrymerchant_billing_invoicemodifiermodifier_groupmodifier_setorderorder_chargeorder_line_itemorder_line_item_modifierorder_payment_attemptorganizationpackagepackage_itempartner_apppartner_app_credentialpartner_app_installpayment_intentpayment_linkpayment_link_custom_fieldpayment_link_line_itempayment_methodpayment_method_domainpayment_reviewpayoutpayout_destinationpayout_settingsproductproduct_optionproduct_option_valueproduct_variantpromotionpromotion_codepurchase_refund_allocationrefundrefund_allocationrefund_line_item_adjustmentreportreport_downloadreturnreturn_activityreturn_dispositionreturn_inspectionreturn_inspection_line_itemreturn_line_itemreturn_policyreturn_policy_revisionreturn_reasonreturn_receiptreturn_receipt_line_itemreturn_resolutionrisk_listrisk_list_itemrisk_rulesandboxsettingsshipmentsubscriptionsubscription_delivery_migrationsubscription_line_itemsubscription_offersubscription_payment_retrysubscription_plansubscription_plan_line_itemtax_connectiontax_registrationtest_clockuserwebhook_deliverywebhook_endpointwebhook_eventworkload_identity
closed_reasonenum or nullRequiredapproveddeclinedrefundeddisputedpayment_canceledexpirednull
customerobject or nullPresent only when `expand` includes `customer`; `null` when expanded and there is no related customer.
created_atstringRFC3339 timestamp.
customer_idstringRequiredUnique identifier for this customer, prefixed `cus_`.
emailstring or nullRequiredCustomer email. `null` when the customer has none. Unique among the environment's customers.
namestring or nullRequiredCustomer name. `null` when none is set.
phonestring or nullRequiredCustomer phone number. `null` when none is set.
statusenumRequiredWhere the customer is in the deletion lifecycle.
activedeletion_processingdeleted
updated_atstringRFC3339 timestamp.
customer_idstring or nullRequiredip_addressstring or nullRequiredlast_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.
failed_atstringRequiredRFC3339 timestamp.
refund_idstringRequiredmatched_risk_rule_idstring or nullRequiredopened_atstringRequiredRFC3339 timestamp.
opened_reasonenumRequiredrule
orderobject or nullPresent only when `expand` includes `order`; `null` when expanded and there is no related order.
buyer_contactobjectBuyer contact recorded on the order, including guest contact when retained. Omitted when the order has no recorded contact.
closed_atstringWhen the order closed. Present exactly when status is closed. Set once at the transition and never changed.
closed_reasonenumWhy the order closed. Present exactly when status is closed. Set once at closure. Unrecognized reasons are returned as other; new values may be added.
paidclosed_by_merchantcheckout_expiredwritten_offsupersededreturn_resolution_canceledother
created_atstringWhen the order was created, in RFC3339 format.
customer_idstringCustomer associated with the order, when one is set.
deferred_promotionsarray of objectRequiredPromotions accepted at subscription signup. They attach when the subscription is provisioned and first discount its first charged cycle. They do not discount this order and are separate from discounts and order totals. Always present; empty when no promotions are deferred.
fulfillment_statusenumAggregate progress across the order's fulfillment quantities.
not_fulfilledpartially_fulfilledfulfilledcancelednot_applicableclosed
governing_delivery_selection_idstring or nullRequiredID of the delivery selection that governs this order. Null when no selection governs the order.
order_idstringRequiredStable identifier of the expanded order.
order_numberstringHuman-readable order number for receipts and merchant reference.
payment_intent_idsarray of stringPayment intents associated with the order.
payment_statusenumRequiredCollection progress. An invoice write-off also completes collection without receiving the written-off amount.
unpaidpartially_paidpaid
pricing_amountsobjectRequiredOrder totals before accounting for collected payments and refunds.
refund_statusenumRequiredRefund progress for collected money.
nonepartially_refundedrefunded
settlement_amountsobjectRequiredPayments, refunds, credits, and amounts still owed for the order.
statusenumRequiredWhether the order still accepts changes and new payments. Refunds, fulfillment, disputes, returns, and metadata or note edits continue on a closed order.
openclosed
updated_atstringWhen the order was last updated, in RFC3339 format.
order_idstring or nullRequiredpayment_flowenumRequiredcheckoutpayment_linkinvoicesubscription_initialsubscription_renewalvirtual_terminalapi
payment_intentobject or nullPresent only when `expand` includes `payment_intent`; `null` when expanded and there is no related payment intent.
amount_moneyobjectRequiredThe amount requested from the buyer, including any tip_money. Capturing doesn't change it: after a partial capture it still shows the requested amount, and captured_money shows what was collected. On a standalone payment intent, PATCH can change it only before the first confirmation attempt.
capture_methodenumWhen money is collected. Defaults to automatic.
automaticmanual
created_atstringRFC3339 timestamp.
customer_idstringCustomer linked to this payment intent.
order_idstringOrder this payment intent belongs to. Create it through the order and confirm it with POST /v1/orders/{order_id}/pay. Capture and cancel use POST /v1/payment-intents/{payment_intent_id}/capture or /cancel for every payment intent. Order-owned intents accept PATCH for metadata and external_reference_id.
payment_intent_idstringRequiredFlint payment intent ID.
payment_sourceobjectSummary of the card or bank account used for the payment. Absent until a payment source is attached.
refund_statusenumHow much of captured_money has been refunded, including value issued as store credit, based on refunded_money.
nonepartially_refundedrefunded
statusenumRequiredLifecycle status. requires_payment_method covers both a new payment intent and one whose last attempt failed, so read last_payment_error with it. succeeded, canceled, and expired are final. Refunds and disputes never change status.
requires_payment_methodrequires_confirmationrequires_actionprocessingrequires_capturecanceledsucceededexpired
updated_atstringRFC3339 timestamp.
versionintegerRequiredPersisted version of this resource's owned state. Expanded resources and external observations can change independently.
payment_intent_idstringRequiredpayment_review_idstringRequiredUnique identifier for this payment review, prefixed `rev_`.
payment_summaryobjectRequiredThe payment details shown on a review: amount, capture method, authorization expiry, card brand and last four digits, and buyer email.
amount_moneyobjectRequiredMonetary amount represented as integer minor units plus an ISO 4217 currency code.
authorization_expires_atstring or nullRequiredRFC3339 timestamp.
capture_methodenumRequiredautomaticmanual
emailstringRequiredlast4stringRequiredpayment_method_brandenumRequiredamexdiscoverdinersjcbmastercardunionpayvisaunknown
pending_actionenum or nullRequiredThe decision being carried out. `null` when status isn't resolving.
approvedeclineexpirenull
refund_idstring or nullRequiredThe refund that closed this review. Null otherwise.
refunded_moneyobject or nullRequiredRefunded amount for this review. Null when no refund is recorded.
amountintegerRequiredAmount in the currency's minor unit, such as cents for USD.
currencystringRequiredISO 4217 currency code for this amount.
resolution_started_atstring or nullRequiredRFC3339 timestamp.
resolution_started_byobject or nullRequiredThe credential that started resolving this payment review. Null when Flint started it.
resource_idstringRequiredPublic Flint ID of the referenced resource.
resource_typeenumRequiredPublic resource kind identified by resource_id, such as payment_intent for a payment.
api_keyapi_request_logbalancebalance_transactionbundlebundle_componentcategorycheckout_sessioncheckout_session_customer_verificationcredit_notecredit_note_allocationcustom_domaincustomercustomer_addresscustomer_deletion_requestcustomer_email_preferencescustomer_sessioncustomer_verificationdelivery_location_setdelivery_methoddelivery_profiledelivery_quotedelivery_ratedelivery_rate_callbackdelivery_revocationdelivery_selectiondelivery_zonedemo_sessiondevicediscountdisputeemail_change_requestenvironment_grantfeedback_reportfileflint_walletflint_wallet_cardfraud_warningfulfillmentfulfillment_eventfulfillment_notificationgift_cardgift_card_funding_dispositiongift_card_loadgift_card_notificationgift_card_redemptiongift_card_transactionimageinventory_adjustmentinventory_allocation_policyinventory_allocation_policy_revisioninventory_countinventory_iteminventory_levelinventory_movementinventory_receiptinventory_reservationinventory_reservation_lineinventory_transferinventory_transfer_lineinvoiceinvoice_delivery_attemptinvoice_late_feeinvoice_line_iteminvoice_manual_paymentinvoice_payment_attemptinvoice_payment_termlocationmerchantmerchant_billing_balancemerchant_billing_entrymerchant_billing_invoicemodifiermodifier_groupmodifier_setorderorder_chargeorder_line_itemorder_line_item_modifierorder_payment_attemptorganizationpackagepackage_itempartner_apppartner_app_credentialpartner_app_installpayment_intentpayment_linkpayment_link_custom_fieldpayment_link_line_itempayment_methodpayment_method_domainpayment_reviewpayoutpayout_destinationpayout_settingsproductproduct_optionproduct_option_valueproduct_variantpromotionpromotion_codepurchase_refund_allocationrefundrefund_allocationrefund_line_item_adjustmentreportreport_downloadreturnreturn_activityreturn_dispositionreturn_inspectionreturn_inspection_line_itemreturn_line_itemreturn_policyreturn_policy_revisionreturn_reasonreturn_receiptreturn_receipt_line_itemreturn_resolutionrisk_listrisk_list_itemrisk_rulesandboxsettingsshipmentsubscriptionsubscription_delivery_migrationsubscription_line_itemsubscription_offersubscription_payment_retrysubscription_plansubscription_plan_line_itemtax_connectiontax_registrationtest_clockuserwebhook_deliverywebhook_endpointwebhook_eventworkload_identity
riskobjectRequiredThe risk assessment shown on a review: a `level` and, when available, a numeric `score`.
levelenumRequirednormalelevatedhighestnot_assessed
scoreintegerFraud score from the card processor's screening, from 0 to 99. Higher means riskier. Absent when no score is available, which isn't a score of 0.
statusenumRequiredopenresolvingclosed
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": 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
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.
resource_idstringRequiredPublic Flint ID of the referenced resource.
resource_typeenumRequiredPublic resource kind identified by resource_id, such as payment_intent for a payment.
api_keyapi_request_logbalancebalance_transactionbundlebundle_componentcategorycheckout_sessioncheckout_session_customer_verificationcredit_notecredit_note_allocationcustom_domaincustomercustomer_addresscustomer_deletion_requestcustomer_email_preferencescustomer_sessioncustomer_verificationdelivery_location_setdelivery_methoddelivery_profiledelivery_quotedelivery_ratedelivery_rate_callbackdelivery_revocationdelivery_selectiondelivery_zonedemo_sessiondevicediscountdisputeemail_change_requestenvironment_grantfeedback_reportfileflint_walletflint_wallet_cardfraud_warningfulfillmentfulfillment_eventfulfillment_notificationgift_cardgift_card_funding_dispositiongift_card_loadgift_card_notificationgift_card_redemptiongift_card_transactionimageinventory_adjustmentinventory_allocation_policyinventory_allocation_policy_revisioninventory_countinventory_iteminventory_levelinventory_movementinventory_receiptinventory_reservationinventory_reservation_lineinventory_transferinventory_transfer_lineinvoiceinvoice_delivery_attemptinvoice_late_feeinvoice_line_iteminvoice_manual_paymentinvoice_payment_attemptinvoice_payment_termlocationmerchantmerchant_billing_balancemerchant_billing_entrymerchant_billing_invoicemodifiermodifier_groupmodifier_setorderorder_chargeorder_line_itemorder_line_item_modifierorder_payment_attemptorganizationpackagepackage_itempartner_apppartner_app_credentialpartner_app_installpayment_intentpayment_linkpayment_link_custom_fieldpayment_link_line_itempayment_methodpayment_method_domainpayment_reviewpayoutpayout_destinationpayout_settingsproductproduct_optionproduct_option_valueproduct_variantpromotionpromotion_codepurchase_refund_allocationrefundrefund_allocationrefund_line_item_adjustmentreportreport_downloadreturnreturn_activityreturn_dispositionreturn_inspectionreturn_inspection_line_itemreturn_line_itemreturn_policyreturn_policy_revisionreturn_reasonreturn_receiptreturn_receipt_line_itemreturn_resolutionrisk_listrisk_list_itemrisk_rulesandboxsettingsshipmentsubscriptionsubscription_delivery_migrationsubscription_line_itemsubscription_offersubscription_payment_retrysubscription_plansubscription_plan_line_itemtax_connectiontax_registrationtest_clockuserwebhook_deliverywebhook_endpointwebhook_eventworkload_identity
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 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 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.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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"
}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_linkinvoicesubscription_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 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 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.
closed_atstring or nullRequiredRFC3339 timestamp.
closed_byobject or nullRequiredThe credential that closed this payment review. Null when Flint closed it.
closed_reasonenum or nullRequiredapproveddeclinedrefundeddisputedpayment_canceledexpirednull
customerobject or nullPresent only when `expand` includes `customer`; `null` when expanded and there is no related customer.
customer_idstring or nullRequiredip_addressstring or nullRequiredlast_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_idstring or nullRequiredopened_atstringRequiredRFC3339 timestamp.
opened_reasonenumRequiredrule
orderobject or nullPresent only when `expand` includes `order`; `null` when expanded and there is no related order.
order_idstring or nullRequiredpayment_flowenumRequiredcheckoutpayment_linkinvoicesubscription_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_idstringRequiredpayment_review_idstringRequiredUnique identifier for this payment review, prefixed `rev_`.
payment_summaryobjectRequiredThe payment details shown on a review: amount, capture method, authorization expiry, card brand and last four digits, and buyer email.
pending_actionenum or nullRequiredThe decision being carried out. `null` when status isn't resolving.
approvedeclineexpirenull
refund_idstring or nullRequiredThe refund that closed this review. Null otherwise.
refunded_moneyobject or nullRequiredRefunded amount for this review. Null when no refund is recorded.
resolution_started_atstring or nullRequiredRFC3339 timestamp.
resolution_started_byobject or nullRequiredThe credential that started resolving this payment review. Null when Flint started it.
riskobjectRequiredThe risk assessment shown on a review: a `level` and, when available, a numeric `score`.
statusenumRequiredopenresolvingclosed
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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": 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#
/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.
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.
closed_atstring or nullRequiredRFC3339 timestamp.
closed_byobject or nullRequiredThe credential that closed this payment review. Null when Flint closed it.
closed_reasonenum or nullRequiredapproveddeclinedrefundeddisputedpayment_canceledexpirednull
customerobject or nullPresent only when `expand` includes `customer`; `null` when expanded and there is no related customer.
customer_idstring or nullRequiredip_addressstring or nullRequiredlast_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_idstring or nullRequiredopened_atstringRequiredRFC3339 timestamp.
opened_reasonenumRequiredrule
orderobject or nullPresent only when `expand` includes `order`; `null` when expanded and there is no related order.
order_idstring or nullRequiredpayment_flowenumRequiredcheckoutpayment_linkinvoicesubscription_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_idstringRequiredpayment_review_idstringRequiredUnique identifier for this payment review, prefixed `rev_`.
payment_summaryobjectRequiredThe payment details shown on a review: amount, capture method, authorization expiry, card brand and last four digits, and buyer email.
pending_actionenum or nullRequiredThe decision being carried out. `null` when status isn't resolving.
approvedeclineexpirenull
refund_idstring or nullRequiredThe refund that closed this review. Null otherwise.
refunded_moneyobject or nullRequiredRefunded amount for this review. Null when no refund is recorded.
resolution_started_atstring or nullRequiredRFC3339 timestamp.
resolution_started_byobject or nullRequiredThe credential that started resolving this payment review. Null when Flint started it.
riskobjectRequiredThe risk assessment shown on a review: a `level` and, when available, a numeric `score`.
statusenumRequiredopenresolvingclosed
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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": 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#
/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.
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.
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 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 objectRequiredResource, collection, or operation result returned by this request.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
Response · 201
Create a risk list result.
dataobjectRequiredResource, collection, or operation result returned by this request.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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.
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.
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.
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.
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 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 objectRequiredResource, collection, or operation result returned by this request.
created_atstringRequiredRFC3339 timestamp.
created_byobject or nullRequiredThe credential that created this list item. Null when Flint created it. The reference may name an API key in the other mode.
risk_list_idstringRequiredID of the risk list this value is on.
risk_list_item_idstringRequiredUnique identifier for this risk list item, prefixed `rli_`.
valuestringRequiredThe value as stored after item_type normalization, which is what payments are matched against.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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.
additionsarray of objectRequiredOne entry for each value you sent, in request order.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
risk_list_item_idstringRequiredFlint risk list item ID.
Response · 200
Get a risk list item result.
dataobjectRequiredResource, collection, or operation result returned by this request.
created_atstringRequiredRFC3339 timestamp.
created_byobject or nullRequiredThe credential that created this list item. Null when Flint created it. The reference may name an API key in the other mode.
risk_list_idstringRequiredID of the risk list this value is on.
risk_list_item_idstringRequiredUnique identifier for this risk list item, prefixed `rli_`.
valuestringRequiredThe value as stored after item_type normalization, which is what payments are matched against.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
risk_list_item_idstringRequiredFlint risk list item ID.
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, 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`.
actionenumRequiredWhat Flint would do with a payment the rule matches.
allowblockreviewrequire_3ds
modeenumRequiredWhat to check: a rule in this request, or a saved rule.
inline
predicateone ofRequiredThe condition a payment must meet for the rule to match.
Send exactly one of these
The `All` variant of `RiskPredicateNode`.
allarray of one ofRequiredPredicates that must all match.
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`.
modeenumRequiredWhat to check: a rule in this request, or a saved rule.
stored_rule
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.
analysisobject or nullRequiredRule analysis. Null when the proposed rule is invalid.
is_validbooleanRequiredWhether the proposed rule is valid.
issuesarray of objectRequiredEvery rule validation issue in validation order. Empty when the rule is valid.
warningsarray of objectRequiredAdvisory warnings. Empty when the proposed rule is invalid.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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 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 objectRequiredResource, collection, or operation result returned by this request.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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_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#
/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.
predicateone ofRequiredThe condition a payment must meet for the rule to match.
Send exactly one of these
The `All` variant of `RiskPredicateNode`.
allarray of one ofRequiredPredicates that must all match.
statusenumWhether the rule runs.
activeinactive
Response · 201
Create a risk rule result.
dataobjectRequiredResource, collection, or operation result returned by this request.
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.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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.
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_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#
/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.
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.
expected_versionintegerOptional risk rule version last read by the caller.
predicateone ofThe condition a payment must meet for the rule to match.
Send exactly one of these
The `All` variant of `RiskPredicateNode`.
allarray of one ofRequiredPredicates that must all 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.
expected_versionintegerOptional risk rule version last read by the caller.
predicateone ofRequiredThe condition a payment must meet for the rule to match.
Send exactly one of these
The `All` variant of `RiskPredicateNode`.
allarray of one ofRequiredPredicates that must all 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.
expected_versionintegerOptional risk rule version last read by the caller.
predicateone ofThe condition a payment must meet for the rule to match.
Send exactly one of these
The `All` variant of `RiskPredicateNode`.
allarray of one ofRequiredPredicates that must all 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.
expected_versionintegerOptional risk rule version last read by the caller.
predicateone ofThe condition a payment must meet for the rule to match.
Send exactly one of these
The `All` variant of `RiskPredicateNode`.
allarray of one ofRequiredPredicates that must all 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.
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.
attributesarray of objectRequiredThe attributes a risk rule can test.
metaobjectAdditional information about this response.
api_versionstringAPI version used to produce this response.
idempotency_replayedbooleanWhether this response replays a stored result for the supplied Idempotency-Key.
trace_idstringTrace identifier to include when contacting Flint about this request.
warningsarray of objectConditions that need attention even though the request succeeded.
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": "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?
