Get a transaction to update payment method

GET {{baseUrl}}/subscriptions/:subscription_id/update-payment-method-transaction

Returns a transaction that you can pass to a checkout to let customers update their payment details. Only for subscriptions where collection_mode is automatic.

The transaction returned depends on the status of the related subscription:

  • Where a subscription is past_due, it returns the most recent past_due transaction.
  • Where a subscription is active, it creates a new zero amount transaction for the items on a subscription.

You can use the returned checkout.url, or pass the returned transaction ID to Paddle.js to open a checkout to present customers with a way of updating their payment details.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring