Skip to main content

Managing payment methods

Get subscriptions current payment method

Returns details about the payment method associated with the specified subscriptionUuid

info

This is a good way to get the last four digits of the user's card!

const response = await fetch(
'https://api.salable.app/subscriptions/your-subscription-uuid/payment-method',
{
headers: {
'x-api-key': 'your-salable-api-key',
},
}
);
const response = await fetch(
'https://api.salable.app/subscriptions/your-subscription-uuid/updatepaymentlink',
{
headers: {
'x-api-key': 'your-salable-api-key',
},
}
);