List Setup Intents
Changed onReturns a list of SetupIntents, sorted by ID in descending order (most recent first).
The client_secret is not included on listed SetupIntents; retrieve a SetupIntent individually to obtain it.
Request
- Base URLhttps://api.withflex.com
- URLhttps://api.withflex.com/v1/setup_intents
- AuthHTTP bearer
Query parameters
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
Number of objects to skip before returning results.
Filter by customer ID.
A cursor for use in pagination. starting_after is a setup intent ID that defines your place in the list. For instance, if you make a list request and receive 20 setup intents, ending with fsi_xyz, your subsequent call can include starting_after=fsi_xyz to fetch the next page.
A cursor for use in pagination. ending_before is a setup intent ID that defines your place in the list. For instance, if you make a list request and receive 20 setup intents, starting with fsi_abc, your subsequent call can include ending_before=fsi_abc to fetch the previous page.
Comma-separated list of fields to expand (e.g., "subscription").
Response
An envelope wrapping a list of setup intent objects.
Example response
{
"setup_intents": [
{
"setup_intent_id": "fseti_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"client_secret": "string",
"customer": "fcus_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"description": "Premium SPF 50 mineral sunscreen",
"payment_method": "fpm_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"partner_id": "facct_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"metadata": {
"order_id": "8842",
"channel": "shopify"
},
"created_at": "2026-06-15T14:30:00Z",
"test_mode": false,
"status": "requires_payment_method",
"usage": "off_session",
"subscription_id": "fsub_01J9XR8M3K7VZ8N2YB4WJ6T0RA"
}
]
}Changes
- breaking
the
///////////response's property format changed fromemailto no format for status - warning
for the
queryrequest parameterlimit, the max was set to2147483647.00 - warning
for the
queryrequest parameteroffset, the max was set to2147483647.00 - warning
for the
queryrequest parameterlimit, the min was set to-2147483648.00 - warning
for the
queryrequest parameteroffset, the min was set to-2147483648.00
- breaking