Skip to content

Get the payment method for a subscription

GET
/api/subscriptions/{id}/payment-method

Returns the payment method currently attached to the subscription, plus any other payment methods on file for the customer that could be switched to.

id
string

Current payment method and available alternatives

object
current
required

Current payment method on the subscription, or null if none is attached

object
id
required
string
brand
required
string
last_digits
required
string
expiry_month
required
number
expiry_year
required
number
available
required

Other payment methods on file for the customer

Array<object>
object
id
required
string
brand
required
string
last_digits
required
string
expiry_month
required
number
expiry_year
required
number