Skip to main content
POST
Setup a payment method

Authorizations

X-SALESBRICKS-KEY
string
header
required

API key for authentication

Path Parameters

subscription_id
string
required
Pattern: ^([a-zA-Z\d\-]+)$

Response

200 - application/json

Serializer for the payment method setup response containing Stripe credentials needed to initialize payment forms.

stripe_account_id
string
required

The tenant's connected Stripe account ID

client_secret
string
required

Client secret for creating a payment intent within Stripe Elements

publishable_key
string
required

Salesbricks' platform public key for Stripe

customer_session_client_secret
string
required

Client secret for the customer session to enable payment element features