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!
- Javascript/Node.js
- cURL
const response = await fetch(
'https://api.salable.app/subscriptions/your-subscription-uuid/payment-method',
{
headers: {
'x-api-key': 'your-salable-api-key',
},
}
);
curl
-XGET
-H 'x-api-key: your-salable-api-key'
'https://api.salable.app/subscriptions/your-subscription-uuid/payment-method'
Get an "update payment method" link
- JavaScript/Node.js
- cURL
const response = await fetch(
'https://api.salable.app/subscriptions/your-subscription-uuid/updatepaymentlink',
{
headers: {
'x-api-key': 'your-salable-api-key',
},
}
);
curl
-XGET
-H 'x-api-key: your-salable-api-key'
'https://api.salable.app/subscriptions/your-subscription-uuid/updatepaymentlink'