Sample - Stripe API
GET/v1/radar/early_fraud_warnings

List early fraud warnings

Lists early fraud warnings associated with charges and PaymentIntents. Use charge or payment_intent to filter results, and use cursor parameters to retrieve adjacent pages ordered by the API. Set limit to control page size; it defaults to 10 and accepts values from 1 to 100.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

7 parameters
chargestringoptional
Filter results to the early fraud warning for the specified charge ID.
createdobjectoptional
Filter by creation time using a Unix timestamp or a range with `gt`, `gte`, `lt`, or `lte`.
ending_beforestringoptional
Object ID cursor that returns results before the specified item.
expandarray<string>optional
Fields to expand in each returned object.
limitintegeroptional
Maximum number of objects to return, from 1 to 100. Defaults to 10 when omitted.
payment_intentstringoptional
Filter results to charges created by the specified PaymentIntent ID.
starting_afterstringoptional
Object ID cursor that returns results after the specified item.

2 status codes
200Returns a list object containing early fraud warning objects in `data`, a `has_more` pagination flag, the `list` object type, and the resource `url`.
dataarray<EarlyFraudWarning>required
has_morebooleanrequired
True if this list has another page of items after this one that can be fetched.
objectstringrequired
String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
Allowed:list
urlstringrequired
The URL where this list can be accessed.
defaultError response.
errorobjectrequired

Error handling

limit must be between 1 and 100, and ending_before and starting_after must be object ID cursors when supplied. Use created as a Unix timestamp or a range with gt, gte, lt, or lte; charge and payment_intent identify the resources used for filtering.