Update the payment method for an existing subscription. You can either add a new payment method or use an existing one from the customer’s saved payment methods.
on_hold state.
on_hold state, updating the payment method automatically creates a charge for remaining dues, generates an invoice, and reactivates the subscription to active state upon successful payment.type: "existing" to update a subscription’s payment method.on_hold state:
active statepayment.succeeded followed by subscription.activeon_hold subscription, you’ll receive the following webhook events:
payment.succeeded - The charge for remaining dues was successfulsubscription.active - The subscription has been reactivatedBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Subscription Id