Get payment methods for subscription
curl --request GET \
  --url https://api.salesbricks.com/api/v2/subscriptions/{subscription_id}/payment-methods \
  --header 'X-SALESBRICKS-KEY: <api-key>'
[
{
"payment_method_id": "pm_1ABC123card456789",
"is_default": true,
"type": "card",
"card": {
"brand": "visa",
"last4": "4242"
}
}
]

Authorizations

X-SALESBRICKS-KEY
string
header
required

API key for authentication

Path Parameters

subscription_id
string
required

Response

200 - application/json
payment_method_id
string
required

Unique Stripe payment method identifier

is_default
boolean
required

Whether this is the default payment method for the customer

type
enum<string>
required

Type of payment method

  • card - Card
  • us_bank_account - US Bank Account
Available options:
card,
us_bank_account
us_bank_account
object
card
object