curl --request POST \
--url https://api.withflex.com/v1/setup_intents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"setup_intent": {
"partner_id": "<string>",
"checkout_session": "<string>"
}
}
'{
"setup_intent": {
"setup_intent_id": "<string>",
"partner_id": "<string>",
"created_at": "<string>",
"test_mode": true,
"status": "requires_payment_method",
"usage": "off_session",
"client_secret": "<string>",
"customer": {
"customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"created_at": "<string>",
"test_mode": true,
"phone": "+15555555555",
"employer": "Flex",
"shipping": {
"shipping_address_id": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"metadata": {}
},
"description": "<string>",
"payment_method": "<string>",
"metadata": {}
}
}curl --request POST \
--url https://api.withflex.com/v1/setup_intents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"setup_intent": {
"partner_id": "<string>",
"checkout_session": "<string>"
}
}
'{
"setup_intent": {
"setup_intent_id": "<string>",
"partner_id": "<string>",
"created_at": "<string>",
"test_mode": true,
"status": "requires_payment_method",
"usage": "off_session",
"client_secret": "<string>",
"customer": {
"customer_id": "fcus_01HACM7FZ1084XB1GB6053VM0D",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"created_at": "<string>",
"test_mode": true,
"phone": "+15555555555",
"employer": "Flex",
"shipping": {
"shipping_address_id": "<string>",
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"postal_code": "<string>",
"country": "<string>"
},
"metadata": {}
},
"description": "<string>",
"payment_method": "<string>",
"metadata": {}
}
}Use a Bearer token to access this API.
Show child attributes
The unique identifier for the object.
The ID of the Partner associated with this SetupIntent
Time at which the object was created. ISO 8601 format.
Whether or not the setup intent is in test mode.
Status of the SetupIntent. One of requires_payment_method, requires_confirmation, requires_action, processing, succeeded, or canceled.
requires_payment_method, requires_confirmation, requires_action, processing, succeeded, canceled Indicates how the payment method is intended to be used in the future.
off_session, on_session The ID of the Customer this SetupIntent belongs to.
Show child attributes
The unique identifier for the customer.
"fcus_01HACM7FZ1084XB1GB6053VM0D"
The customer's first name.
"John"
The customer's last name.
"Doe"
The customer's email address.
The time the customer was created.
Whether the customer was created in test mode.
The customer's phone number.
"+15555555555"
The customer's employer.
"Flex"
The customer's shipping address.
Show child attributes
An arbitrary string attached to the setup intent.
Payment method used with this SetupIntent.