Sample - Stripe API
GET/v1/setup_intents

List SetupIntents

Lists SetupIntents and supports filtering by customer, account, payment method, and creation time. Use limit with cursor parameters to paginate the results, and use attach_to_self only for supported in-context account money movement flows.

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

9 parameters
attach_to_selfbooleanoptional
When present, requests attachment to the in-context Stripe Account for supported inbound or outbound money movement flows; defaults to false when attaching a PaymentMethod to a Customer.
createdobjectoptional
Filters SetupIntents by creation time using an integer Unix timestamp or a range with `gt`, `gte`, `lt`, or `lte`.
customerstringoptional
Filters results to SetupIntents associated with the specified Customer identifier, up to 5000 characters.
customer_accountstringoptional
Filters results to SetupIntents associated with the specified account identifier, up to 5000 characters.
ending_beforestringoptional
Object ID cursor for retrieving the previous page of SetupIntents; the value can be at most 5000 characters.
expandarray<string>optional
Fields to expand in each SetupIntent response; each value can be at most 5000 characters.
limitintegeroptional
Number of SetupIntents to return, from 1 to 100. Defaults to 10 when omitted.
payment_methodstringoptional
Filters results to SetupIntents associated with the specified payment method, up to 5000 characters.
starting_afterstringoptional
Object ID cursor for retrieving the next page of SetupIntents; the value can be at most 5000 characters.

2 status codes
200Returns a list object containing SetupIntent resources in `data`, a `has_more` pagination indicator, the `list` object type, and the collection `url`.
dataarray<SetupIntent>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

attach_to_self must not be used when setting up a PaymentMethod for a Customer and is false by default when attaching a PaymentMethod to a Customer. limit must be between 1 and 100 and defaults to 10 when omitted; created accepts an integer Unix timestamp or a range using gt, gte, lt, or lte.