Get Setup Intent
Changed onRetrieves the details of an existing SetupIntent.
The response includes a fresh client_secret for confirming the SetupIntent from your frontend. Pass expand=subscription to inline the associated Subscription, when one exists.
Request
- Base URLhttps://api.withflex.com
- URLhttps://api.withflex.com/v1/setup_intents/{id}
- AuthHTTP bearer
Path parameters
Query parameters
Comma-separated list of fields to expand (e.g., "subscription").
Response
SetupIntent response with expandable subscription
Example response
{
"subscription": "fsub_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"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 - breaking
the
//////////////////response's property format changed fromemailto no format for status - breaking
the
///////////////////////response's property format changed fromemailto no format for status - warning
added the new
adaptiveShoesDependentenum value to the/////////////////////////response property for the response status - warning
added the new
automatedCleanerenum value to the/////////////////////////response property for the response status - warning
added the new
babyMonitorSplitenum value to the/////////////////////////response property for the response status - warning
added the new
babySleepAppenum value to the/////////////////////////response property for the response status - warning
added the new
bodyPillowenum value to the/////////////////////////response property for the response status - warning
added the new
breathWorkDependentenum value to the/////////////////////////response property for the response status - warning
added the new
coolingSleepwearenum value to the/////////////////////////response property for the response status - warning
added the new
meneralsNootropicPouchenum value to the/////////////////////////response property for the response status - warning
added the new
nonenalOdorenum value to the/////////////////////////response property for the response status - warning
added the new
nursingChairsenum value to the/////////////////////////response property for the response status - warning
added the new
speechHealthDependentenum value to the/////////////////////////response property for the response status - warning
added the new
uvClothingenum value to the/////////////////////////response property for the response status - warning
added the new
uvGlassesenum value to the/////////////////////////response property for the response status - info
added the optional property
/////////to the response with the status - info
added the optional property
////////////////to the response with the status - info
added the optional property
/////////to the response with the status
- breaking