Skip to content

Create Payment Method (Token-based)​

POST
/bridge-payment/payment-methods

Create a new payment method using a payment method token from the frontend (Stripe Elements). This is the recommended secure method.

Authorizations​

SessionAuth

Session ID from Flowless authentication

TypeAPI Key (header: X-Session-ID)
or

Request Body​

application/json
JSON
{
"payment_method_token": "pm_1234567890",
"type": "string",
"wallet_type": "string",
"provider_id": "stripe",
"customer_id": "string",
"alias": "My Visa Card",
"billing_address_id": "string",
"billing_details": {
"name": "string",
"email": "string",
"phone": "string",
"address": {
"line1": "string",
"line2": "string",
"city": "string",
"state": "string",
"postal_code": "string",
"country": "string"
}
}
}

Responses​

Payment method created successfully

Playground​

Server
Authorization
Body

Samples​

Powered by VitePress OpenAPI