Skip to main content
POST
Save a payment method to a customer

Authorizations

X-Suby-Api-Key
string
header
required

Secret API key. sk_live_… (production) or sk_sandbox_… (sandbox).

Body

application/json
customerId
string
required
Example:

"cus_abc123"

paymentMethod
object
required
threedsSessionData
object

Optional proactive 3DS fingerprint data.

Response

Setup intent created (status SUCCEEDED or REQUIRES_ACTION)

success
boolean
required
Example:

true

data
object
required

Endpoint-specific payload.

message
string