Setup payment methods for subscription
curl --request POST \
  --url https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/payment-methods \
  --header 'X-SALESBRICKS-KEY: <api-key>'
{
  "stripe_account_id": "acct_1ABC123def456789",
  "client_secret": "seti_1ABC123def456789_secret_xyz789",
  "publishable_key": "pk_test_ABC123def456789xyz",
  "customer_session_client_secret": "cuss_1ABC123def456789_secret_xyz789"
}

Authorizations

X-SALESBRICKS-KEY
string
header
required

API key for authentication

Path Parameters

subscription_id
string
required

Response

200 - application/json

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