Payment Methods
List saved payment methods for a customer
Retrieves the payment methods saved on a customer (e.g. cards stored via a
card-save link). Pass ?provider= to narrow to a single payment provider.
Required Scope
payment-methods-read
path Parameters
customerIdThe customer ID
query Parameters
providerFilter by payment provider
List saved payment methods for a customer › Responses
List of payment methods
idUnique identifier of the payment method
customerIdCustomer ID this payment method belongs to
providerPayment provider
labelHuman-readable label for the payment method
isDefaultWhether this is the default payment method for the customer
statusCurrent status of the payment method
createdAtWhen the payment method was created
cardMaskMasked card number
cardTypeCard type as reported by the provider
expiryMonthCard expiry month
expiryYearCard expiry year
Apply a payment method to all active subscriptions for a customer
Assigns the specified payment method to all active, trial, and scheduled subscriptions. Overwrites existing card assignments. Excludes PARENT_PAYS subscriptions.
path Parameters
customerIdThe customer ID
paymentMethodIdThe payment method ID to apply
Apply a payment method to all active subscriptions for a customer › Request Body
enableAutomaticBillingWhether to enable automatic billing on the subscriptions
Apply a payment method to all active subscriptions for a customer › Responses
Card applied to subscriptions
Unassign a payment method from a customer
Removes the link between the customer and the card. The card stays active on the provider and can be reassigned to another customer.
path Parameters
customerIdThe customer ID
paymentMethodIdThe payment method ID to unassign
Unassign a payment method from a customer › Responses
Payment method unassigned
Generate a link for the customer to save a card for future payments
Creates a payment window URL where the customer can enter their card details. The card is saved as a subscription for future charges. Send this URL to your customer.
path Parameters
customerIdThe customer ID
Generate a link for the customer to save a card for future payments › Request Body
providerPayment provider to use for saving the card
Generate a link for the customer to save a card for future payments › Responses
Payment link created
urlURL to the payment provider window. Send this to your customer.
expiresAtWhen the payment link expires
Set a saved payment method as the customer default
Marks this card as the default for the customer. The default card is pre-selected when assigning new subscriptions — it does not retroactively change existing subscriptions. Use the apply-to-subscriptions endpoint to update existing subscriptions.
path Parameters
customerIdThe customer ID
paymentMethodIdThe payment method ID to set as default
Set a saved payment method as the customer default › Responses
Default updated