Setup Intents
List Setup Intents
Returns a list of your setup intents.
GET
/
v1
/
setup_intents
Copy
curl --request GET \
--url https://api.withflex.com/v1/setup_intents \
--header 'Authorization: Bearer <token>'
Copy
{
"setup_intents": [
{
"setup_intent_id": "<string>",
"client_secret": "<string>",
"customer": {
"customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
"first_name": "John",
"last_name": "Doe",
"email": "joh.doe@example.com",
"phone": "+15555555555",
"employer": "Flex",
"shipping": {
"shipping_address_id": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"created_at": "<string>",
"test_mode": true
},
"description": "<string>",
"payment_method": {
"payment_method_id": "<string>",
"billing_details": {
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"state": "<string>"
},
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"customer": {
"customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
"first_name": "John",
"last_name": "Doe",
"email": "joh.doe@example.com",
"phone": "+15555555555",
"employer": "Flex",
"shipping": {
"shipping_address_id": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"created_at": "<string>",
"test_mode": true
},
"metadata": {},
"card": {
"brand": "american_express",
"country": "<string>",
"exp_month": 123,
"exp_year": 123,
"fingerprint": "<string>",
"funding": "credit",
"last4": "<string>"
},
"created_at": "<string>",
"test_mode": true,
"off_session": true
},
"metadata": {},
"created_at": "<string>",
"test_mode": true,
"status": "requires_payment_method",
"usage": "off_session"
}
]
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Response
200
application/json
The response is of type object
.
Copy
curl --request GET \
--url https://api.withflex.com/v1/setup_intents \
--header 'Authorization: Bearer <token>'
Copy
{
"setup_intents": [
{
"setup_intent_id": "<string>",
"client_secret": "<string>",
"customer": {
"customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
"first_name": "John",
"last_name": "Doe",
"email": "joh.doe@example.com",
"phone": "+15555555555",
"employer": "Flex",
"shipping": {
"shipping_address_id": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"created_at": "<string>",
"test_mode": true
},
"description": "<string>",
"payment_method": {
"payment_method_id": "<string>",
"billing_details": {
"address": {
"city": "<string>",
"country": "<string>",
"line1": "<string>",
"line2": "<string>",
"postal_code": "<string>",
"state": "<string>"
},
"email": "<string>",
"name": "<string>",
"phone": "<string>"
},
"customer": {
"customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
"first_name": "John",
"last_name": "Doe",
"email": "joh.doe@example.com",
"phone": "+15555555555",
"employer": "Flex",
"shipping": {
"shipping_address_id": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"created_at": "<string>",
"test_mode": true
},
"metadata": {},
"card": {
"brand": "american_express",
"country": "<string>",
"exp_month": 123,
"exp_year": 123,
"fingerprint": "<string>",
"funding": "credit",
"last4": "<string>"
},
"created_at": "<string>",
"test_mode": true,
"off_session": true
},
"metadata": {},
"created_at": "<string>",
"test_mode": true,
"status": "requires_payment_method",
"usage": "off_session"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.