Skip to content

Stripe: List all early fraud warnings

Stripe radar.getRadarEarlyFraudWarnings: arguments, response, policy and SDK examples.

← Radar operations · Get started

Operation stripe.getradarearlyfraudwarnings

Provider route: GET /v1/radar/early_fraud_warnings. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/stripe with npm, or alter-sdk-stripe with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { StripeIntegration } from "@alter-ai/stripe";
async function execute(input: Parameters<StripeIntegration["radar"]["getRadarEarlyFraudWarnings"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new StripeIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.radar.getRadarEarlyFraudWarnings(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_stripe import StripeIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = StripeIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.radar.get_radar_early_fraud_warnings(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.chargestringOptional
query.createdJSONOptional
query.created (anyOf 1)objectAlternative
query.created (anyOf 1).gtintegerOptional
query.created (anyOf 1).gteintegerOptional
query.created (anyOf 1).ltintegerOptional
query.created (anyOf 1).lteintegerOptional
query.created (anyOf 2)integerAlternative
query.ending_beforestringOptionalMaximum length: 5000
query.expandarrayOptional
query.expand[]stringEach itemMaximum length: 5000
query.limitintegerOptional
query.payment_intentstringOptionalMaximum length: 5000
query.starting_afterstringOptionalMaximum length: 5000

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$objectRoot
dataarrayRequired within parent
data[]ModelEach itemExpand Retrieve an early fraud warning — response body
has_morebooleanRequired within parentTrue if this list has another page of items after this one that can be fetched.
objectstringRequired within parentString representing the object’s type. Objects of the same type share the same value. Always has the value `list`.
Known values: list
urlstringRequired within parentThe URL where this list can be accessed.
Maximum length: 5000
Pattern: ^/v1/radar/early_fraud_warnings

Referenced models: Retrieve an early fraud warning — response body

704 more schemas are linked from the tables above, on the schema pages.

Retrieve an early fraud warning — response body
FieldTypePresenceDescription and constraints
$objectRootAn early fraud warning indicates that the card issuer has notified us that a
charge may be fraudulent.

Related guide: [Early fraud warnings](https://docs.stripe.com/disputes/measuring#early-fraud-warnings)
actionablebooleanRequired within parentAn EFW is actionable if it has not received a dispute and has not been fully refunded. You may wish to proactively refund a charge that receives an EFW, in order to avoid receiving a dispute later.
chargeJSONRequired within parentID of the charge this early fraud warning is for, optionally expanded.
charge (anyOf 1)stringAlternativeMaximum length: 5000
charge (anyOf 2)ModelAlternativeExpand Create a charge — response body
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
fraud_typestringRequired within parentThe type of fraud labelled by the issuer. One of `card_never_received`, `fraudulent_card_application`, `made_with_counterfeit_card`, `made_with_lost_card`, `made_with_stolen_card`, `misc`, `unauthorized_use_of_card`.
Maximum length: 5000
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: radar.early_fraud_warning
payment_intentJSONOptionalID of the Payment Intent this early fraud warning is for, optionally expanded.
payment_intent (anyOf 1)stringAlternativeMaximum length: 5000
payment_intent (anyOf 2)ModelAlternativeExpand Cancel a Payment Intent — response body

Referenced models: Create a charge — response body, Cancel a Payment Intent — response body

PostApplicationFeesIdRefund — response body — application / object: application
FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
nameJSONOptional
name (anyOf 1)stringAlternativeThe name of the application.
Maximum length: 5000
name (anyOf 2)nullAlternative
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: application
Post Application Fees Id Refund — response body
FieldTypePresenceDescription and constraints
$objectRoot
accountJSONRequired within parentID of the Stripe account this fee was taken from.
account (anyOf 1)stringAlternativeMaximum length: 5000
account (anyOf 2)ModelAlternativeExpand Create an account — response body
amountJSONRequired within parent
amount (anyOf 1)integerAlternativeAmount earned, in cents (or local equivalent).
amount (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
amount_refundedJSONRequired within parent
amount_refunded (anyOf 1)integerAlternativeAmount in cents (or local equivalent) refunded (can be less than the amount attribute on the fee if a partial refund was issued)
amount_refunded (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
applicationJSONRequired within parentID of the Connect application that earned the fee.
application (anyOf 1)stringAlternativeMaximum length: 5000
application (anyOf 2)ModelAlternativeExpand PostApplicationFeesIdRefund — response body — application / object: application
balance_transactionJSONOptional
balance_transaction (anyOf 1)JSONAlternativeBalance transaction that describes the impact of this collected application fee on your account balance (not including refunds).
balance_transaction (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
balance_transaction (anyOf 1) (anyOf 2)ModelAlternativeExpand Retrieve a balance transaction — balance get Balance History Id — response body
balance_transaction (anyOf 2)nullAlternative
chargeJSONRequired within parentID of the charge that the application fee was taken from.
charge (anyOf 1)stringAlternativeMaximum length: 5000
charge (anyOf 2)ModelAlternativeExpand Create a charge — response body
createdJSONRequired within parent
created (anyOf 1)integerAlternativeTime at which the object was created. Measured in seconds since the Unix epoch.
Format: unix-time
created (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
currencystringRequired within parentThree-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Format: currency
fee_sourceJSONOptional
fee_source (anyOf 1)JSONAlternativePolymorphic source of the application fee. Includes the ID of the object the application fee was created from.
fee_source (anyOf 1) (anyOf 1)ModelAlternativeExpand PostApplicationFeesIdRefund — response body — fee_source / value / type: charge, payout
fee_source (anyOf 2)nullAlternative
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
livemodebooleanRequired within parentIf the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: application_fee
originating_transactionJSONOptional
originating_transaction (anyOf 1)JSONAlternativeID of the corresponding charge on the platform account, if this fee was the result of a charge using the `destination` parameter.
originating_transaction (anyOf 1) (anyOf 1)stringAlternativeMaximum length: 5000
originating_transaction (anyOf 1) (anyOf 2)ModelAlternativeExpand Create a charge — response body
originating_transaction (anyOf 2)nullAlternative
refundedbooleanRequired within parentWhether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false.
refundsobjectRequired within parentA list of refunds that have been applied to the fee.
refunds.dataarrayRequired within parentDetails about each object.
refunds.data[]ModelEach itemExpand Create an application fee refund — response body
refunds.has_morebooleanRequired within parentTrue if this list has another page of items after this one that can be fetched.
refunds.objectstringRequired within parentString representing the object's type. Objects of the same type share the same value. Always has the value `list`.
Known values: list
refunds.urlstringRequired within parentThe URL where this list can be accessed.
Maximum length: 5000

Referenced models: Create an account — response body, PostApplicationFeesIdRefund — response body — application / object: application, Retrieve a balance transaction — balance get Balance History Id — response body, Create a charge — response body, Create an application fee refund — response body, PostApplicationFeesIdRefund — response body — fee_source / value / type: charge, payout

Create a charge — response body — fraud details Information on fraud assessments for the charge stripe report, user report
FieldTypePresenceDescription and constraints
$objectRoot
stripe_reportstringOptionalAssessments from Stripe. If set, the value is `fraudulent`.
Maximum length: 5000
user_reportstringOptionalAssessments reported by you. If set, possible values of are `safe` and `fraudulent`.
Maximum length: 5000
Delete a customer — response body
FieldTypePresenceDescription and constraints
$objectRoot
deletedbooleanRequired within parentAlways true for a deleted object
Known values: True
idstringRequired within parentUnique identifier for the object.
Maximum length: 5000
objectstringRequired within parentString representing the object's type. Objects of the same type share the same value.
Known values: customer
Create a Payment Method — response body — zip
FieldTypePresenceDescription and constraints
$objectRoot

SDK function policy ID: stripe.getradarearlyfraudwarnings. Catalog operation: GetRadarEarlyFraudWarnings. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Pinned headers: {"Stripe-Version": "2026-09-30.endive"}

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.